|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pushingpixels.flamingo.api.ribbon.RibbonApplicationMenuEntryFooter
public class RibbonApplicationMenuEntryFooter
Metadata description for the footer entries of the
RibbonApplicationMenu. The footer entries at runtime are represented
by JCommandButton.CommandButtonKind.ACTION_ONLY command buttons placed in a
right-aligned row along the bottom edge of the ribbon application menu.
| Field Summary | |
|---|---|
protected String |
actionKeyTip
Optional key tip 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 String |
text
The menu text. |
| Constructor Summary | |
|---|---|
RibbonApplicationMenuEntryFooter(ResizableIcon icon,
String text,
ActionListener mainActionListener)
Creates the metadata description of a RibbonApplicationMenu
footer menu entry. |
|
| Method Summary | |
|---|---|
String |
getActionKeyTip()
Returns the key tip 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. |
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 |
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 |
setText(String text)
Sets the new text for this application menu entry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ResizableIcon icon
protected ResizableIcon disabledIcon
null.
protected String text
protected ActionListener mainActionListener
protected JCommandButton.CommandButtonKind entryKind
protected boolean isEnabled
protected String actionKeyTip
protected String popupKeyTip
| Constructor Detail |
|---|
public RibbonApplicationMenuEntryFooter(ResizableIcon icon,
String text,
ActionListener mainActionListener)
RibbonApplicationMenu
footer menu entry.
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 be null, clicking on the matching button
will have no effect.| Method Detail |
|---|
public ResizableIcon getIcon()
public String getText()
setText(String)public void setText(String text)
text - The new text for this application menu entry.getText()public ActionListener getMainActionListener()
public JCommandButton.CommandButtonKind getEntryKind()
public void setEnabled(boolean isEnabled)
isEnabled - If true, the command button that represents this
menu entry will be enabled, if false, the command
button will be disabled.isEnabledpublic boolean isEnabled()
true if the command button that represents this menu
entry is enabled, false otherwise.public String getActionKeyTip()
setActionKeyTip(String),
getPopupKeyTip()public void setActionKeyTip(String actionKeyTip)
actionKeyTip - The new value for the key tip for the action area of the
command button that represents this menu entry.getActionKeyTip(),
setPopupKeyTip(String)public String getPopupKeyTip()
setPopupKeyTip(String),
getActionKeyTip()public void setPopupKeyTip(String popupKeyTip)
popupKeyTip - The new value for the key tip for the popup area of the
command button that represents this menu entry.getPopupKeyTip(),
setActionKeyTip(String)public ResizableIcon getDisabledIcon()
setDisabledIcon(ResizableIcon)public void setDisabledIcon(ResizableIcon disabledIcon)
disabledIcon - The disabled icon for the command button that represents this
menu entry.getDisabledIcon()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||