org.topbraid.actions.resource
Class AbstractResourceAction

java.lang.Object
  extended by org.topbraid.actions.resource.AbstractResourceAction
All Implemented Interfaces:
IAction, IResourceAction
Direct Known Subclasses:
AbstractResourceActionWithProgressMonitor, AbstractWebAction, AssignPrefixAction, DeleteResourceAction, EditFormAction, NavigateToDefinitionInImportAction, NavigateToOntologyAction

public abstract class AbstractResourceAction
extends java.lang.Object
implements IResourceAction


Constructor Summary
protected AbstractResourceAction(java.lang.String label)
           
protected AbstractResourceAction(java.lang.String label, ImageMetadata imageMetadata)
           
 
Method Summary
 void dispose()
           
 ImageMetadata getImageMetadata()
          Gets the (optional) ImageMetadata associated with this action.
 java.lang.String getText()
          Gets the display name of this action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.topbraid.actions.resource.IResourceAction
getGroupName, isEnabledFor, isVisibleFor, run
 

Constructor Detail

AbstractResourceAction

protected AbstractResourceAction(java.lang.String label)

AbstractResourceAction

protected AbstractResourceAction(java.lang.String label,
                                 ImageMetadata imageMetadata)
Method Detail

dispose

public void dispose()

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