mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-03 19:03:52 +00:00
added a column for the color of the buoys in the course management panel
This commit is contained in:
1 parent
6407e8b9fa
commit
22abb0119e
1 file changed
+10
+10
@@ -378,6 +378,7 @@ public class RaceCourseManagementPanel extends AbstractRaceManagementPanel {
|
||||
}
|
||||
};
|
||||
result.addColumn(buoyNameColumn, stringMessages.buoy());
|
||||
|
||||
final SafeHtmlCell buoyPositionCell = new SafeHtmlCell();
|
||||
Column<BuoyDTO, SafeHtml> buoyPositionColumn = new Column<BuoyDTO, SafeHtml>(buoyPositionCell) {
|
||||
@Override
|
||||
@@ -388,6 +389,15 @@ public class RaceCourseManagementPanel extends AbstractRaceManagementPanel {
|
||||
}
|
||||
};
|
||||
result.addColumn(buoyPositionColumn, stringMessages.position());
|
||||
|
||||
TextColumn<BuoyDTO> buoyColorColumn = new TextColumn<BuoyDTO>() {
|
||||
@Override
|
||||
public String getValue(BuoyDTO buoyDTO) {
|
||||
return buoyDTO.displayColor != null ? buoyDTO.displayColor : "";
|
||||
}
|
||||
};
|
||||
result.addColumn(buoyColorColumn, stringMessages.color());
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user