public class RibbonTask
extends java.lang.Object
JRibbon. This is a logical entity that groups
AbstractRibbonBand components.| Constructor and Description |
|---|
RibbonTask(java.lang.String title,
AbstractRibbonBand<?>... bands)
Creates a ribbon task that contains the specified bands.
|
| Modifier and Type | Method and Description |
|---|---|
AbstractRibbonBand<?> |
getBand(int index)
Returns band at the specified index from
this task. |
int |
getBandCount()
Returns the number of bands in
this task. |
java.util.List<AbstractRibbonBand<?>> |
getBands()
Returns an unmodifiable view on the ribbon bands of this task.
|
RibbonContextualTaskGroup |
getContextualGroup()
Returns the contextual task group for this ribbon task.
|
java.lang.String |
getKeyTip()
Returns the key tip for the task button of this task.
|
RibbonBandResizeSequencingPolicy |
getResizeSequencingPolicy()
Returns the current resize sequencing policy of this ribbon task.
|
java.lang.String |
getTitle()
Returns the title of this task.
|
void |
setKeyTip(java.lang.String keyTip)
Sets the specified parameter to be the new key tip for the task button of
this task.
|
void |
setResizeSequencingPolicy(RibbonBandResizeSequencingPolicy resizeSequencingPolicy)
Sets the specified parameter as the new resize sequencing policy of this
ribbon task.
|
void |
setTitle(java.lang.String title)
Changes the title of this ribbon task.
|
public RibbonTask(java.lang.String title,
AbstractRibbonBand<?>... bands)
title - Ribbon task title.bands - Bands to add to the ribbon task.public int getBandCount()
this task.this task.getBand(int),
getBands()public AbstractRibbonBand<?> getBand(int index)
this task.index - Band index.getBandCount(),
getBands()public java.lang.String getTitle()
public RibbonContextualTaskGroup getContextualGroup()
null for general ribbon tasks.public java.util.List<AbstractRibbonBand<?>> getBands()
getBandCount(),
getBand(int)public void setTitle(java.lang.String title)
title - The new title for this ribbon task.public RibbonBandResizeSequencingPolicy getResizeSequencingPolicy()
setResizeSequencingPolicy(RibbonBandResizeSequencingPolicy)public void setResizeSequencingPolicy(RibbonBandResizeSequencingPolicy resizeSequencingPolicy)
resizeSequencingPolicy - The new resize sequencing policy of this ribbon task.getResizeSequencingPolicy()public java.lang.String getKeyTip()
setKeyTip(String)public void setKeyTip(java.lang.String keyTip)
keyTip - The new key tip for the task button of this task.