Class RibbonApplicationMenuEntryFooter
- java.lang.Object
-
- org.pushingpixels.flamingo.api.ribbon.RibbonApplicationMenuEntryFooter
-
public class RibbonApplicationMenuEntryFooter extends Object
Metadata description for the footer entries of theRibbonApplicationMenu
. The footer entries at runtime are represented byJCommandButton.CommandButtonKind.ACTION_ONLY
command buttons placed in a right-aligned row along the bottom edge of the ribbon application menu.
-
-
Field Summary
Fields Modifier and Type Field Description protected String
actionKeyTip
Optional key tip for the action area of the command button that represents this menu entry.protected RichTooltip
actionRichTooltip
Optional tooltip for the action area of the command button that represents this menu entry.protected ResizableIcon
disabledIcon
The menu icon for disabled state.protected JCommandButton.CommandButtonKind
entryKind
The kind of the command button that represents this menu entry.protected ResizableIcon
icon
The menu icon.protected boolean
isEnabled
Enabled state of this menu.protected ActionListener
mainActionListener
The main action listener for this menu entry.protected String
popupKeyTip
Optional key tip for the popup area of the command button that represents this menu entry.protected RichTooltip
popupRichTooltip
Optional tooltip for the popup area of the command button that represents this menu entry.protected String
text
The menu text.
-
Constructor Summary
Constructors Constructor Description RibbonApplicationMenuEntryFooter(ResizableIcon icon, String text, ActionListener mainActionListener)
Creates the metadata description of aRibbonApplicationMenu
footer menu entry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getActionKeyTip()
Returns the key tip for the action area of the command button that represents this menu entry.RichTooltip
getActionRichTooltip()
Returns the rich tooltip for the action area of the command button that represents this menu entry.ResizableIcon
getDisabledIcon()
Returns the disabled icon for the command button that represents this menu entry.JCommandButton.CommandButtonKind
getEntryKind()
Returns the kind of the command button that represents this menu entry.ResizableIcon
getIcon()
Returns the icon of this application menu entry.ActionListener
getMainActionListener()
Returns the main action listener associated with this application menu entry.String
getPopupKeyTip()
Returns the key tip for the popup area of the command button that represents this menu entry.RichTooltip
getPopupRichTooltip()
Returns the rich tooltip for the popup area of the command button that represents this menu entry.String
getText()
Returns the text of this application menu entry.boolean
isEnabled()
Returns the enabled state of the command button that represents this menu entry.void
setActionKeyTip(String actionKeyTip)
Sets the new value for the key tip for the action area of the command button that represents this menu entry.void
setActionRichTooltip(RichTooltip actionRichTooltip)
Sets the rich tooltip for the action area of the command button that represents this menu entry.void
setDisabledIcon(ResizableIcon disabledIcon)
Sets the disabled icon for the command button that represents this menu entry.void
setEnabled(boolean isEnabled)
Sets the enabled state of the command button that represents this menu entry.void
setPopupKeyTip(String popupKeyTip)
Sets the new value for the key tip for the popup area of the command button that represents this menu entry.void
setPopupRichTooltip(RichTooltip popupRichTooltip)
Sets the rich tooltip for the popup area of the command button that represents this menu entry.void
setText(String text)
Sets the new text for this application menu entry.
-
-
-
Field Detail
-
icon
protected ResizableIcon icon
The menu icon.
-
disabledIcon
protected ResizableIcon disabledIcon
The menu icon for disabled state. Optional, can benull
.
-
text
protected String text
The menu text.
-
mainActionListener
protected ActionListener mainActionListener
The main action listener for this menu entry.
-
entryKind
protected JCommandButton.CommandButtonKind entryKind
The kind of the command button that represents this menu entry.
-
isEnabled
protected boolean isEnabled
Enabled state of this menu.
-
actionKeyTip
protected String actionKeyTip
Optional key tip for the action area of the command button that represents this menu entry.
-
popupKeyTip
protected String popupKeyTip
Optional key tip for the popup area of the command button that represents this menu entry.
-
actionRichTooltip
protected RichTooltip actionRichTooltip
Optional tooltip for the action area of the command button that represents this menu entry.
-
popupRichTooltip
protected RichTooltip popupRichTooltip
Optional tooltip for the popup area of the command button that represents this menu entry.
-
-
Constructor Detail
-
RibbonApplicationMenuEntryFooter
public RibbonApplicationMenuEntryFooter(ResizableIcon icon, String text, ActionListener mainActionListener)
Creates the metadata description of aRibbonApplicationMenu
footer menu entry.- Parameters:
icon
- The icon of this footer menu entry. Must be non-null
.text
- The text of this footer menu entry. Must be non-null
.mainActionListener
- The main action listener for this footer menu entry. While this can benull
, clicking on the matching button will have no effect.
-
-
Method Detail
-
getIcon
public ResizableIcon getIcon()
Returns the icon of this application menu entry.- Returns:
- The icon of this application menu entry.
-
getText
public String getText()
Returns the text of this application menu entry.- Returns:
- The text of this application menu entry.
- See Also:
setText(String)
-
setText
public void setText(String text)
Sets the new text for this application menu entry.- Parameters:
text
- The new text for this application menu entry.- See Also:
getText()
-
getMainActionListener
public ActionListener getMainActionListener()
Returns the main action listener associated with this application menu entry.- Returns:
- The main action listener associated with this application menu entry.
-
getEntryKind
public JCommandButton.CommandButtonKind getEntryKind()
Returns the kind of the command button that represents this menu entry.- Returns:
- The kind of the command button that represents this menu entry.
-
setEnabled
public void setEnabled(boolean isEnabled)
Sets the enabled state of the command button that represents this menu entry.- Parameters:
isEnabled
- Iftrue
, the command button that represents this menu entry will be enabled, iffalse
, the command button will be disabled.- See Also:
isEnabled
-
isEnabled
public boolean isEnabled()
Returns the enabled state of the command button that represents this menu entry.- Returns:
true
if the command button that represents this menu entry is enabled,false
otherwise.
-
getActionKeyTip
public String getActionKeyTip()
Returns the key tip for the action area of the command button that represents this menu entry.- Returns:
- The key tip for the action area of the command button that represents this menu entry.
- See Also:
setActionKeyTip(String)
,getPopupKeyTip()
-
setActionKeyTip
public void setActionKeyTip(String actionKeyTip)
Sets the new value for the key tip for the action area of the command button that represents this menu entry.- Parameters:
actionKeyTip
- The new value for the key tip for the action area of the command button that represents this menu entry.- See Also:
getActionKeyTip()
,setPopupKeyTip(String)
-
getPopupKeyTip
public String getPopupKeyTip()
Returns the key tip for the popup area of the command button that represents this menu entry.- Returns:
- The key tip for the popup area of the command button that represents this menu entry.
- See Also:
setPopupKeyTip(String)
,getActionKeyTip()
-
setPopupKeyTip
public void setPopupKeyTip(String popupKeyTip)
Sets the new value for the key tip for the popup area of the command button that represents this menu entry.- Parameters:
popupKeyTip
- The new value for the key tip for the popup area of the command button that represents this menu entry.- See Also:
getPopupKeyTip()
,setActionKeyTip(String)
-
getActionRichTooltip
public RichTooltip getActionRichTooltip()
Returns the rich tooltip for the action area of the command button that represents this menu entry.- Returns:
- The rich tooltip for the action area of the command button that represents this menu entry.
- See Also:
#setPopupTooltip(RichTooltip)
,getActionRichTooltip()
-
setActionRichTooltip
public void setActionRichTooltip(RichTooltip actionRichTooltip)
Sets the rich tooltip for the action area of the command button that represents this menu entry.- Parameters:
actionRichTooltip
- The rich tooltip for the action area of the command button that represents this menu entry.- See Also:
getActionRichTooltip()
,#setActionTooltip(RichTooltip)
-
getPopupRichTooltip
public RichTooltip getPopupRichTooltip()
Returns the rich tooltip for the popup area of the command button that represents this menu entry.- Returns:
- The rich tooltip for the popup area of the command button that represents this menu entry.
- See Also:
#setPopupTooltip(RichTooltip)
,getActionRichTooltip()
-
setPopupRichTooltip
public void setPopupRichTooltip(RichTooltip popupRichTooltip)
Sets the rich tooltip for the popup area of the command button that represents this menu entry.- Parameters:
popupRichTooltip
- The rich tooltip for the popup area of the command button that represents this menu entry.- See Also:
getPopupRichTooltip()
,#setActionTooltip(RichTooltip)
-
getDisabledIcon
public ResizableIcon getDisabledIcon()
Returns the disabled icon for the command button that represents this menu entry.- Returns:
- The disabled icon for the command button that represents this menu entry.
- See Also:
setDisabledIcon(ResizableIcon)
-
setDisabledIcon
public void setDisabledIcon(ResizableIcon disabledIcon)
Sets the disabled icon for the command button that represents this menu entry.- Parameters:
disabledIcon
- The disabled icon for the command button that represents this menu entry.- See Also:
getDisabledIcon()
-
-