frysk.gui.monitor.actions
Class ActionManager

java.lang.Object
  extended by java.util.Observable
      extended by frysk.gui.monitor.actions.ActionManager

public class ActionManager
extends Observable

Only once instance. Keeps a list of available actions. Provides an interface for instantiating those actions.


Field Summary
static ActionManager theManager
           
 
Constructor Summary
ActionManager()
           
 
Method Summary
 void addGenericActionPrototype(Action prototype)
          Add a generic Action to the list of available Action prototypes.
 void addProcActionPrototype(ProcAction prototype)
          Add a ProcAction to the list of available ProcAction prototypes.
 void addTaskActionPrototype(TaskAction prototype)
          Add a TaskAction to the list of available TaskAction prototypes.
 ObservableLinkedList getGenericActions()
           
 ObservableLinkedList getProcActions()
           
 ObservableLinkedList getTaskActions()
           
 void removeGenericActionPrototype(GenericAction genericAction)
           
 void removeProcActionPrototype(ProcAction procAction)
           
 void removeTaskActionPrototype(TaskAction taskAction)
           
 
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theManager

public static ActionManager theManager
Constructor Detail

ActionManager

public ActionManager()
Method Detail

getProcActions

public ObservableLinkedList getProcActions()

getTaskActions

public ObservableLinkedList getTaskActions()

getGenericActions

public ObservableLinkedList getGenericActions()

addProcActionPrototype

public void addProcActionPrototype(ProcAction prototype)
Add a ProcAction to the list of available ProcAction prototypes.

Parameters:
prototype - the action to be added.

addTaskActionPrototype

public void addTaskActionPrototype(TaskAction prototype)
Add a TaskAction to the list of available TaskAction prototypes.

Parameters:
prototype - the action to be added.

addGenericActionPrototype

public void addGenericActionPrototype(Action prototype)
Add a generic Action to the list of available Action prototypes.

Parameters:
prototype - the action to be added.

removeGenericActionPrototype

public void removeGenericActionPrototype(GenericAction genericAction)

removeTaskActionPrototype

public void removeTaskActionPrototype(TaskAction taskAction)

removeProcActionPrototype

public void removeProcActionPrototype(ProcAction procAction)