org.apache.myfaces.extensions.cdi.core.api.navigation
Class PreViewConfigNavigateEvent

java.lang.Object
  extended by org.apache.myfaces.extensions.cdi.core.api.navigation.PreViewConfigNavigateEvent

public class PreViewConfigNavigateEvent
extends Object

Event will be fired before the navigation (from and to a view-config based page) occurs. With navigateTo(Class) it's possible to change the navigation target.


Constructor Summary
PreViewConfigNavigateEvent(Class<? extends ViewConfig> fromView, Class<? extends ViewConfig> toView)
          Constructor for creating the event for the given source and target view
 
Method Summary
 Class<? extends ViewConfig> getFromView()
          Provides the navigation source.
 Class<? extends ViewConfig> getToView()
          Provides the navigation target.
 void navigateTo(Class<? extends ViewConfig> toView)
          Allows to change the navigation target.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreViewConfigNavigateEvent

public PreViewConfigNavigateEvent(Class<? extends ViewConfig> fromView,
                                  Class<? extends ViewConfig> toView)
Constructor for creating the event for the given source and target view

Parameters:
fromView - source-view
toView - target-view
Method Detail

getFromView

public Class<? extends ViewConfig> getFromView()
Provides the navigation source.

Returns:
source of the navigation

getToView

public Class<? extends ViewConfig> getToView()
Provides the navigation target.

Returns:
target of the navigation

navigateTo

public void navigateTo(Class<? extends ViewConfig> toView)
Allows to change the navigation target.

Parameters:
toView - new navigation target


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.