mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-25 05:23:51 +00:00
added zoomTo
This commit is contained in:
1 parent
abbd17adc7
commit
24ab827bda
3 files changed
+10
-4
No files matched your search
+2
-2
@@ -21,7 +21,7 @@ public abstract class AbstractLeaderboardPerspectiveLifecycle extends AbstractPe
|
||||
public LeaderboardPerspectiveOwnSettings clonePerspectiveOwnSettings(LeaderboardPerspectiveOwnSettings settings) {
|
||||
return new LeaderboardPerspectiveOwnSettings(settings.isShowRaceDetails(), settings.isHideToolbar(),
|
||||
settings.isAutoExpandLastRaceColumn(), settings.isShowCharts(), settings.isShowOverallLeaderboard(),
|
||||
settings.isShowSeriesLeaderboards());
|
||||
settings.isShowSeriesLeaderboards(), settings.getZoomTo());
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -34,7 +34,7 @@ public abstract class AbstractLeaderboardPerspectiveLifecycle extends AbstractPe
|
||||
protected LeaderboardPerspectiveOwnSettings extractOwnGlobalSettings(LeaderboardPerspectiveOwnSettings settings) {
|
||||
return new LeaderboardPerspectiveOwnSettings(settings.isShowRaceDetails(), settings.isHideToolbar(),
|
||||
settings.isAutoExpandLastRaceColumn(), settings.isShowCharts(), settings.isShowOverallLeaderboard(),
|
||||
settings.isShowSeriesLeaderboards());
|
||||
settings.isShowSeriesLeaderboards(), settings.getZoomTo());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+2
-1
@@ -20,13 +20,14 @@ public class LeaderboardPerspectiveOwnSettings extends AbstractGenericSerializab
|
||||
}
|
||||
|
||||
LeaderboardPerspectiveOwnSettings(boolean showRaceDetails, boolean hideToolbar, boolean autoExpandLastRaceColumn,
|
||||
boolean showCharts, boolean showOverallLeaderboard, boolean showSeriesLeaderboards) {
|
||||
boolean showCharts, boolean showOverallLeaderboard, boolean showSeriesLeaderboards, String zoomTo) {
|
||||
this.showRaceDetails.setValue(showRaceDetails);
|
||||
this.hideToolbar.setValue(hideToolbar);
|
||||
this.autoExpandLastRaceColumn.setValue(autoExpandLastRaceColumn);
|
||||
this.showCharts.setValue(showCharts);
|
||||
this.showOverallLeaderboard.setValue(showOverallLeaderboard);
|
||||
this.showSeriesLeaderboards.setValue(showSeriesLeaderboards);
|
||||
this.zoomTo.setValue(zoomTo);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+6
-1
@@ -2,6 +2,7 @@ package com.sap.sailing.gwt.ui.leaderboard;
|
||||
|
||||
import com.google.gwt.user.client.ui.CheckBox;
|
||||
import com.google.gwt.user.client.ui.FocusWidget;
|
||||
import com.google.gwt.user.client.ui.TextBox;
|
||||
import com.google.gwt.user.client.ui.VerticalPanel;
|
||||
import com.google.gwt.user.client.ui.Widget;
|
||||
import com.sap.sailing.gwt.ui.client.StringMessages;
|
||||
@@ -19,6 +20,7 @@ public class LeaderboardPerspectiveOwnSettingsDialogComponent
|
||||
private CheckBox showCharts;
|
||||
private CheckBox showOverallLeaderboard;
|
||||
private CheckBox showSeriesLeaderboards;
|
||||
private TextBox zoomTo;
|
||||
|
||||
public LeaderboardPerspectiveOwnSettingsDialogComponent(LeaderboardPerspectiveOwnSettings settings) {
|
||||
this.initialSettings = settings;
|
||||
@@ -54,6 +56,9 @@ public class LeaderboardPerspectiveOwnSettingsDialogComponent
|
||||
showSeriesLeaderboards.setValue(initialSettings.isShowSeriesLeaderboards());
|
||||
vp.add(showSeriesLeaderboards);
|
||||
|
||||
zoomTo = dialog.createTextBox(stringMessages.zoom());
|
||||
zoomTo.setValue(initialSettings.getZoomTo());
|
||||
vp.add(zoomTo);
|
||||
return vp;
|
||||
}
|
||||
|
||||
@@ -61,7 +66,7 @@ public class LeaderboardPerspectiveOwnSettingsDialogComponent
|
||||
public LeaderboardPerspectiveOwnSettings getResult() {
|
||||
return new LeaderboardPerspectiveOwnSettings(showRaceDetails.getValue(), hideToolbar.getValue(),
|
||||
autoExpandLastRaceColumn.getValue(), showCharts.getValue(), showOverallLeaderboard.getValue(),
|
||||
showSeriesLeaderboards.getValue());
|
||||
showSeriesLeaderboards.getValue(), zoomTo.getValue());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user