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()
Element
getColumns
in interface Element
public void setColumns(int cols)
Element
setColumns
in interface Element
cols
- The size in number of columnspublic List<Element> getChildren()
Element
getChildren
in interface Element
public void toSAX(ContentHandler handler) throws SAXException
Element
toSAX
in interface Element
handler
- The content handler where to saxSAXException
- if an error occurs