Skip to content

Commit 7567b35

Browse files
ddamkeddamke
authored andcommitted
changed interface to get Project color
1 parent 4c3c477 commit 7567b35

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

src/main/java/de/doubleslash/keeptime/view/worktable/ProjectTableRow.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import de.doubleslash.keeptime.common.DateFormatter;
44
import de.doubleslash.keeptime.model.Project;
55
import javafx.scene.layout.HBox;
6+
import javafx.scene.paint.Color;
67

78
public 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
}

src/main/java/de/doubleslash/keeptime/view/worktable/TableRow.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package de.doubleslash.keeptime.view.worktable;
22

33
import javafx.scene.layout.HBox;
4+
import javafx.scene.paint.Color;
45

56
public interface TableRow {
67

@@ -14,4 +15,5 @@ public interface TableRow {
1415

1516
public boolean isUnderlined();
1617

18+
public Color getProjectColor();
1719
}

src/main/java/de/doubleslash/keeptime/view/worktable/WorkTableRow.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import de.doubleslash.keeptime.common.DateFormatter;
55
import de.doubleslash.keeptime.model.Work;
66
import javafx.scene.layout.HBox;
7+
import javafx.scene.paint.Color;
78

89
public 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
}

0 commit comments

Comments
 (0)