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

java.lang.Object
  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
private  View newView
           
private  View previousView
           
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, 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

previousView

private final View previousView

newView

private final View newView
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()
Specified by:
getAssociatedType in class com.google.gwt.event.shared.GwtEvent<ViewChangeHandler>


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.