org.kuali.student.common.ui.client.mvc
Class ModelChangeEvent
java.lang.Object
com.google.gwt.event.shared.GwtEvent<ModelChangeHandler>
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 classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent |
com.google.gwt.event.shared.GwtEvent.Type<H> |
Methods inherited from class com.google.gwt.event.shared.GwtEvent |
assertLive, isLive, kill, revive, toDebugString, toString |
TYPE
public static final com.google.gwt.event.shared.GwtEvent.Type<ModelChangeHandler> TYPE
action
private final ModelChangeEvent.Action action
source
private final Model source
ModelChangeEvent
public ModelChangeEvent(ModelChangeEvent.Action action,
Model source)
- Constructs a new ModelChangeEvent with an action and a value
- Parameters:
action
- value
-
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()
- Specified by:
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 © 2007-2011 The Kuali Foundation. All Rights Reserved.