File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed
src/main/java/de/doubleslash/keeptime/view/worktable Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 33import de .doubleslash .keeptime .common .DateFormatter ;
44import de .doubleslash .keeptime .model .Project ;
55import javafx .scene .layout .HBox ;
6+ import javafx .scene .paint .Color ;
67
78public class ProjectTableRow implements TableRow {
89
@@ -43,4 +44,9 @@ public boolean isUnderlined() {
4344 return project .isWork ();
4445 }
4546
47+ @ Override
48+ public Color getProjectColor () {
49+ return project .getColor ();
50+ }
51+
4652}
Original file line number Diff line number Diff line change 11package de .doubleslash .keeptime .view .worktable ;
22
33import javafx .scene .layout .HBox ;
4+ import javafx .scene .paint .Color ;
45
56public interface TableRow {
67
@@ -14,4 +15,5 @@ public interface TableRow {
1415
1516 public boolean isUnderlined ();
1617
18+ public Color getProjectColor ();
1719}
Original file line number Diff line number Diff line change 44import de .doubleslash .keeptime .common .DateFormatter ;
55import de .doubleslash .keeptime .model .Work ;
66import javafx .scene .layout .HBox ;
7+ import javafx .scene .paint .Color ;
78
89public class WorkTableRow implements TableRow {
910 private final Work work ;
@@ -41,4 +42,9 @@ public boolean isUnderlined() {
4142 return false ;
4243 }
4344
45+ @ Override
46+ public Color getProjectColor () {
47+ return null ;
48+ }
49+
4450}
You can’t perform that action at this time.
0 commit comments