Class JMadModelManagerAdapter
- java.lang.Object
-
- cern.accsoft.steering.jmad.model.manage.JMadModelManagerAdapter
-
- All Implemented Interfaces:
JMadModelManagerListener
public class JMadModelManagerAdapter extends java.lang.Object implements JMadModelManagerListener
A simple adapter which implements all methods of the listener and requires only those to be implemented when needed.
-
-
Constructor Summary
Constructors Constructor Description JMadModelManagerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addedModel(JMadModel newModel)
fired when a new model is added.void
changedActiveModel(JMadModel newActiveModel)
this method id called, when the model manager switches to a different model somehow.void
removedModel(JMadModel removedModel)
fired, when a model was removed from the manager.
-
-
-
Method Detail
-
addedModel
public void addedModel(JMadModel newModel)
Description copied from interface:JMadModelManagerListener
fired when a new model is added.- Specified by:
addedModel
in interfaceJMadModelManagerListener
- Parameters:
newModel
- the new model
-
changedActiveModel
public void changedActiveModel(JMadModel newActiveModel)
Description copied from interface:JMadModelManagerListener
this method id called, when the model manager switches to a different model somehow.NOTE: The new model might be null! This might be the case, e.g. a model is removed from the model manager
- Specified by:
changedActiveModel
in interfaceJMadModelManagerListener
- Parameters:
newActiveModel
- the actual (new) model
-
removedModel
public void removedModel(JMadModel removedModel)
Description copied from interface:JMadModelManagerListener
fired, when a model was removed from the manager.- Specified by:
removedModel
in interfaceJMadModelManagerListener
- Parameters:
removedModel
- the model which was removed from the manager
-
-