org.ow2.clif.console.lib.egui.editor
Class TestPlanObservable

java.lang.Object
  extended by java.util.Observable
      extended by org.ow2.clif.console.lib.egui.editor.TestPlanObservable

public class TestPlanObservable
extends java.util.Observable

Test plan observed by different views (TreeView and Editor). Each action done on treeview or editor is set in this class and notified to all observers.

Author:
Joan Chaumont

Constructor Summary
TestPlanObservable()
          Simple construtor.
TestPlanObservable(java.util.Map<java.lang.String,ClifDeployDefinition> testPlan)
          Construtor with a testplan
 
Method Summary
 java.lang.String getSelectId()
          Get selected id in the test plan
 java.util.Map<java.lang.String,ClifDeployDefinition> getTestPlan()
          Get the observable test plan
 void put(java.lang.String newId, ClifDeployDefinition definition)
          Associates the specified value with the specified key in this testplan and notify observers
 void remove(java.lang.String key)
          Removes the mapping for this key from this test plan and notify observers
 void setSelectId(java.lang.String selectId)
          Set selected of this test plan
 void setTestPlan(java.util.Map<java.lang.String,ClifDeployDefinition> testPlan)
          Set observable test plan
 
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
 

Constructor Detail

TestPlanObservable

public TestPlanObservable()
Simple construtor.


TestPlanObservable

public TestPlanObservable(java.util.Map<java.lang.String,ClifDeployDefinition> testPlan)
Construtor with a testplan

Parameters:
testPlan - the test plan observable by different views
Method Detail

getTestPlan

public java.util.Map<java.lang.String,ClifDeployDefinition> getTestPlan()
Get the observable test plan

Returns:
Returns the testPlan.

setTestPlan

public void setTestPlan(java.util.Map<java.lang.String,ClifDeployDefinition> testPlan)
Set observable test plan

Parameters:
testPlan - The testPlan to set.

remove

public void remove(java.lang.String key)
Removes the mapping for this key from this test plan and notify observers

Parameters:
key - key whose mapping is to be removed from the map.

put

public void put(java.lang.String newId,
                ClifDeployDefinition definition)
Associates the specified value with the specified key in this testplan and notify observers

Parameters:
newId - id with which the specified clif def is to be associated.
definition - definition to be associated with the specified key.

getSelectId

public java.lang.String getSelectId()
Get selected id in the test plan

Returns:
Returns the selectId.

setSelectId

public void setSelectId(java.lang.String selectId)
Set selected of this test plan

Parameters:
selectId - The selectId to set.