|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.scopemvc.model.basic.ModelChangeEventSupport
Delegate to help ModelChangeEvent listener registration and firing. Used by
BasicModel
. Events are fired synchronously in this implementation.
BasicModel
Constructor Summary | |
ModelChangeEventSupport(ModelChangeEventSource inSource)
Constructor for the ModelChangeEventSupport object |
Method Summary | |
void |
activateModel()
Disable ModelChangeEvent broadcasting for a Model. |
void |
addModelChangeListener(ModelChangeListener inListener)
Register a ModelChangeListener to receive ModelChangeEvent broadcasts from the passed Model. |
void |
deactivateModel()
Enable ModelChangeEvent broadcasting for a Model that was disabled. |
void |
fireModelChange(int inType,
Selector inSelector)
Fire a ModelChangeEvent to all listeners |
boolean |
isModelDeactivated()
Returns true if the model is deactivated |
void |
removeModelChangeListener(ModelChangeListener inListener)
Remove a ModelChangeListener from the set of registered listeners to the passed Model. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ModelChangeEventSupport(ModelChangeEventSource inSource)
inSource
- The source of ModelChangeEventsMethod Detail |
public boolean isModelDeactivated()
public final void activateModel()
BasicModel.makeActive(boolean)
public final void deactivateModel()
BasicModel.makeActive(boolean)
public void addModelChangeListener(ModelChangeListener inListener)
inListener
- the ModelChangeEvent listener to register with the
Model to receive its ModelChangeEvent broadcasts.BasicModel.addModelChangeListener(org.scopemvc.core.ModelChangeListener)
public void removeModelChangeListener(ModelChangeListener inListener)
inListener
- the ModelChangeListener to deregister from the passed
Model.BasicModel.removeModelChangeListener(org.scopemvc.core.ModelChangeListener)
public void fireModelChange(int inType, Selector inSelector)
inSelector
- The Selector for the property of the model affected by
the changeinType
- TODO: Describe the Parameter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |