|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface ModelMap.ModelChangeListener
Register with the static class to inform workbench like systems that the underlying map of named model objects has been altered in some way.
| 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 |
| Method Detail |
|---|
boolean canHandle(java.lang.String modelName,
java.lang.Object model)
For modelChanged events, the canHandle() will be called with the newModel object.
modelName - name of the model ex: ModelMap.CURRENT_WORKFLOWmodel - Model that is being created, changed or destroyed
void modelCreated(java.lang.String modelName,
java.lang.Object model)
modelName - name of the new modelmodel - the new model object
void modelChanged(java.lang.String modelName,
java.lang.Object oldModel,
java.lang.Object newModel)
modelName - name of the model that changednewModel - new model objectoldModel - old model object it replaces
void modelDestroyed(java.lang.String modelName,
java.lang.Object oldModel)
modelName -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||