com.vaadin.navigator
Class ViewChangeListener.ViewChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.vaadin.navigator.ViewChangeListener.ViewChangeEvent
Enclosing interface:
ViewChangeListener

public static class ViewChangeListener.ViewChangeEvent
extends java.util.EventObject

Event received by the listener for attempted and executed view changes.


Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ViewChangeListener.ViewChangeEvent(Navigator navigator, View oldView, View newView, java.lang.String viewName, java.lang.String parameters)
          Create a new view change event.
 
Method Summary
 Navigator getNavigator()
          Returns the navigator that triggered this event.
 View getNewView()
          Returns the view being activated.
 View getOldView()
          Returns the view being deactivated.
 java.lang.String getParameters()
          Returns the parameters for the view being activated.
 java.lang.String getViewName()
          Returns the view name of the view being activated.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, toString
 

Constructor Detail

ViewChangeListener.ViewChangeEvent

public ViewChangeListener.ViewChangeEvent(Navigator navigator,
                                          View oldView,
                                          View newView,
                                          java.lang.String viewName,
                                          java.lang.String parameters)
Create a new view change event.

Parameters:
navigator - Navigator that triggered the event, not null
Method Detail

getNavigator

public Navigator getNavigator()
Returns the navigator that triggered this event.

Returns:
Navigator (not null)

getOldView

public View getOldView()
Returns the view being deactivated.

Returns:
old View

getNewView

public View getNewView()
Returns the view being activated.

Returns:
new View

getViewName

public java.lang.String getViewName()
Returns the view name of the view being activated.

Returns:
view name of the new View

getParameters

public java.lang.String getParameters()
Returns the parameters for the view being activated.

Returns:
navigation parameters (potentially bookmarkable) for the new view


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.