org.topbraid.actions
Class AbstractAction

java.lang.Object
  extended by 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

Constructor Summary
AbstractAction(java.lang.String name)
           
AbstractAction(java.lang.String name, ImageMetadata imageMetadata)
           
 
Method Summary
 ImageMetadata getImageMetadata()
          Gets the (optional) ImageMetadata associated with this action.
 java.lang.String getText()
          Gets the display name of this action.
protected  void setImageMetadata(ImageMetadata imageMetadata)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAction

public AbstractAction(java.lang.String name)

AbstractAction

public AbstractAction(java.lang.String name,
                      ImageMetadata imageMetadata)
Method Detail

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)