org.kuali.student.common.ui.client.mvc
Class ModelChangeEvent

java.lang.Object
  extended by com.google.web.bindery.event.shared.Event<H>
      extended by com.google.gwt.event.shared.GwtEvent<ModelChangeHandler>
          extended by org.kuali.student.common.ui.client.mvc.ModelChangeEvent
Type Parameters:
T -
Direct Known Subclasses:
CollectionModelChangeEvent, DataModelChangeEvent

public class ModelChangeEvent
extends com.google.gwt.event.shared.GwtEvent<ModelChangeHandler>

Event that is fired when the model is changed.

Author:
Kuali Student Team

Nested Class Summary
static class ModelChangeEvent.Action
          The actions that can be performed on a model.
 
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
com.google.gwt.event.shared.GwtEvent.Type<H>
 
Field Summary
static com.google.gwt.event.shared.GwtEvent.Type<ModelChangeHandler> TYPE
           
 
Constructor Summary
ModelChangeEvent(ModelChangeEvent.Action action, Model source)
          Constructs a new ModelChangeEvent with an action and a value
 
Method Summary
protected  void dispatch(ModelChangeHandler handler)
           
 ModelChangeEvent.Action getAction()
          Returns the action (ADD/UPDATE/REMOVE) associated with the event
 com.google.gwt.event.shared.GwtEvent.Type<ModelChangeHandler> getAssociatedType()
           
 Model getSource()
          Returns the model from which this event originated
 
Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, isLive, kill, revive
 
Methods inherited from class com.google.web.bindery.event.shared.Event
setSource, toDebugString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final com.google.gwt.event.shared.GwtEvent.Type<ModelChangeHandler> TYPE
Constructor Detail

ModelChangeEvent

public ModelChangeEvent(ModelChangeEvent.Action action,
                        Model source)
Constructs a new ModelChangeEvent with an action and a value

Parameters:
action -
value -
Method Detail

dispatch

protected void dispatch(ModelChangeHandler handler)
Specified by:
dispatch in class com.google.gwt.event.shared.GwtEvent<ModelChangeHandler>

getAssociatedType

public com.google.gwt.event.shared.GwtEvent.Type<ModelChangeHandler> getAssociatedType()
Overrides:
getAssociatedType in class com.google.gwt.event.shared.GwtEvent<ModelChangeHandler>

getAction

public ModelChangeEvent.Action getAction()
Returns the action (ADD/UPDATE/REMOVE) associated with the event

Returns:

getSource

public Model getSource()
Returns the model from which this event originated

Overrides:
getSource in class com.google.gwt.event.shared.GwtEvent<ModelChangeHandler>
Returns:
the model from which this event originated


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.