| Modifier and Type | Field and Description | 
|---|---|
protected String | 
_controlsOrder
When overriding, defines the controls position in the original group 
 | 
protected String | 
_dialogBoxLauncher
The control to call when dialog box launcher is clicked (we exactly call the method in the param 'dialog-box-launcher') 
 | 
protected Logger | 
_groupLogger
The logger 
 | 
protected String | 
_icon
The icon of the group (in collapsed state) 
 | 
protected String | 
_iconGlyph
The icon glyph of the group (in collapsed state) 
 | 
protected I18nizableText | 
_label
The label of the group 
 | 
protected RibbonElementsInjectionHelper<Element> | 
_largeOverrideHelper
Helper for controls injection 
 | 
protected GroupSize | 
_largeSize
The large version of the group 
 | 
protected RibbonElementsInjectionHelper<Element> | 
_mediumOverrideHelper
Helper for controls injection 
 | 
protected GroupSize | 
_mediumSize
The medium version of the group 
 | 
protected String | 
_order
When overriding, defines the group position inside the tab 
 | 
protected Boolean | 
_override
True to override an existing group instead of defining a new one 
 | 
protected int | 
_priority
The priority of the group (for resize purposes) 
 | 
protected RibbonElementsInjectionHelper<Element> | 
_smallOverrideHelper
Helper for controls injection 
 | 
protected GroupSize | 
_smallSize
The short version of the group 
 | 
| Constructor and Description | 
|---|
Group(Configuration groupConfiguration,
     RibbonManager ribbonManager,
     Logger logger)
Creates a group 
 | 
Group(Group ribbonGroup)
Create an empty group by copying another group's parameters 
 | 
Group(Logger logger)
Creates an empty group 
 | 
| Modifier and Type | Method and Description | 
|---|---|
private void | 
_checkSizeConsistency(Configuration groupConfiguration)  | 
protected void | 
_configureLabelAndIcon(Configuration groupConfiguration)
Configure one group label 
 | 
private void | 
_configureOverride(Configuration groupConfiguration)  | 
protected void | 
_configureSize(Configuration groupConfiguration,
              RibbonManager ribbonManager)
Configure the different size of the group 
 | 
GroupSize | 
getLargeGroupSize()
Retrieve the large group size from this group 
 | 
GroupSize | 
getMediumGroupSize()
Retrieve the medium group size from this group 
 | 
String | 
getOrder()
Return the order of the group 
 | 
GroupSize | 
getSmallGroupSize()
Retrieve the small group size from this group 
 | 
void | 
injectGroup(Group group)
Inject a group's controls into this group 
 | 
private void | 
injectGroup(Group group,
           RibbonElementsInjectionHelper<Element> overrideHelper,
           GroupSize fromSizeFirst,
           GroupSize fromSizeSecond,
           GroupSize fromSizeThird)  | 
boolean | 
isEmpty()
Return true if the group does not have any controls 
 | 
boolean | 
isOverride()
Return true if the group overrides another group 
 | 
void | 
toSAX(ContentHandler handler)
Sax the the configuration of the group. 
 | 
String | 
toString()  | 
protected I18nizableText _label
protected String _iconGlyph
protected int _priority
protected String _dialogBoxLauncher
protected GroupSize _largeSize
protected GroupSize _mediumSize
protected GroupSize _smallSize
protected Boolean _override
protected String _controlsOrder
protected RibbonElementsInjectionHelper<Element> _largeOverrideHelper
protected RibbonElementsInjectionHelper<Element> _mediumOverrideHelper
protected RibbonElementsInjectionHelper<Element> _smallOverrideHelper
protected Logger _groupLogger
public Group(Configuration groupConfiguration, RibbonManager ribbonManager, Logger logger) throws ConfigurationException
groupConfiguration - The configuration of the groupribbonManager - The ribbon managerlogger - The loggerConfigurationException - if an error occurs in the configurationprotected void _configureLabelAndIcon(Configuration groupConfiguration) throws ConfigurationException
groupConfiguration - One group configurationConfigurationException - if an error occurredprotected void _configureSize(Configuration groupConfiguration, RibbonManager ribbonManager) throws ConfigurationException
groupConfiguration - One group configurationribbonManager - The ribbon managerConfigurationException - if an error occurredprivate void _checkSizeConsistency(Configuration groupConfiguration) throws ConfigurationException
ConfigurationExceptionprivate void _configureOverride(Configuration groupConfiguration)
public boolean isEmpty()
public GroupSize getLargeGroupSize()
public GroupSize getMediumGroupSize()
public GroupSize getSmallGroupSize()
public boolean isOverride()
public void injectGroup(Group group)
group - The group to injectprivate void injectGroup(Group group, RibbonElementsInjectionHelper<Element> overrideHelper, GroupSize fromSizeFirst, GroupSize fromSizeSecond, GroupSize fromSizeThird)
public void toSAX(ContentHandler handler) throws SAXException
handler - The content handler where to saxSAXException - if an error occurs