org.biomoby.client.taverna.plugin
Class BiomobyScavengerAction

java.lang.Object
  extended by org.biomoby.client.taverna.plugin.BiomobyScavengerAction
All Implemented Interfaces:
ScavengerActionSPI

public class BiomobyScavengerAction
extends java.lang.Object
implements ScavengerActionSPI


Constructor Summary
BiomobyScavengerAction()
           
 
Method Summary
 boolean canHandle(Scavenger scavenger)
          Can this action handle the specified scavenger? Return true if this action is applicable.
 java.lang.String getDescription()
          Return a short description of the action to be used as the text in a context menu
 javax.swing.ImageIcon getIcon()
          Return an Icon to represent this action, return null if you want to use the default icon (boring)
 java.awt.event.ActionListener getListener(Scavenger scavenger)
          Return an ActionListener to be attached to whatever component is being generated.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BiomobyScavengerAction

public BiomobyScavengerAction()
Method Detail

canHandle

public boolean canHandle(Scavenger scavenger)
Description copied from interface: ScavengerActionSPI
Can this action handle the specified scavenger? Return true if this action is applicable.

Specified by:
canHandle in interface ScavengerActionSPI

getDescription

public java.lang.String getDescription()
Description copied from interface: ScavengerActionSPI
Return a short description of the action to be used as the text in a context menu

Specified by:
getDescription in interface ScavengerActionSPI

getIcon

public javax.swing.ImageIcon getIcon()
Description copied from interface: ScavengerActionSPI
Return an Icon to represent this action, return null if you want to use the default icon (boring)

Specified by:
getIcon in interface ScavengerActionSPI

getListener

public java.awt.event.ActionListener getListener(Scavenger scavenger)
Description copied from interface: ScavengerActionSPI
Return an ActionListener to be attached to whatever component is being generated. In the case of a context menu this will be a JMenuItem but it's best not to assume anything, it could be any kind of component. This method is passed the Scavenger object concerned, remember that the SPI mechanism creates a single instance of each implementing class so you should be careful about keeping state in the implementation (by 'be careful' I really mean 'don't').

Specified by:
getListener in interface ScavengerActionSPI