RegattaOverview: Fleet name is displayed when it is not "Default"

This commit is contained in:
Armin Zamani committed 2013-05-24 00:12:32 +02:00
1 parent 09cd452bcf
commit c7b50c8af2
1 file changed
+2 -1
@@ -251,9 +251,10 @@ public class RegattaOverviewTableComposite extends Composite {
TextColumn<RegattaOverviewEntryDTO> fleetNameColumn = new TextColumn<RegattaOverviewEntryDTO>() {
@Override
public String getValue(RegattaOverviewEntryDTO entryDTO) {
return entryDTO.raceInfo.fleet;
return entryDTO.raceInfo.fleet.equals("Default") ? "-" : entryDTO.raceInfo.fleet;
}
};
fleetNameColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
fleetNameColumn.setSortable(true);
regattaOverviewListHandler.setComparator(fleetNameColumn, new Comparator<RegattaOverviewEntryDTO>() {