Class Toolbar
- java.lang.Object
-
- org.ametys.core.ui.ribbonconfiguration.Toolbar
-
-
Field Summary
Fields Modifier and Type Field Description protected int_colspanNumber of columns used by the control upon some layouts.protected List<Element>_elementsThe elements in the layout.protected org.slf4j.Logger_toolbarLoggerLogger
-
Constructor Summary
Constructors Constructor Description Toolbar(Configuration toolbarConfiguration, RibbonManager ribbonManager, org.slf4j.Logger logger)Creates a toolbar of controlsToolbar(org.slf4j.Logger logger, int colspan)Creates an empty toolbar of controls
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Element>getChildren()Retrieve the list of children elements in this element.intgetColumns()Get the size taken by this element, in columnsbooleanisSame(Element element)Test 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.
-
-
-
Field Detail
-
_colspan
protected int _colspan
Number of columns used by the control upon some layouts. 1 is the common and default value
-
_toolbarLogger
protected org.slf4j.Logger _toolbarLogger
Logger
-
-
Constructor Detail
-
Toolbar
public Toolbar(Configuration toolbarConfiguration, RibbonManager ribbonManager, org.slf4j.Logger logger) throws ConfigurationException
Creates a toolbar of controls- Parameters:
toolbarConfiguration- The configuration for the layoutribbonManager- The ribbon managerlogger- The logger- Throws:
ConfigurationException- if an error occurred
-
Toolbar
public Toolbar(org.slf4j.Logger logger, int colspan)
Creates an empty toolbar of controls- Parameters:
logger- The loggercolspan- The toolbar colspan
-
-
Method Detail
-
getColumns
public int getColumns()
Description copied from interface:ElementGet the size taken by this element, in columns- Specified by:
getColumnsin interfaceElement- Returns:
- The size
-
setColumns
public void setColumns(int size)
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
public List<Element> getChildren()
Description copied from interface:ElementRetrieve the list of children elements in this element.- Specified by:
getChildrenin interfaceElement- Returns:
- The list of elements.
-
toSAX
public void toSAX(ContentHandler handler) throws SAXException
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
-
-