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
private  ObservableLinkedList genericActions
           
private  ObservableLinkedList procActions
           
private  ObservableLinkedList taskActions
           
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()
           
private  void initActionList()
          Instantiates each one of the static task observers and adds it to the list.
 void removeGenericActionPrototype(GenericAction genericAction)
           
 void removeProcActionPrototype(ProcAction procAction)
           
 void removeTaskActionPrototype(TaskAction taskAction)
           
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theManager

public static ActionManager theManager

procActions

private ObservableLinkedList procActions

taskActions

private ObservableLinkedList taskActions

genericActions

private ObservableLinkedList genericActions
Constructor Detail

ActionManager

public ActionManager()
Method Detail

initActionList

private void initActionList()
Instantiates each one of the static task observers and adds it to the list.


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)