org.topbraidcomposer.editors.actions.find.web
Class AbstractWebAction

java.lang.Object
  extended by org.topbraid.actions.resource.AbstractResourceAction
      extended by org.topbraidcomposer.editors.actions.find.web.AbstractWebAction
All Implemented Interfaces:
IAction, IResourceAction
Direct Known Subclasses:
FindGoogleAction, FindWikipediaAction

public abstract class AbstractWebAction
extends AbstractResourceAction


Constructor Summary
AbstractWebAction(java.lang.String text)
           
 
Method Summary
 java.lang.String getGroupName()
          Gets an (optional) group name allowing to define the placement of this action in a menu.
protected abstract  java.lang.String getURL(com.hp.hpl.jena.rdf.model.Resource resource)
           
 boolean isEnabledFor(com.hp.hpl.jena.rdf.model.Resource resource)
           
 boolean isVisibleFor(com.hp.hpl.jena.rdf.model.Resource resource)
           
 void run(com.hp.hpl.jena.rdf.model.Resource resource)
           
 
Methods inherited from class org.topbraid.actions.resource.AbstractResourceAction
dispose, getImageMetadata, getText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractWebAction

public AbstractWebAction(java.lang.String text)
Method Detail

getGroupName

public java.lang.String getGroupName()
Description copied from interface: IResourceAction
Gets an (optional) group name allowing to define the placement of this action in a menu.

Returns:
the group name or null

getURL

protected abstract java.lang.String getURL(com.hp.hpl.jena.rdf.model.Resource resource)

isEnabledFor

public boolean isEnabledFor(com.hp.hpl.jena.rdf.model.Resource resource)

isVisibleFor

public boolean isVisibleFor(com.hp.hpl.jena.rdf.model.Resource resource)

run

public void run(com.hp.hpl.jena.rdf.model.Resource resource)