org.topbraid.actions.statement
Class AbstractStatementAction

java.lang.Object
  extended by org.topbraid.actions.statement.AbstractStatementAction
All Implemented Interfaces:
IAction, IStatementAction
Direct Known Subclasses:
AbstractMoveStatementAction, AddMax1StatementAction, AssertStatementAction, ConvertObjectToBNodeAction, CreateReifiedStatementAction, DeleteReifiedStatementAction, DeleteStatementAction, ExecuteQueryAction, InferencesExplanationsStatementAction, ReplaceInstanceStatementAction, ViewReifiedStatementAction

public abstract class AbstractStatementAction
extends java.lang.Object
implements IStatementAction

A basic implementation of IStatementAction with some convenience services.

Author:
Holger Knublauch

Constructor Summary
AbstractStatementAction(java.lang.String name)
           
AbstractStatementAction(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.
 
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.statement.IStatementAction
isEnabledFor, isVisibleFor, run
 

Constructor Detail

AbstractStatementAction

public AbstractStatementAction(java.lang.String name)

AbstractStatementAction

public AbstractStatementAction(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