org.topbraidcomposer.widgets.row.actions
Class CreateReifiedStatementAction

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

public class CreateReifiedStatementAction
extends AbstractStatementAction


Constructor Summary
CreateReifiedStatementAction()
           
 
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.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

CreateReifiedStatementAction

public CreateReifiedStatementAction()
Method Detail

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

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