Class XMLLayoutProvider
java.lang.Object
net.simplace.ui.customize.FWCustomizableLayoutProvider
net.simplace.ui.customize.XMLLayoutProvider
Layout provider reading the customizing from a
clientconfig XML element with the children
systems, functions, settings, problemreports,
layout, menus, toolbar, statebar,
forms, charts, features and grids.- Author:
- Andreas Enders
-
Field Summary
Fields inherited from class FWCustomizableLayoutProvider
iChartStyleMap, iContentObject, iFeatureStyleMap, iFormMap, iFunctionMap, iGridStyleMap, iLayoutPropertiesMap, iLocalePrefix, iMenuMap, iProblemReportModel, iSettingModel, iStateBarMap, iSystemMap, iToolMap, shouldAddAtlasPanel, shouldAddKeyworkPanel, shouldAddScenarioPanel, shouldAddSimComponentPanel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetChildObject(String aName) protected voidCreates anXMLChartStylefor each elementcharts/style(key: attributeid); duplicates replace earlier styles, errors are logged (if the XPath evaluation fails, no style is added).protected voidFills theFWCustomizableLayoutProvider.iFeatureStyleMapwith the elementsfeatures/featurestyle(key: attributeid), the predefined display styles for GeoToolsFeatureorFeatureCollectionobjects; duplicates replace earlier styles.protected voidStores each child element offorms(key: attributeid).protected voidCreates a function model for each child offunctions(key: attributeid).protected voidFills theFWCustomizableLayoutProvider.iGridStyleMapwith the elementsgrids/gridstyle(key: attributeid), the predefined display styles for GeoToolsGridCoverage2Dobjects; duplicates replace earlier styles.protected voidReads the locale prefix from the attributelocaleprefixand the layout properties from the children oflayout(attributekey, text as value).protected voidCreates a menu item for each child ofmenusthat has asubmenuofidand whose function exists; items of the submenutestonly in development mode.protected voidCreates the problem report model from the first child ofproblemreports.protected voidCreates the setting model from the first child ofsettings.protected voidStores each child element ofstatebar(key: attributeid).protected voidCreates a system model for each child ofsystems(key: attributeid); systems that cannot be initialized are skipped with a warning.protected voidCreates a toolbar button (icon from attributeiconid) for each child (with existing function) oftoolbar; ids containingseperatorbecome separators.Methods inherited from class FWCustomizableLayoutProvider
getChartStyle, getDefaultSystemSettings, getForm, getFunctionModel, getLayoutPropertiesMap, getLayoutProperty, getLocalePrefix, getMenuMap, getOriginalSystemModel, getProblemReportModel, getSettingModel, getStateBarFunctions, getSystemModel, getSystemModels, getToolMap, initializeStructure, isAccessable, isDeveloppmentMode, isShouldAddAtlasPanel, isShouldAddKeyworkPanel, isShouldAddScenarioPanel, isShouldAddSimComponentPanel, reInitializeStructure, reInitializeSystems, setShouldAddAtlasPanel, setShouldAddKeyworkPanel, setShouldAddScenarioPanel, setShouldAddSimComponentPanel
-
Constructor Details
-
XMLLayoutProvider
- Parameters:
aObjectFillingStructure- the customizing asorg.jdom2.Element,org.jdom2.Documentor XML string- Throws:
RuntimeException- if the root element is notclientconfig
-
-
Method Details
-
initSystemMap
protected void initSystemMap()Creates a system model for each child ofsystems(key: attributeid); systems that cannot be initialized are skipped with a warning.- Specified by:
initSystemMapin classFWCustomizableLayoutProvider
-
initProblemReportModel
protected void initProblemReportModel()Creates the problem report model from the first child ofproblemreports.- Specified by:
initProblemReportModelin classFWCustomizableLayoutProvider
-
initSettingModel
protected void initSettingModel()Creates the setting model from the first child ofsettings.- Specified by:
initSettingModelin classFWCustomizableLayoutProvider
-
initFunctionMap
protected void initFunctionMap()Creates a function model for each child offunctions(key: attributeid).- Specified by:
initFunctionMapin classFWCustomizableLayoutProvider
-
initLayoutPropertiesMap
protected void initLayoutPropertiesMap()Reads the locale prefix from the attributelocaleprefixand the layout properties from the children oflayout(attributekey, text as value). The tree panels are shown unlessshowKeywordPanel,showSimComponentPanel,showAtlasPanelorshowScenarioPanelisfalse.- Specified by:
initLayoutPropertiesMapin classFWCustomizableLayoutProvider
-
initMenuMap
protected void initMenuMap()Creates a menu item for each child ofmenusthat has asubmenuofidand whose function exists; items of the submenutestonly in development mode. Ids containingseperatorbecome separators (key<submenuofid>+FWMenuBar.SEPARATOR_KEY_DIVIDER+ id, valuenull).- Specified by:
initMenuMapin classFWCustomizableLayoutProvider
-
initToolMap
protected void initToolMap()Creates a toolbar button (icon from attributeiconid) for each child (with existing function) oftoolbar; ids containingseperatorbecome separators.- Specified by:
initToolMapin classFWCustomizableLayoutProvider
-
initStateBarFunctions
protected void initStateBarFunctions()Stores each child element ofstatebar(key: attributeid).- Specified by:
initStateBarFunctionsin classFWCustomizableLayoutProvider
-
initFormMap
protected void initFormMap()Stores each child element offorms(key: attributeid).- Specified by:
initFormMapin classFWCustomizableLayoutProvider
-
initChartStyleMap
protected void initChartStyleMap()Creates anXMLChartStylefor each elementcharts/style(key: attributeid); duplicates replace earlier styles, errors are logged (if the XPath evaluation fails, no style is added).- Specified by:
initChartStyleMapin classFWCustomizableLayoutProvider
-
initFeatureStyleMap
protected void initFeatureStyleMap()Fills theFWCustomizableLayoutProvider.iFeatureStyleMapwith the elementsfeatures/featurestyle(key: attributeid), the predefined display styles for GeoToolsFeatureorFeatureCollectionobjects; duplicates replace earlier styles.- Specified by:
initFeatureStyleMapin classFWCustomizableLayoutProvider
-
initGridStyleMap
protected void initGridStyleMap()Fills theFWCustomizableLayoutProvider.iGridStyleMapwith the elementsgrids/gridstyle(key: attributeid), the predefined display styles for GeoToolsGridCoverage2Dobjects; duplicates replace earlier styles.- Specified by:
initGridStyleMapin classFWCustomizableLayoutProvider
-
getChildObject
- Specified by:
getChildObjectin classFWCustomizableLayoutProvider- Parameters:
aName- name of the child element- Returns:
- the child element of
clientconfig, ornull
-