public class ActionPresentationData extends java.lang.Object implements ActionPresentation
| Constructor and Description |
|---|
ActionPresentationData(java.lang.String text,
java.lang.String description,
javax.swing.Icon icon)
Creates an action presentation with the specified text, description and icon.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription()
Returns the description of the action, displayed in the status bar when the mouse
is over the toolbar button.
|
javax.swing.Icon |
getIcon()
Returns the icon for the action, displayed on the toolbar button.
|
java.lang.String |
getText()
Returns the name of the action, displayed in the tooltip for the toolbar button.
|
public ActionPresentationData(java.lang.String text,
java.lang.String description,
javax.swing.Icon icon)
text - the name of the action, displayed in the tooltip for the toolbar button.description - the description of the action, displayed in the status bar when the mouse
is over the toolbar button.icon - the icon for the action, displayed on the toolbar button.public java.lang.String getText()
ActionPresentationgetText in interface ActionPresentationpublic java.lang.String getDescription()
ActionPresentationgetDescription in interface ActionPresentationpublic javax.swing.Icon getIcon()
ActionPresentationgetIcon in interface ActionPresentation