public class NavigationEvent extends PageEditorEvent
NavigationEvent
is a notification that the end-user has
navigated to a different view.
The previous view id and the current view id can be obtained by calling the
getPreviousView
and getNewView
respectively.
This event is delivered during the Render Response phase. Note: This may change in the future.
Modifier and Type | Class and Description |
---|---|
static class |
NavigationEvent.NavigationType
Enumeration that determines the type of the navigation.
|
Constructor and Description |
---|
NavigationEvent(java.lang.String newView,
java.lang.String oldView) |
NavigationEvent(java.lang.String newView,
java.lang.String oldView,
NavigationEvent.NavigationType navigationType) |
Modifier and Type | Method and Description |
---|---|
Event |
getEventType()
Returns the type of this event.
|
NavigationEvent.NavigationType |
getNavigationType()
Returns the type of the navigation.
|
java.lang.String |
getNewView()
Returns the view id of the page that is currently navigated to.
|
java.lang.String |
getPreviousView()
Returns the view id of last viewed page.
|
void |
processListener(PageEditorListener listener)
Broadcast this
NavigationEvent to the specified
PageEditorListener , by whatever mechanism is appropriate. |
isEventHandled, setEventHandled
public NavigationEvent(java.lang.String newView, java.lang.String oldView)
public NavigationEvent(java.lang.String newView, java.lang.String oldView, NavigationEvent.NavigationType navigationType)
public final Event getEventType()
getEventType
in class PageEditorEvent
Event.NAVIGATION_EVENT
.public void processListener(PageEditorListener listener) throws javax.faces.event.AbortProcessingException
NavigationEvent
to the specified
PageEditorListener
, by whatever mechanism is appropriate.
This is accomplished by calling processNavigation
method on
NavigationListener
, and passing this
NavigationEvent
as a paramter.processListener
in class PageEditorEvent
listener
- PageEditorListener
to send this
NavigationEvent
to.javax.faces.event.AbortProcessingException
- Signal Oracle Composer that no further
processing on the current event should be performed.public java.lang.String getPreviousView()
public java.lang.String getNewView()
public NavigationEvent.NavigationType getNavigationType()
NavigationType.PAGE_NAVIGATION
if the user
navigated to another page. Returns
NavigationType.TASKFLOW_NAVIGATION
if the user
navigated within a taskflow. Note: Currently,
the listener is not notified of taskflow navigation.