Modifier and Type | Field and Description |
---|---|
protected String |
_contextualColor
The color (between 1 and 6) for a contextual tab
|
protected String |
_contextualGroup
The id of the contextual group (can be null for single contextual tab)
|
protected I18nizableText |
_contextualLabel
The label of the contextual group
|
protected String |
_controlId
The optional id of the contextual client side element determining the state of the ribbon
|
protected List<Group> |
_groups
The list of groups in the tab
|
protected I18nizableText |
_label
The label of the tab
|
protected Logger |
_log
Logger
|
protected Object |
_order
The tab order
|
protected Boolean |
_orderBefore
True to order before a tab specified by _order
|
protected Boolean |
_override
True to override an existing tab instead of defining a new one
|
protected RibbonElementsInjectionHelper<Group> |
_tabOverrideHelper
helper for group injection
|
Constructor and Description |
---|
Tab(Configuration tabConfiguration,
RibbonManager ribbonManager,
Integer defaultOrder,
Logger logger)
Creates a tab
|
Modifier and Type | Method and Description |
---|---|
protected void |
_configureGroups(Configuration tabConfiguration,
RibbonManager ribbonManager)
Configure tabs groups
|
protected void |
_configureId(Configuration tabConfiguration)
Configure tab optional id
|
private void |
_configureOrder(Configuration tabConfiguration,
Integer defaultOrder) |
protected void |
_generateTabControl(Configuration tabConfiguration,
RibbonManager ribbonManager)
Generate a new tab control on the fly
|
List<Group> |
getGroups()
Retrieve the list of configured groups
|
String |
getId()
Get the id of this tab;
|
String |
getLabel()
Get the tab label
|
Integer |
getOrderAsInteger()
Get the order attribute of the tab
|
String |
getOrderAsString()
Get the order attribute of the tab
|
void |
injectGroups(List<Group> groups)
Inject a list of groups into this tab
|
void |
injectGroupsOverride(List<Group> groups)
Inject a list of overriding groups into this tab
|
Boolean |
isContextual()
Return true if the tab is contextual
|
boolean |
isOverride()
Return true if this tab overrides an existing tab
|
boolean |
orderBefore()
True if the tab should be ordered before the tab referenced by the attribute order
|
void |
saxGroups(ContentHandler handler,
List<Group> groups)
Sax the configuration of the tab.
|
void |
setOrder(Object order)
Set the order attribute of the tab
|
String |
toString() |
protected I18nizableText _label
protected String _controlId
protected String _contextualColor
protected String _contextualGroup
protected I18nizableText _contextualLabel
protected Boolean _orderBefore
protected Boolean _override
protected RibbonElementsInjectionHelper<Group> _tabOverrideHelper
public Tab(Configuration tabConfiguration, RibbonManager ribbonManager, Integer defaultOrder, Logger logger) throws ConfigurationException
tabConfiguration
- The configuration of the tabribbonManager
- The ribbon managerdefaultOrder
- The default tab order, if not specified. Can be nulllogger
- The loggerConfigurationException
- if an error occurs in the configurationpublic Boolean isContextual()
protected void _configureId(Configuration tabConfiguration) throws ConfigurationException
tabConfiguration
- One tab configurationConfigurationException
- if an error occurredprotected void _generateTabControl(Configuration tabConfiguration, RibbonManager ribbonManager) throws ConfigurationException
tabConfiguration
- The tab configurationribbonManager
- The ribbon managerConfigurationException
- If an error occursprotected void _configureGroups(Configuration tabConfiguration, RibbonManager ribbonManager) throws ConfigurationException
tabConfiguration
- One tab configurationribbonManager
- The ribbon managerConfigurationException
- if an error occurredprivate void _configureOrder(Configuration tabConfiguration, Integer defaultOrder)
public String getOrderAsString()
public Integer getOrderAsInteger()
public void setOrder(Object order)
order
- The new order value, either a String or an Integerpublic boolean orderBefore()
public List<Group> getGroups()
public boolean isOverride()
public void injectGroups(List<Group> groups)
groups
- The list of groups to injectpublic void injectGroupsOverride(List<Group> groups)
groups
- The list of groups to injectpublic void saxGroups(ContentHandler handler, List<Group> groups) throws SAXException
handler
- The content handler where to saxgroups
- The list of groups to saxSAXException
- if an error occurs