net.sf.taverna.update.plugin.event
Class PluginEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.sf.taverna.update.plugin.event.PluginEvent
All Implemented Interfaces:
java.io.Serializable

public class PluginEvent
extends java.util.EventObject

An event to notify listeners that a Plugin has changed.

Author:
David Withers
See Also:
Serialized Form

Field Summary
static int DISABLED
           
static int ENABLED
           
static int NONE
           
 
Constructor Summary
PluginEvent(java.lang.Object source, Plugin plugin)
          Constructs an instance of PluginEvent.
PluginEvent(java.lang.Object source, Plugin plugin, int action)
          Constructs an instance of PluginEvent.
 
Method Summary
 int getAction()
          Returns the action.
 Plugin getPlugin()
          Returns the plugin.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final int NONE
See Also:
Constant Field Values

ENABLED

public static final int ENABLED
See Also:
Constant Field Values

DISABLED

public static final int DISABLED
See Also:
Constant Field Values
Constructor Detail

PluginEvent

public PluginEvent(java.lang.Object source,
                   Plugin plugin)
Constructs an instance of PluginEvent.

Parameters:
source - the source of the event
plugin - the Plugin that has changed

PluginEvent

public PluginEvent(java.lang.Object source,
                   Plugin plugin,
                   int action)
Constructs an instance of PluginEvent.

Parameters:
source - the source of the event
plugin - the Plugin that has changed
action -
Method Detail

getPlugin

public Plugin getPlugin()
Returns the plugin.

Returns:
the plugin

getAction

public int getAction()
Returns the action.

Returns:
the action