java.lang.Object
org.scopemvc.model.basic.ModelChangeEventSupport
- public class ModelChangeEventSupport
- extends java.lang.Object
Delegate to help ModelChangeEvent listener registration
and firing. Used by BasicModel. Events are
fired synchronously in this implementation.
- Version:
- $Revision: 1.5 $ $Date: 2002/01/26 09:46:20 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
private static final org.apache.commons.logging.Log LOG
source
private org.scopemvc.core.ModelChangeEventSource source
listeners
private java.util.ArrayList listeners
activationCount
private int activationCount
ModelChangeEventSupport
public ModelChangeEventSupport(org.scopemvc.core.ModelChangeEventSource inSource)
activateModel
public final void activateModel()
- Disable ModelChangeEvent broadcasting for a Model.
This can 'stack' multiple inactivation requests,
allowing nested inactivations.
deactivateModel
public final void deactivateModel()
- Enable ModelChangeEvent broadcasting for a Model
that was disabled.
This can 'stack' multiple activation requests,
allowing nested activations.
isModelDeactivated
public boolean isModelDeactivated()
addModelChangeListener
public void addModelChangeListener(org.scopemvc.core.ModelChangeListener inListener)
- Register a ModelChangeListener to receive
ModelChangeEvent broadcasts from the passed
Model.
removeModelChangeListener
public void removeModelChangeListener(org.scopemvc.core.ModelChangeListener inListener)
- Remove a ModelChangeListener from the set
of registered listeners to the passed Model. The
passed listener must be registered as a listener
to the Model.
fireModelChange
public void fireModelChange(int inType,
org.scopemvc.core.Selector inSelector)