Class GroupSize
- java.lang.Object
-
- org.ametys.core.ui.ribbonconfiguration.GroupSize
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Element>
_elements
The list of elements in the group (controls or layouts)protected org.slf4j.Logger
_groupSizeLogger
The logger
-
Constructor Summary
Constructors Constructor Description GroupSize(Configuration groupSizeConfiguration, RibbonManager ribbonManager, org.slf4j.Logger logger)
Creates a group in a defined sizeGroupSize(org.slf4j.Logger logger)
Creates an empty group in a defined size
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Set<String>
_getControlIds(List<Element> elements)
List<Element>
getChildren()
Retrieve the list of children elements in this element.Set<String>
getControlIds()
Get a set of all referenced idsboolean
isSame(GroupSize obj)
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 Detail
-
_groupSizeLogger
protected org.slf4j.Logger _groupSizeLogger
The logger
-
-
Constructor Detail
-
GroupSize
public GroupSize(Configuration groupSizeConfiguration, RibbonManager ribbonManager, org.slf4j.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
public GroupSize(org.slf4j.Logger logger)
Creates an empty group in a defined size- Parameters:
logger
- The logger
-
-
Method Detail
-
getControlIds
public Set<String> getControlIds()
Get a set of all referenced ids- Returns:
- A non null set of control ids
-
_getControlIds
private Set<String> _getControlIds(List<Element> elements)
-
getChildren
public List<Element> getChildren()
Retrieve the list of children elements in this element.- Returns:
- The list of elements.
-
toSAX
public void toSAX(String elementName, ContentHandler handler) throws SAXException
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
-
-