org.topbraid.actions
Class AbstractAction
java.lang.Object
org.topbraid.actions.AbstractAction
- All Implemented Interfaces:
- IAction
- Direct Known Subclasses:
- AbstractPredicateAction
public abstract class AbstractAction
- extends java.lang.Object
- implements IAction
An abstract base implementation of IAction.
- Author:
- Holger Knublauch
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractAction
public AbstractAction(java.lang.String name)
AbstractAction
public AbstractAction(java.lang.String name,
ImageMetadata imageMetadata)
getImageMetadata
public ImageMetadata getImageMetadata()
- Description copied from interface:
IAction
- Gets the (optional) ImageMetadata associated with this action.
- Specified by:
getImageMetadata in interface IAction
- Returns:
- the ImageMetadata or null
getText
public java.lang.String getText()
- Description copied from interface:
IAction
- Gets the display name of this action. Depending on the UI implementation
this could be rendered into a menu item name, tool tip text or button label.
- Specified by:
getText in interface IAction
- Returns:
- the display name or null
setImageMetadata
protected void setImageMetadata(ImageMetadata imageMetadata)