Class RibbonTask
- java.lang.Object
-
- org.pushingpixels.flamingo.api.ribbon.RibbonTask
-
public class RibbonTask extends Object
Single ribbon task inJRibbon. This is a logical entity that groupsAbstractRibbonBandcomponents.
-
-
Constructor Summary
Constructors Constructor Description RibbonTask(String title, AbstractRibbonBand<?>... bands)Creates a ribbon task that contains the specified bands.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractRibbonBand<?>getBand(int index)Returns band at the specified index fromthistask.intgetBandCount()Returns the number of bands inthistask.List<AbstractRibbonBand<?>>getBands()Returns an unmodifiable view on the ribbon bands of this task.RibbonContextualTaskGroupgetContextualGroup()Returns the contextual task group for this ribbon task.StringgetKeyTip()Returns the key tip for the task button of this task.RibbonBandResizeSequencingPolicygetResizeSequencingPolicy()Returns the current resize sequencing policy of this ribbon task.StringgetTitle()Returns the title of this task.voidsetKeyTip(String keyTip)Sets the specified parameter to be the new key tip for the task button of this task.voidsetResizeSequencingPolicy(RibbonBandResizeSequencingPolicy resizeSequencingPolicy)Sets the specified parameter as the new resize sequencing policy of this ribbon task.voidsetTitle(String title)Changes the title of this ribbon task.
-
-
-
Constructor Detail
-
RibbonTask
public RibbonTask(String title, AbstractRibbonBand<?>... bands)
Creates a ribbon task that contains the specified bands.- Parameters:
title- Ribbon task title.bands- Bands to add to the ribbon task.
-
-
Method Detail
-
getBandCount
public int getBandCount()
Returns the number of bands inthistask.- Returns:
- Number of bands in
thistask. - See Also:
getBand(int),getBands()
-
getBand
public AbstractRibbonBand<?> getBand(int index)
Returns band at the specified index fromthistask.- Parameters:
index- Band index.- Returns:
- Band at the specified index.
- See Also:
getBandCount(),getBands()
-
getTitle
public String getTitle()
Returns the title of this task.- Returns:
- The title of this task.
-
getContextualGroup
public RibbonContextualTaskGroup getContextualGroup()
Returns the contextual task group for this ribbon task. Will returnnullfor general ribbon tasks.- Returns:
- The contextual task group for this ribbon task.
-
getBands
public List<AbstractRibbonBand<?>> getBands()
Returns an unmodifiable view on the ribbon bands of this task.- Returns:
- Unmodifiable view on the ribbon bands of this task.
- See Also:
getBandCount(),getBand(int)
-
setTitle
public void setTitle(String title)
Changes the title of this ribbon task.- Parameters:
title- The new title for this ribbon task.
-
getResizeSequencingPolicy
public RibbonBandResizeSequencingPolicy getResizeSequencingPolicy()
Returns the current resize sequencing policy of this ribbon task.- Returns:
- The current resize sequencing policy of this ribbon task.
- See Also:
setResizeSequencingPolicy(RibbonBandResizeSequencingPolicy)
-
setResizeSequencingPolicy
public void setResizeSequencingPolicy(RibbonBandResizeSequencingPolicy resizeSequencingPolicy)
Sets the specified parameter as the new resize sequencing policy of this ribbon task.- Parameters:
resizeSequencingPolicy- The new resize sequencing policy of this ribbon task.- See Also:
getResizeSequencingPolicy()
-
getKeyTip
public String getKeyTip()
Returns the key tip for the task button of this task.- Returns:
- The key tip for the task button of this task.
- See Also:
setKeyTip(String)
-
setKeyTip
public void setKeyTip(String keyTip)
Sets the specified parameter to be the new key tip for the task button of this task.- Parameters:
keyTip- The new key tip for the task button of this task.
-
-