org.scopemvc.core
Interface ModelChangeEvent

All Superinterfaces:
ModelChangeTypes
All Known Implementing Classes:
BasicModelChangeEvent

public interface ModelChangeEvent
extends ModelChangeTypes

Event that is broadcasted to notify interested ModelChangeListeners of a change in state of a model object implementing ModelChangeEventSource. It contains:

Note that the event does not contain the actual data that changed, unlike JavaBeans PropertyChangeEvent.

Version:
$Revision: 1.6 $ $Date: 2002/09/11 19:12:29 $
Author:
Steve Meyfroidt
See Also:
ModelChangeEventSource, Selector, ModelChangeListener, BasicModel

Field Summary
 
Fields inherited from interface org.scopemvc.core.ModelChangeTypes
ACCESS_CHANGED, VALUE_ADDED, VALUE_CHANGED, VALUE_REMOVED
 
Method Summary
 ModelChangeEventSource getModel()
          Get the source Model of this event.
 Selector getSelector()
          Get the Selector for the contents that changed to cause broadcast of this event.
 int getType()
          Return the type of change this event notifies.
 void setModel(ModelChangeEventSource inModel)
          Set the source of this event.
 void setSelector(Selector inSelector)
          Set the Selector representing the contents that changed to cause broadcast of this event.
 void setType(int inType)
          Set the type of change this event notifies of.
 

Method Detail

setType

public void setType(int inType)
Set the type of change this event notifies of.

Parameters:
inType - type of change.
See Also:
ModelChangeTypes

getType

public int getType()
Return the type of change this event notifies.

Returns:
type of change.
See Also:
ModelChangeTypes

setModel

public void setModel(ModelChangeEventSource inModel)
Set the source of this event.

Parameters:
inModel - source Model of this event.

getModel

public ModelChangeEventSource getModel()
Get the source Model of this event.

Returns:
the source Model of this event.

setSelector

public void setSelector(Selector inSelector)
Set the Selector representing the contents that changed to cause broadcast of this event.

Parameters:
inSelector - Selector for contents that changed.

getSelector

public Selector getSelector()
Get the Selector for the contents that changed to cause broadcast of this event.

Returns:
the selector representing the contents that changed.


Copyright © 2000-2002 The Scope Team. All Rights Reserved.