public static class JBandControlPanel.ControlPanelGroup extends Object
Modifier and Type | Field | Description |
---|---|---|
String |
groupTitle |
Constructor | Description |
---|---|
ControlPanelGroup(String groupTitle) |
Modifier and Type | Method | Description |
---|---|---|
void |
addCommandButton(AbstractCommandButton ribbonButton,
RibbonElementPriority priority) |
Adds a new ribbon button to
this control panel. |
void |
addRibbonComponent(JRibbonComponent comp,
int rowSpan) |
|
void |
addRibbonGallery(JRibbonGallery ribbonGallery,
RibbonElementPriority priority) |
Adds a new in-ribbon gallery to
this control panel. |
String |
getGroupTitle() |
|
List<AbstractCommandButton> |
getRibbonButtons(RibbonElementPriority priority) |
Retrieves all ribbon buttons of specified priority from
this control panel. |
List<JRibbonComponent> |
getRibbonComps() |
|
Map<JRibbonComponent,Integer> |
getRibbonCompsRowSpans() |
|
List<JRibbonGallery> |
getRibbonGalleries(RibbonElementPriority priority) |
Retrieves all in-ribbon galleries of specified priority from
this control panel. |
int |
getRibbonGalleriesCount() |
Returns the number of in-ribbon galleries in
this
control panel. |
boolean |
hasRibbonGalleries() |
Returns indication whether
this control panel has
in-ribbon galleries. |
boolean |
isCoreContent() |
|
void |
setGroupTitle(String newTitle) |
|
void |
setPriority(JCommandButton ribbonButton,
RibbonElementPriority newPriority) |
Sets new priority of a ribbon button in
this control
panel. |
void |
setPriority(JRibbonGallery ribbonGallery,
RibbonElementPriority newPriority) |
Sets new priority of an in-ribbon gallery in
this
control panel. |
public String groupTitle
public ControlPanelGroup(String groupTitle)
public String getGroupTitle()
public void setGroupTitle(String newTitle)
public boolean isCoreContent()
public void addCommandButton(AbstractCommandButton ribbonButton, RibbonElementPriority priority)
this
control panel.ribbonButton
- Ribbon button to add.priority
- Ribbon button priority.public void addRibbonGallery(JRibbonGallery ribbonGallery, RibbonElementPriority priority)
this
control panel.ribbonGallery
- Ribbon gallery to add.priority
- Ribbon gallery priority.public void setPriority(JCommandButton ribbonButton, RibbonElementPriority newPriority)
this
control
panel.ribbonButton
- Gallery button.newPriority
- New priority for the specified ribbon button.public void setPriority(JRibbonGallery ribbonGallery, RibbonElementPriority newPriority)
this
control panel.ribbonGallery
- In-ribbon gallery.newPriority
- New priority for the specified in-ribbon gallery.public void addRibbonComponent(JRibbonComponent comp, int rowSpan)
public List<AbstractCommandButton> getRibbonButtons(RibbonElementPriority priority)
this
control panel.priority
- Priority.this
control panel.public List<JRibbonGallery> getRibbonGalleries(RibbonElementPriority priority)
this
control panel.priority
- Priority.this
control panel.public boolean hasRibbonGalleries()
this
control panel has
in-ribbon galleries.true
if this
control panel has
in-ribbon galleries, false
otherwise.public int getRibbonGalleriesCount()
this
control panel.this
control
panel.public List<JRibbonComponent> getRibbonComps()
public Map<JRibbonComponent,Integer> getRibbonCompsRowSpans()