public final class NavigationEvent extends GwtEvent<NavigationHandler>
PlaceManager.setOnLeaveConfirmation(java.lang.String)
, instead
NavigationRefusedEvent
will.
Instead of registering your presenter towards this event, consider overriding
PresenterWidget.onReset()
. From there
you can call PlaceManager.getCurrentPlaceRequest()
to get the
PlaceRequest
.NavigationRefusedEvent
GwtEvent.Type<H>
Constructor and Description |
---|
NavigationEvent(PlaceRequest request)
Create a navigation event and attach it to a place request.
|
Modifier and Type | Method and Description |
---|---|
protected void |
dispatch(NavigationHandler handler) |
static void |
fire(HasHandlers source,
PlaceRequest request)
Fires a
NavigationEvent
into a source that has access to an EventBus . |
GwtEvent.Type<NavigationHandler> |
getAssociatedType() |
PlaceRequest |
getRequest()
Access the
PlaceRequest that triggered that navigation event. |
static GwtEvent.Type<NavigationHandler> |
getType() |
assertLive, getSource, isLive, kill, revive
setSource, toDebugString, toString
public NavigationEvent(PlaceRequest request)
null
as a request if it's unknown, for example when revealing a
default place or an error place.request
- The PlaceRequest
.public static void fire(HasHandlers source, PlaceRequest request)
NavigationEvent
into a source that has access to an EventBus
.source
- The source that fires this event (HasHandlers
).request
- The PlaceRequest
that was navigated to.public static GwtEvent.Type<NavigationHandler> getType()
public GwtEvent.Type<NavigationHandler> getAssociatedType()
getAssociatedType
in class GwtEvent<NavigationHandler>
public PlaceRequest getRequest()
PlaceRequest
that triggered that navigation event.PlaceRequest
or null
if no place request is
known.protected void dispatch(NavigationHandler handler)
dispatch
in class GwtEvent<NavigationHandler>
Copyright © 2010–2014 Arcbees. All rights reserved.