org.kuali.student.common.ui.client.mvc.events
Class ViewChangeEvent

java.lang.Object
  extended by com.google.web.bindery.event.shared.Event<H>
      extended by com.google.gwt.event.shared.GwtEvent<H>
          extended by org.kuali.student.common.ui.client.mvc.ApplicationEvent<ViewChangeHandler>
              extended by org.kuali.student.common.ui.client.mvc.events.ViewChangeEvent

public class ViewChangeEvent
extends ApplicationEvent<ViewChangeHandler>

"Checked" event that is fired by the controller when the view is changed

Author:
Kuali Student Team

Nested Class Summary
 
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<ViewChangeHandler> TYPE
           
 
Constructor Summary
ViewChangeEvent(View previousView, View newView)
          This constructs a new ViewChangeEvent
 
Method Summary
protected  void dispatch(ViewChangeHandler handler)
           
 com.google.gwt.event.shared.GwtEvent.Type<ViewChangeHandler> getAssociatedType()
           
 View getNewView()
          Returns the new View to be displayed
 View getPreviousView()
          Returns the previously displayed view, or null if this is the first view change
 
Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, 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<ViewChangeHandler> TYPE
Constructor Detail

ViewChangeEvent

public ViewChangeEvent(View previousView,
                       View newView)
This constructs a new ViewChangeEvent

Parameters:
previousView - the previously displayed View, or null if this is the first view change
newView - the new View to be displayed
Method Detail

getPreviousView

public View getPreviousView()
Returns the previously displayed view, or null if this is the first view change

Returns:

getNewView

public View getNewView()
Returns the new View to be displayed

Returns:

dispatch

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

getAssociatedType

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


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