Class Group
java.lang.Object
org.ametys.core.ui.ribbonconfiguration.Group
A group of a tab in the ribbon
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
When overriding, defines the controls position in the original groupprotected String
The control to call when dialog box launcher is clicked (we exactly call the method in the param 'dialog-box-launcher')protected Logger
The loggerprotected String
The icon of the group (in collapsed state)protected String
The icon glyph of the group (in collapsed state)protected I18nizableText
The label of the groupprotected RibbonElementsInjectionHelper<Element>
Helper for controls injectionprotected GroupSize
The large version of the groupprotected RibbonElementsInjectionHelper<Element>
Helper for controls injectionprotected GroupSize
The medium version of the groupprotected String
When overriding, defines the group position inside the tabprotected Boolean
True to override an existing group instead of defining a new oneprotected int
The priority of the group (for resize purposes)protected RibbonElementsInjectionHelper<Element>
Helper for controls injectionprotected GroupSize
The short version of the group -
Constructor Summary
ConstructorDescriptionCreate an empty group by copying another group's parametersGroup
(Configuration groupConfiguration, RibbonManager ribbonManager, Logger logger) Creates a groupCreates an empty group -
Method Summary
Modifier and TypeMethodDescriptionprotected void
_configureLabelAndIcon
(Configuration groupConfiguration) Configure one group labelprotected void
_configureSize
(Configuration groupConfiguration, RibbonManager ribbonManager) Configure the different size of the groupRetrieve the large group size from this groupRetrieve the medium group size from this groupgetOrder()
Return the order of the groupRetrieve the small group size from this groupvoid
injectGroup
(Group group) Inject a group's controls into this groupboolean
isEmpty()
Return true if the group does not have any controlsboolean
Return true if the group overrides another groupvoid
toSAX
(ContentHandler handler) Sax the the configuration of the group.toString()
-
Field Details
-
_label
The label of the group -
_icon
The icon of the group (in collapsed state) -
_iconGlyph
The icon glyph of the group (in collapsed state) -
_priority
The priority of the group (for resize purposes) -
_dialogBoxLauncher
The control to call when dialog box launcher is clicked (we exactly call the method in the param 'dialog-box-launcher') -
_largeSize
The large version of the group -
_mediumSize
The medium version of the group -
_smallSize
The short version of the group -
_override
True to override an existing group instead of defining a new one -
_order
When overriding, defines the group position inside the tab -
_controlsOrder
When overriding, defines the controls position in the original group -
_largeOverrideHelper
Helper for controls injection -
_mediumOverrideHelper
Helper for controls injection -
_smallOverrideHelper
Helper for controls injection -
_groupLogger
The logger
-
-
Constructor Details
-
Group
public Group(Configuration groupConfiguration, RibbonManager ribbonManager, Logger logger) throws ConfigurationException Creates a group- Parameters:
groupConfiguration
- The configuration of the groupribbonManager
- The ribbon managerlogger
- The logger- Throws:
ConfigurationException
- if an error occurs in the configuration
-
Group
Creates an empty group- Parameters:
logger
- The logger
-
Group
Create an empty group by copying another group's parameters- Parameters:
ribbonGroup
- The ribbon group
-
-
Method Details
-
_configureLabelAndIcon
protected void _configureLabelAndIcon(Configuration groupConfiguration) throws ConfigurationException Configure one group label- Parameters:
groupConfiguration
- One group configuration- Throws:
ConfigurationException
- if an error occurred
-
_configureSize
protected void _configureSize(Configuration groupConfiguration, RibbonManager ribbonManager) throws ConfigurationException Configure the different size of the group- Parameters:
groupConfiguration
- One group configurationribbonManager
- The ribbon manager- Throws:
ConfigurationException
- if an error occurred
-
isEmpty
Return true if the group does not have any controls- Returns:
- True if empty
-
getLargeGroupSize
Retrieve the large group size from this group- Returns:
- The large group size. Can be null
-
getMediumGroupSize
Retrieve the medium group size from this group- Returns:
- The medium group size. Can be null
-
getSmallGroupSize
Retrieve the small group size from this group- Returns:
- The small group size. Can be null
-
isOverride
Return true if the group overrides another group- Returns:
- True if overrides
-
getOrder
Return the order of the group- Returns:
- The order
-
injectGroup
Inject a group's controls into this group- Parameters:
group
- The group to inject
-
toSAX
Sax the the configuration of the group.- Parameters:
handler
- The content handler where to sax- Throws:
SAXException
- if an error occurs
-
toString
-