return layers;
}
private static GuiSettings getGuiSettings(SourceBean guiSettingsConfigurationSB) {
GuiSettings guiSettings = null;
SourceBean windowSettingsSB;
SourceBean labelSettingsSB;
SourceBean settingsSB;
List params;
guiSettings = new GuiSettings();
if(guiSettingsConfigurationSB == null) return guiSettings;
params = guiSettingsConfigurationSB.getAttributeAsList("PARAM");
if(params != null) {
addSettings(guiSettings.getGeneralSettings(), params);
}
windowSettingsSB = (SourceBean)guiSettingsConfigurationSB.getAttribute("WINDOWS");
if(windowSettingsSB != null) {
settingsSB = (SourceBean)windowSettingsSB.getAttribute("DEFAULTS");
if(settingsSB != null) {
params = settingsSB.getAttributeAsList("PARAM");
if(params != null) {
addSettings(guiSettings.getWindowDefaultSettings(), params);
}
}
settingsSB = (SourceBean)windowSettingsSB
.getFilteredSourceBeanAttribute("WINDOW", "name", "navigation");
if(settingsSB != null) {
guiSettings.getNavigationWindowSettings().put("name", "navigation");
params = settingsSB.getAttributeAsList("PARAM");
if(params != null) {
addSettings(guiSettings.getNavigationWindowSettings(), params);
}
}
settingsSB = (SourceBean)windowSettingsSB
.getFilteredSourceBeanAttribute("WINDOW", "name", "measures");
if(settingsSB != null) {
guiSettings.getMeasureWindowSettings().put("name", "measures");
params = settingsSB.getAttributeAsList("PARAM");
if(params != null) {
addSettings(guiSettings.getMeasureWindowSettings(), params);
}
}
settingsSB = (SourceBean)windowSettingsSB
.getFilteredSourceBeanAttribute("WINDOW", "name", "layers");
if(settingsSB != null) {
guiSettings.getLayersWindowSettings().put("name", "layers");
params = settingsSB.getAttributeAsList("PARAM");
if(params != null) {
addSettings(guiSettings.getLayersWindowSettings(), params);
}
}
settingsSB = (SourceBean)windowSettingsSB
.getFilteredSourceBeanAttribute("WINDOW", "name", "detail");
if(settingsSB != null) {
guiSettings.getDetailWindowSettings().put("name", "detail");
params = settingsSB.getAttributeAsList("PARAM");
if(params != null) {
addSettings(guiSettings.getDetailWindowSettings(), params);
}
}
settingsSB = (SourceBean)windowSettingsSB
.getFilteredSourceBeanAttribute("WINDOW", "name", "legend");
if(settingsSB != null) {
guiSettings.getLegendWindowSettings().put("name", "legend");
params = settingsSB.getAttributeAsList("PARAM");
if(params != null) {
addSettings(guiSettings.getLegendWindowSettings(), params);
}
}
settingsSB = (SourceBean)windowSettingsSB
.getFilteredSourceBeanAttribute("WINDOW", "name", "colourpicker");
if(settingsSB != null) {
params = settingsSB.getAttributeAsList("PARAM");
guiSettings.getColourpickerWindowSettings().put("name", "colourpicker");
if(params != null) {
addSettings(guiSettings.getColourpickerWindowSettings(), params);
}
}
}
labelSettingsSB = (SourceBean)guiSettingsConfigurationSB.getAttribute("LABELS");
if(labelSettingsSB != null) {
Map labelProducers = getLabelProducers(labelSettingsSB);
guiSettings.setLabelProducers(labelProducers);
}
return guiSettings;
}