Package org.ametys.core.ui
Class RibbonConfigurationManager
java.lang.Object
org.ametys.core.ui.RibbonConfigurationManager
This class handles the ribbon configuration needed for client side display.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Size constants for controlsstatic enum
Size constants for controls -
Field Summary
Modifier and TypeFieldDescriptionThe controls referenced by the ribbonprotected SourceResolver
The excalibur source resolverprotected RibbonConfiguration
The ribbon configuration, as read from the configuration sourceprotected RibbonControlsManager
The ribbon controls managerprotected RibbonImportManager
The ribbon import managerprotected RibbonManager
The ribbon control managerprotected RibbonManagerCache
The ribbon manager Cacheprotected RibbonTabsManager
The ribbon tab extension pointprotected SAXClientSideElementHelper
The sax clientside element helperThe tabs referenced by the ribbon -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(RibbonManager ribbonManager, ClientSideElementDependenciesManager dependenciesManager, RibbonConfigurationSource config, String workspaceName) Configure the manager after being setup, to read and load the ribbons filesgetControls
(Map<String, Object> contextParameters) Retrieve the list of controls referenced by the ribbongetTabs()
Retrieve the list of tabs referenced by the ribbonvoid
saxRibbonDefinition
(ContentHandler handler, Map<String, Object> contextualParameters) Sax the the initial configuration of the ribbon.void
setup
(RibbonControlsManager ribbonControlManager, RibbonTabsManager ribbonTabManager, RibbonImportManager ribbonImportManager, SAXClientSideElementHelper saxClientSideElementHelper, SourceResolver resolver, RibbonManagerCache ribbonManagerCache) Setup the ribbon configuration manager with the required components.
-
Field Details
-
_ribbonManager
The ribbon control manager -
_ribbonTabManager
The ribbon tab extension point -
_saxClientSideElementHelper
The sax clientside element helper -
_resolver
The excalibur source resolver -
_ribbonConfig
The ribbon configuration, as read from the configuration source -
_controlsReferences
The controls referenced by the ribbon -
_tabsReferences
The tabs referenced by the ribbon -
_ribbonControlManager
The ribbon controls manager -
_ribbonImportManager
The ribbon import manager -
_ribbonManagerCache
The ribbon manager Cache
-
-
Constructor Details
-
RibbonConfigurationManager
public RibbonConfigurationManager()
-
-
Method Details
-
setup
public void setup(RibbonControlsManager ribbonControlManager, RibbonTabsManager ribbonTabManager, RibbonImportManager ribbonImportManager, SAXClientSideElementHelper saxClientSideElementHelper, SourceResolver resolver, RibbonManagerCache ribbonManagerCache) Setup the ribbon configuration manager with the required components.- Parameters:
ribbonControlManager
- The ribbon control managerribbonTabManager
- the ribbon tab managerribbonImportManager
- The ribbon import managersaxClientSideElementHelper
- the helper to SAX client side elementresolver
- the excalibur source resolverribbonManagerCache
- The ribbon manager cache helper
-
configure
public void configure(RibbonManager ribbonManager, ClientSideElementDependenciesManager dependenciesManager, RibbonConfigurationSource config, String workspaceName) Configure the manager after being setup, to read and load the ribbons files- Parameters:
ribbonManager
- The ribbon manager for this configdependenciesManager
- The dependencies managerconfig
- the ribbon configurationworkspaceName
- The current workspace name- Throws:
RuntimeException
- if an error occurred
-
getControls
Retrieve the list of controls referenced by the ribbon- Parameters:
contextParameters
- Contextuals parameters transmitted by the environment.- Returns:
- The list of controls
-
getTabs
Retrieve the list of tabs referenced by the ribbon- Returns:
- The list of tabs
-
saxRibbonDefinition
public void saxRibbonDefinition(ContentHandler handler, Map<String, Object> contextualParameters) throws SAXExceptionSax the the initial configuration of the ribbon.- Parameters:
handler
- The content handler where to saxcontextualParameters
- Contextuals parameters transmitted by the environment.- Throws:
SAXException
- if an error occurs
-