mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-25 05:23:51 +00:00
competitor chart settings element adjusted
This commit is contained in:
1 parent
caa99440b2
commit
222f4c3b69
2 files changed
+23
-7
No files matched your search
+4
-2
@@ -42,7 +42,7 @@ import com.sap.sailing.gwt.ui.client.StringMessages;
|
||||
import com.sap.sse.common.Util;
|
||||
import com.sap.sse.common.filter.Filter;
|
||||
import com.sap.sse.common.filter.FilterSet;
|
||||
import com.sap.sse.common.settings.AbstractSettings;
|
||||
import com.sap.sse.common.settings.generic.GenericSerializableSettings;
|
||||
import com.sap.sse.gwt.client.ErrorReporter;
|
||||
import com.sap.sse.gwt.client.async.AsyncActionsExecutor;
|
||||
import com.sap.sse.gwt.client.player.TimeListener;
|
||||
@@ -55,7 +55,9 @@ import com.sap.sse.gwt.client.shared.perspective.ComponentContext;
|
||||
/**
|
||||
* A base class for a leaderboard chart showing competitor data for all race columns of a leaderboard.
|
||||
*/
|
||||
public abstract class AbstractCompetitorLeaderboardChart<SettingsType extends AbstractSettings> extends AbstractLazyComponent<SettingsType> implements Component<SettingsType>,
|
||||
public abstract class AbstractCompetitorLeaderboardChart<SettingsType extends GenericSerializableSettings>
|
||||
extends AbstractLazyComponent<SettingsType>
|
||||
implements Component<SettingsType>,
|
||||
CompetitorSelectionChangeListener, RequiresResize, TimeListener {
|
||||
public static final String LODA_LEADERBOARD_CHART_DATA_CATEGORY = "loadLeaderboradChartData";
|
||||
|
||||
|
||||
+19
-5
@@ -1,16 +1,30 @@
|
||||
package com.sap.sailing.gwt.ui.client.shared.charts;
|
||||
|
||||
import com.sap.sailing.domain.common.DetailType;
|
||||
import com.sap.sse.common.settings.AbstractSettings;
|
||||
import com.sap.sse.common.settings.generic.AbstractGenericSerializableSettings;
|
||||
import com.sap.sse.common.settings.generic.EnumSetting;
|
||||
import com.sap.sse.common.settings.generic.StringToEnumConverter;
|
||||
|
||||
public class MultiCompetitorLeaderboardChartSettings extends AbstractSettings {
|
||||
private final DetailType detailType;
|
||||
public class MultiCompetitorLeaderboardChartSettings extends AbstractGenericSerializableSettings {
|
||||
private static final long serialVersionUID = 2456555424331709738L;
|
||||
|
||||
private EnumSetting<DetailType> detailType;
|
||||
|
||||
public MultiCompetitorLeaderboardChartSettings(DetailType detailType) {
|
||||
this.detailType = detailType;
|
||||
this.detailType.setValue(detailType);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void addChildSettings() {
|
||||
detailType = new EnumSetting<>("detailType", this, new StringToEnumConverter<DetailType>() {
|
||||
@Override
|
||||
public DetailType fromString(String stringValue) {
|
||||
return DetailType.valueOf(stringValue);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public DetailType getDetailType() {
|
||||
return detailType;
|
||||
return detailType.getValue();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user