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

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

public class MoveDownStatementAction
extends AbstractMoveStatementAction

Author:
Gokhan H. Soydan

Constructor Summary
MoveDownStatementAction()
           
 
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.Statement statement)
          Executes the action for a given Statement.
 
Methods inherited from class org.topbraidcomposer.widgets.row.composite.actions.AbstractMoveStatementAction
run
 
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
 

Constructor Detail

MoveDownStatementAction

public MoveDownStatementAction()
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.

Specified by:
isEnabledFor in interface IStatementAction
Overrides:
isEnabledFor in class AbstractMoveStatementAction
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.

Specified by:
isVisibleFor in interface IStatementAction
Overrides:
isVisibleFor in class AbstractMoveStatementAction
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.Statement statement)
Description copied from interface: IStatementAction
Executes the action for a given Statement. This method is only called when the action is visible and enabled for the Statement. Typical implementation create an IChange and execute it.

Parameters:
statement - the Statement to operate on