Class Toolbar
java.lang.Object
org.ametys.core.ui.ribbonconfiguration.Toolbar
- All Implemented Interfaces:
Element
A toolbar of controls
-
Field Summary
-
Constructor Summary
ConstructorDescriptionToolbar
(Configuration toolbarConfiguration, RibbonManager ribbonManager, Logger logger) Creates a toolbar of controlsCreates an empty toolbar of controls -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the list of children elements in this element.int
Get the size taken by this element, in columnsboolean
Test if an element is equal to another elementvoid
setColumns
(int size) Set the size to take by this elementvoid
toSAX
(ContentHandler handler) Sax the the configuration of the element.
-
Field Details
-
_colspan
Number of columns used by the control upon some layouts. 1 is the common and default value -
_elements
The elements in the layout. Can be controls -
_toolbarLogger
Logger
-
-
Constructor Details
-
Toolbar
public Toolbar(Configuration toolbarConfiguration, RibbonManager ribbonManager, 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
Creates an empty toolbar of controls- Parameters:
logger
- The loggercolspan
- The toolbar colspan
-
-
Method Details
-
getColumns
Description copied from interface:Element
Get the size taken by this element, in columns- Specified by:
getColumns
in interfaceElement
- Returns:
- The size
-
setColumns
Description copied from interface:Element
Set the size to take by this element- Specified by:
setColumns
in interfaceElement
- Parameters:
size
- The size in number of columns
-
getChildren
Description copied from interface:Element
Retrieve the list of children elements in this element.- Specified by:
getChildren
in interfaceElement
- Returns:
- The list of elements.
-
toSAX
Description copied from interface:Element
Sax the the configuration of the element.- Specified by:
toSAX
in interfaceElement
- Parameters:
handler
- The content handler where to sax- Throws:
SAXException
- if an error occurs
-
isSame
Description copied from interface:Element
Test if an element is equal to another element
-