Class GroupSize
java.lang.Object
org.ametys.core.ui.ribbonconfiguration.GroupSize
A group in a defined size
-
Field Summary
Modifier and TypeFieldDescriptionThe list of elements in the group (controls or layouts)protected Logger
The logger -
Constructor Summary
ConstructorDescriptionGroupSize
(Configuration groupSizeConfiguration, RibbonManager ribbonManager, Logger logger) Creates a group in a defined sizeCreates an empty group in a defined size -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the list of children elements in this element.Get a set of all referenced idsboolean
Test if this GroupSize contains the same elements as another GroupSizevoid
toSAX
(String elementName, ContentHandler handler) Sax the the configuration of the group size.
-
Field Details
-
_elements
The list of elements in the group (controls or layouts) -
_groupSizeLogger
The logger
-
-
Constructor Details
-
GroupSize
public GroupSize(Configuration groupSizeConfiguration, RibbonManager ribbonManager, Logger logger) throws ConfigurationException Creates a group in a defined size- Parameters:
groupSizeConfiguration
- The configuration for the sizeribbonManager
- The ribbon managerlogger
- The logger- Throws:
ConfigurationException
- if an error occurred
-
GroupSize
Creates an empty group in a defined size- Parameters:
logger
- The logger
-
-
Method Details
-
getControlIds
Get a set of all referenced ids- Returns:
- A non null set of control ids
-
getChildren
Retrieve the list of children elements in this element.- Returns:
- The list of elements.
-
toSAX
Sax the the configuration of the group size.- Parameters:
elementName
- The name of the surrounding element to usehandler
- The content handler where to sax- Throws:
SAXException
- if an error occurs
-
isSame
Test if this GroupSize contains the same elements as another GroupSize- Parameters:
obj
- The other GroupSize- Returns:
- True if they are equals
-