mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-07 19:42:17 +00:00
Made CompositeSettings implement SettingsMap to be able to handle
settings of Perspective instances using the settings serialization mechanism
This commit is contained in:
1 parent
22ebefd5f8
commit
100fbdd72c
1 file changed
+7
-1
+7
-1
@@ -7,6 +7,7 @@ import java.util.Map;
|
||||
|
||||
import com.sap.sse.common.settings.AbstractSettings;
|
||||
import com.sap.sse.common.settings.Settings;
|
||||
import com.sap.sse.common.settings.generic.SettingsMap;
|
||||
import com.sap.sse.gwt.client.shared.perspective.Perspective;
|
||||
import com.sap.sse.gwt.client.shared.perspective.PerspectiveCompositeSettings;
|
||||
|
||||
@@ -14,12 +15,17 @@ import com.sap.sse.gwt.client.shared.perspective.PerspectiveCompositeSettings;
|
||||
* Groups settings for multiple {@link Component}s. This can be of particular interest when working with
|
||||
* {@link Perspective}s and the perspective's {@link PerspectiveCompositeSettings composite settings}.
|
||||
*/
|
||||
public class CompositeSettings extends AbstractSettings {
|
||||
public class CompositeSettings extends AbstractSettings implements SettingsMap {
|
||||
private final Map<Serializable, Settings> settingsPerComponentId;
|
||||
|
||||
public CompositeSettings(Map<Serializable, Settings> settingsPerComponentId) {
|
||||
this.settingsPerComponentId = new HashMap<>(settingsPerComponentId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<Serializable, Settings> getSettingsByKey() {
|
||||
return getSettingsPerComponentId();
|
||||
}
|
||||
|
||||
public Map<Serializable, Settings> getSettingsPerComponentId() {
|
||||
return Collections.unmodifiableMap(settingsPerComponentId);
|
||||
|
||||
Reference in new issue
Block a user