at.spardat.xma.mdl
Class ModelChangeEvent

java.lang.Object
  extended byat.spardat.xma.mdl.ModelChangeEvent
Direct Known Subclasses:
Notification

public abstract class ModelChangeEvent
extends java.lang.Object

The base class for all changes applied to WidgetModels. Usually this event modifes a model in its execute method.


Field Summary
protected  boolean fromUI_
          Indicates whether this event originated from the UIDelegateClient of from the programmer.
protected  WModel wModel_
          The WidgetModel that is the destination of this event.
 
Constructor Summary
ModelChangeEvent(WModel destination, boolean fromUI)
          Constructs a ModelChangeEvent.
 
Method Summary
abstract  boolean execute()
          Applies this change to the WidgetModel.
 boolean isFromUI()
          Indicates that the source of this event is an UI action and not a programmer rooted action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

wModel_

protected WModel wModel_
The WidgetModel that is the destination of this event.


fromUI_

protected boolean fromUI_
Indicates whether this event originated from the UIDelegateClient of from the programmer.

Constructor Detail

ModelChangeEvent

public ModelChangeEvent(WModel destination,
                        boolean fromUI)
Constructs a ModelChangeEvent.

Parameters:
destination - the WidgetModel that is the recipient of this event
fromUI - specifies if this event originated from the programmer or from the UI library.
Method Detail

isFromUI

public boolean isFromUI()
Indicates that the source of this event is an UI action and not a programmer rooted action.


execute

public abstract boolean execute()
Applies this change to the WidgetModel.