org.topbraidcomposer.widgets.row.composite.actions
Class AbstractMoveStatementAction

java.lang.Object
  extended by org.topbraid.actions.statement.AbstractStatementAction
      extended by org.topbraidcomposer.widgets.row.composite.actions.AbstractMoveStatementAction
All Implemented Interfaces:
IAction, IStatementAction
Direct Known Subclasses:
MoveDownStatementAction, MoveUpStatementAction

public abstract class AbstractMoveStatementAction
extends AbstractStatementAction

Author:
Gokhan H. Soydan

Constructor Summary
AbstractMoveStatementAction(java.lang.String name)
           
 
Method Summary
 boolean isEnabledFor(com.hp.hpl.jena.rdf.model.Statement statement)
          Checks if this action is enabled for a given statement.
 boolean isVisibleFor(com.hp.hpl.jena.rdf.model.Statement statement)
          Checks if this action shall appear in a UI (drop down menu) for a given statement.
 void run(com.hp.hpl.jena.rdf.model.Resource firstChild, com.hp.hpl.jena.rdf.model.Resource secondChild)
           
 
Methods inherited from class org.topbraid.actions.statement.AbstractStatementAction
getImageMetadata, getText
 
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
run
 

Constructor Detail

AbstractMoveStatementAction

public AbstractMoveStatementAction(java.lang.String name)
Method Detail

isEnabledFor

public boolean isEnabledFor(com.hp.hpl.jena.rdf.model.Statement statement)
Description copied from interface: IStatementAction
Checks if this action is enabled for a given statement. This method is only called if isVisibleFor(statement) has delivered true.

Parameters:
statement - the Statement to test against
Returns:
true if this is enabled for statement

isVisibleFor

public boolean isVisibleFor(com.hp.hpl.jena.rdf.model.Statement statement)
Description copied from interface: IStatementAction
Checks if this action shall appear in a UI (drop down menu) for a given statement. Being visible does not automatically mean that the action is also enabled - it may show up in gray if a further call to isEnabledFor returns false.

Parameters:
statement - the Statement to test against
Returns:
true if this is visible for statement

run

public void run(com.hp.hpl.jena.rdf.model.Resource firstChild,
                com.hp.hpl.jena.rdf.model.Resource secondChild)