Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SmartTime
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Robert Goldmann
SmartTime
Commits
16794bc0
Commit
16794bc0
authored
7 years ago
by
Robert Goldmann
Browse files
Options
Downloads
Patches
Plain Diff
Fixed
#17
- tableview is not cleared correctly
parent
412d5412
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/userInterface/UserInterfaceController.java
+12
-6
12 additions, 6 deletions
src/userInterface/UserInterfaceController.java
with
12 additions
and
6 deletions
src/userInterface/UserInterfaceController.java
+
12
−
6
View file @
16794bc0
...
@@ -112,6 +112,7 @@ public class UserInterfaceController
...
@@ -112,6 +112,7 @@ public class UserInterfaceController
labelTime
.
setText
(
"0 h 0 min 0 sek"
);
labelTime
.
setText
(
"0 h 0 min 0 sek"
);
createLogView
();
loadAll
();
loadAll
();
// verwaltet den Start/Stopp-Button
// verwaltet den Start/Stopp-Button
...
@@ -195,7 +196,7 @@ public class UserInterfaceController
...
@@ -195,7 +196,7 @@ public class UserInterfaceController
}
}
catch
(
IOException
d
)
catch
(
IOException
d
)
{
{
d
.
printStackTrace
(
);
Logger
.
error
(
d
);
}
}
}
}
else
else
...
@@ -302,12 +303,19 @@ public class UserInterfaceController
...
@@ -302,12 +303,19 @@ public class UserInterfaceController
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
ex
.
printStackTrace
(
);
Logger
.
error
(
ex
);
AlertGenerator
.
showAlert
(
AlertType
.
ERROR
,
"Fehler"
,
""
,
"Fehler beim Erstellen der Datenbank."
,
icon
,
stage
,
null
,
false
);
AlertGenerator
.
showAlert
(
AlertType
.
ERROR
,
"Fehler"
,
""
,
"Fehler beim Erstellen der Datenbank."
,
icon
,
stage
,
null
,
false
);
}
}
}
}
}
}
private
void
updateTableView
()
{
table
.
getItems
().
clear
();
ObservableList
<
LogObject
>
objectsForTable
=
FXCollections
.
observableArrayList
(
logObjects
);
table
.
setItems
(
objectsForTable
);
}
private
void
createLogView
()
private
void
createLogView
()
{
{
table
.
getItems
().
clear
();
table
.
getItems
().
clear
();
...
@@ -387,8 +395,6 @@ public class UserInterfaceController
...
@@ -387,8 +395,6 @@ public class UserInterfaceController
table
.
getColumns
().
add
(
tasks
);
table
.
getColumns
().
add
(
tasks
);
table
.
getColumns
().
add
(
durations
);
table
.
getColumns
().
add
(
durations
);
ObservableList
<
LogObject
>
objectsForTable
=
FXCollections
.
observableArrayList
(
logObjects
);
table
.
setItems
(
objectsForTable
);
table
.
setFixedCellSize
(
26
);
table
.
setFixedCellSize
(
26
);
table
.
setColumnResizePolicy
(
TableView
.
CONSTRAINED_RESIZE_POLICY
);
table
.
setColumnResizePolicy
(
TableView
.
CONSTRAINED_RESIZE_POLICY
);
...
@@ -453,7 +459,7 @@ public class UserInterfaceController
...
@@ -453,7 +459,7 @@ public class UserInterfaceController
public
void
loadAll
()
public
void
loadAll
()
{
{
loadFromDB
();
loadFromDB
();
createLog
View
();
updateTable
View
();
createTreeView
();
createTreeView
();
}
}
...
@@ -723,7 +729,7 @@ public class UserInterfaceController
...
@@ -723,7 +729,7 @@ public class UserInterfaceController
}
}
catch
(
IOException
d
)
catch
(
IOException
d
)
{
{
d
.
printStackTrace
(
);
Logger
.
error
(
d
);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment