All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----openstar.generic.Model
This class provides a standard implementation of the IModel
interface that can be used by most model classes.
ModelChangeEvent
to all registered listeners.
protected EventSupport support
protected boolean enableNotifications
public Model()
public void addModelChangeListener(ModelChangeListener listener)
public void removeModelChangeListener(ModelChangeListener listener)
public void setModelChanged(Object source)
protected void setModelChanged()
ModelChangeEvent
to all registered listeners.
Nothing happens if the notifications switch of this model is "off"
(setEnableNotifications()
, getEnableNotifications()
).
The originator of the event is set to be the model itself.
public void setEnableNotifications(boolean enable)
public boolean getEnableNotifications()
public void deliverEvent(EventListener target, Event event)
All Packages Class Hierarchy This Package Previous Next Index