mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-10 22:30:56 +00:00
removed unnecessary code lines
This commit is contained in:
1 parent
4e38df2284
commit
c853dca85e
2 files changed
+2
-17
No files matched your search
-15
@@ -49,7 +49,6 @@ public class RegattaOverviewPanel extends SimplePanel implements RegattaOverview
|
||||
private final Label eventNameLabel;
|
||||
private final Label venueNameLabel;
|
||||
private final Label timeLabel;
|
||||
// private final Button filterButton;
|
||||
private final Button settingsButton;
|
||||
private final Button refreshNowButton;
|
||||
private final Button startStopUpdatingButton;
|
||||
@@ -107,18 +106,6 @@ public class RegattaOverviewPanel extends SimplePanel implements RegattaOverview
|
||||
grid.getColumnFormatter().getElement(1).getStyle().setPaddingTop(2.0, Unit.EM);
|
||||
grid.getColumnFormatter().getElement(1).getStyle().setPaddingLeft(20.0, Unit.PX);
|
||||
|
||||
//TODO: change filter button
|
||||
// filterButton = new Button(stringMessages.disableRaceFilter());
|
||||
// filterButton.addClickHandler(new ClickHandler() {
|
||||
//
|
||||
// @Override
|
||||
// public void onClick(ClickEvent event) {
|
||||
// boolean isFilterActive = regattaRaceStatesComponent.switchFilter();
|
||||
// filterButton.setText(isFilterActive ?
|
||||
// stringMessages.disableRaceFilter() : stringMessages.enableRaceFilter());
|
||||
// }
|
||||
// });
|
||||
|
||||
refreshNowButton = new Button(stringMessages.refreshNow());
|
||||
refreshNowButton.addClickHandler(new ClickHandler() {
|
||||
|
||||
@@ -135,7 +122,6 @@ public class RegattaOverviewPanel extends SimplePanel implements RegattaOverview
|
||||
|
||||
@Override
|
||||
public void onClick(ClickEvent event) {
|
||||
//new RegattaRaceStatesSettingsDialogComponent(regattaRaceStatesComponent, stringMessages, null).show();
|
||||
new SettingsDialog<RegattaRaceStatesSettings>(regattaRaceStatesComponent, stringMessages).show();
|
||||
}
|
||||
});
|
||||
@@ -219,7 +205,6 @@ public class RegattaOverviewPanel extends SimplePanel implements RegattaOverview
|
||||
refreshStartStopClockPanel.setStyleName(STYLE_REFRESH_STOP_TIME);
|
||||
refreshStartStopClockPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
|
||||
|
||||
// refreshStartStopClockPanel.add(filterButton);
|
||||
refreshStartStopClockPanel.add(settingsButton);
|
||||
refreshStartStopClockPanel.add(refreshNowButton);
|
||||
refreshStartStopClockPanel.add(startStopUpdatingButton);
|
||||
|
||||
+2
-2
@@ -15,11 +15,11 @@ public class RegattaRaceStatesComparator implements Comparator<RegattaOverviewEn
|
||||
result = new NaturalComparator().compare(left.regattaName, right.regattaName);
|
||||
}
|
||||
if (result == 0) {
|
||||
//Caution: Series is missing!!!
|
||||
//TODO Caution: Series is missing!!!
|
||||
result = Integer.valueOf(left.raceInfo.fleetOrdering).compareTo(Integer.valueOf(right.raceInfo.fleetOrdering));
|
||||
if (result == 0) {
|
||||
result = (-1) * new NaturalComparator().compare(right.raceInfo.raceName, left.raceInfo.raceName);
|
||||
//this naturalComparator sorts the other way round R30 < R29 < R28 etc.
|
||||
//the naturalComparator sorts the other way round R30 < R29 < R28 etc., therefore the (-1) multiplication
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user