| Modifier and Type | Field and Description |
|---|---|
protected int |
_cols
Number of columns used by the control upon some layouts.
|
protected List<Element> |
_elements
The elements in the layout.
|
protected RibbonConfigurationManager.LAYOUTALIGN |
_layoutAlign
The layout alignment
|
protected Logger |
_layoutLogger
Logger
|
protected RibbonConfigurationManager.CONTROLSIZE |
_size
The size of the control
|
| Constructor and Description |
|---|
Layout(Configuration layoutConfiguration,
RibbonManager ribbonManager,
Logger logger)
Creates a layout of controls
|
Layout(int cols,
RibbonConfigurationManager.CONTROLSIZE size,
RibbonConfigurationManager.LAYOUTALIGN align,
Logger logger)
Creates a layout of controls
|
Layout(Layout layout,
RibbonConfigurationManager.CONTROLSIZE size)
Create a new layout by duplicating an existing layout
|
| Modifier and Type | Method and Description |
|---|---|
RibbonConfigurationManager.LAYOUTALIGN |
getAlign()
Get the alignment of the layout
|
List<Element> |
getChildren()
Retrieve the list of children elements in this element.
|
int |
getColumns()
Get the size taken by this element, in columns
|
RibbonConfigurationManager.CONTROLSIZE |
getSize()
Get the size of the layout
|
boolean |
isSame(Element element)
Test if an element is equal to another element
|
void |
setColumns(int cols)
Set the size to take by this element
|
void |
toSAX(ContentHandler handler)
Sax the the configuration of the element.
|
protected RibbonConfigurationManager.LAYOUTALIGN _layoutAlign
protected RibbonConfigurationManager.CONTROLSIZE _size
protected int _cols
protected Logger _layoutLogger
public Layout(Configuration layoutConfiguration, RibbonManager ribbonManager, Logger logger) throws ConfigurationException
layoutConfiguration - The configuration for the layoutribbonManager - The ribbon managerlogger - The loggerConfigurationException - if an error occurredpublic Layout(Layout layout, RibbonConfigurationManager.CONTROLSIZE size)
layout - The original layoutsize - The new layout sizepublic Layout(int cols, RibbonConfigurationManager.CONTROLSIZE size, RibbonConfigurationManager.LAYOUTALIGN align, Logger logger)
cols - The number of columnssize - The sizealign - The alignmentlogger - The loggerpublic RibbonConfigurationManager.CONTROLSIZE getSize()
public RibbonConfigurationManager.LAYOUTALIGN getAlign()
public int getColumns()
ElementgetColumns in interface Elementpublic void setColumns(int cols)
ElementsetColumns in interface Elementcols - The size in number of columnspublic List<Element> getChildren()
ElementgetChildren in interface Elementpublic void toSAX(ContentHandler handler) throws SAXException
ElementtoSAX in interface Elementhandler - The content handler where to saxSAXException - if an error occurs