Class ControlRef
java.lang.Object
org.ametys.core.ui.ribbonconfiguration.ControlRef
- All Implemented Interfaces:
Element
A control
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionControlRef(String id, int colspan, Logger logger) Creates a control referenceControlRef(Configuration controlConfiguration, RibbonManager ribbonManager, Logger logger) Creates a control reference -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the list of children elements in this element.intGet the size taken by this element, in columnsgetId()Get the id of the ControlRefbooleanTest if an element is equal to another elementvoidsetColumns(int size) Set the size to take by this elementvoidtoSAX(ContentHandler handler) Sax the the configuration of the element.toString()
-
Field Details
-
_id
The id of the control -
_colspan
Number of columns used by the control upon some layouts. 1 is the common and defaul value -
_controlLogger
Logger
-
-
Constructor Details
-
ControlRef
public ControlRef(Configuration controlConfiguration, RibbonManager ribbonManager, Logger logger) throws ConfigurationException Creates a control reference- Parameters:
controlConfiguration- The configuration for the controlribbonManager- The ribbon managerlogger- The logger- Throws:
ConfigurationException- if an error occurred
-
ControlRef
Creates a control reference- Parameters:
id- The id referenced by this controlcolspan- The colspan of this controllogger- The logger
-
-
Method Details
-
getId
Get the id of the ControlRef- Returns:
- The id
-
getColumns
Description copied from interface:ElementGet the size taken by this element, in columns- Specified by:
getColumnsin interfaceElement- Returns:
- The size
-
setColumns
Description copied from interface:ElementSet the size to take by this element- Specified by:
setColumnsin interfaceElement- Parameters:
size- The size in number of columns
-
getChildren
Description copied from interface:ElementRetrieve the list of children elements in this element.- Specified by:
getChildrenin interfaceElement- Returns:
- The list of elements.
-
toSAX
Description copied from interface:ElementSax the the configuration of the element.- Specified by:
toSAXin interfaceElement- Parameters:
handler- The content handler where to sax- Throws:
SAXException- if an error occurs
-
isSame
Description copied from interface:ElementTest if an element is equal to another element -
toString
-