org.embl.ebi.escience.scuflworkers.web
Class WebScavengerHelperImpl

java.lang.Object
  extended by org.embl.ebi.escience.scuflworkers.web.WebScavengerHelperImpl
All Implemented Interfaces:
ScavengerHelper, WebScavengerHelper

public class WebScavengerHelperImpl
extends java.lang.Object
implements ScavengerHelper, WebScavengerHelper

ScavengerHelper associated with Web Scavengers.

Author:
Stuart Owen

Constructor Summary
WebScavengerHelperImpl()
           
 
Method Summary
 java.util.Set<Scavenger> getDefaults()
          Always returns an empty set, WebScavengerHelper defaults are found using getDefaults(ScavengerTree tree).
 java.util.Set<Scavenger> getDefaults(javax.swing.tree.DefaultTreeModel theModel)
          Returns the defaults, determined by taverna.defaultweb within the mygrid.properties file.
 java.util.Set<Scavenger> getFromModel(ScuflModel model)
          Currently doesn't attempt to extract scavengers from the model, so always returns an empty Set.
 javax.swing.ImageIcon getIcon()
          Returns the icon for this scavenger helper
 java.awt.event.ActionListener getListener(ScavengerTree theScavengerTree)
          Returns the listener associated with the Scavenger Tree popup menu, to facilitate the adding of new Web Scavengers
 java.lang.String getScavengerDescription()
          Returns the description text for the menu item for this scavenger
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebScavengerHelperImpl

public WebScavengerHelperImpl()
Method Detail

getDefaults

public java.util.Set<Scavenger> getDefaults()
Always returns an empty set, WebScavengerHelper defaults are found using getDefaults(ScavengerTree tree).

Specified by:
getDefaults in interface ScavengerHelper
Returns:
a Set of default Scavengers

getFromModel

public java.util.Set<Scavenger> getFromModel(ScuflModel model)
Currently doesn't attempt to extract scavengers from the model, so always returns an empty Set.

Specified by:
getFromModel in interface ScavengerHelper
Returns:

getIcon

public javax.swing.ImageIcon getIcon()
Returns the icon for this scavenger helper

Specified by:
getIcon in interface ScavengerHelper
Returns:
the icon associated with this ScavengerHelper

getListener

public java.awt.event.ActionListener getListener(ScavengerTree theScavengerTree)
Returns the listener associated with the Scavenger Tree popup menu, to facilitate the adding of new Web Scavengers

Specified by:
getListener in interface ScavengerHelper

getScavengerDescription

public java.lang.String getScavengerDescription()
Returns the description text for the menu item for this scavenger

Specified by:
getScavengerDescription in interface ScavengerHelper

getDefaults

public java.util.Set<Scavenger> getDefaults(javax.swing.tree.DefaultTreeModel theModel)
Returns the defaults, determined by taverna.defaultweb within the mygrid.properties file. This is specific to WebScavengerHelper since WebScavengers need ScavengerTree in their constuctor.

Specified by:
getDefaults in interface WebScavengerHelper
Returns: