|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.embl.ebi.escience.scuflui.workbench.Workbench.CurrentWorkflowListener
public class Workbench.CurrentWorkflowListener
Notify WorkflowModelViewSPI instances that ModelMap.CURRENT_WORKFLOW have changed, by calling detachFromModel() and attachToModel(). In addition, a small ScuflModelEventListener is added to to the workflow that refreshes the file menu.
| Constructor Summary | |
|---|---|
Workbench.CurrentWorkflowListener()
|
|
| Method Summary | |
|---|---|
boolean |
canHandle(java.lang.String modelName,
java.lang.Object model)
Return true if the listener can handle events for the given modelname and model. |
void |
modelChanged(java.lang.String modelName,
java.lang.Object oldModel,
java.lang.Object newModel)
Called when the named model is updated |
void |
modelCreated(java.lang.String modelName,
java.lang.Object model)
Called when a new model is created or inserted into the model map under a previously absent key |
void |
modelDestroyed(java.lang.String modelName,
java.lang.Object oldModel)
Called when the named model is removed from the model map |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Workbench.CurrentWorkflowListener()
| Method Detail |
|---|
public boolean canHandle(java.lang.String modelName,
java.lang.Object model)
ModelMap.ModelChangeListenerFor modelChanged events, the canHandle() will be called with the newModel object.
canHandle in interface ModelMap.ModelChangeListenermodelName - name of the model ex: ModelMap.CURRENT_WORKFLOWmodel - Model that is being created, changed or destroyed
public void modelCreated(java.lang.String modelName,
java.lang.Object model)
ModelMap.ModelChangeListener
modelCreated in interface ModelMap.ModelChangeListenermodelName - name of the new modelmodel - the new model object
public void modelChanged(java.lang.String modelName,
java.lang.Object oldModel,
java.lang.Object newModel)
ModelMap.ModelChangeListener
modelChanged in interface ModelMap.ModelChangeListenermodelName - name of the model that changedoldModel - old model object it replacesnewModel - new model object
public void modelDestroyed(java.lang.String modelName,
java.lang.Object oldModel)
ModelMap.ModelChangeListener
modelDestroyed in interface ModelMap.ModelChangeListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||