public class PageRoleLifecycleListener<W extends com.google.gwt.user.client.ui.IsWidget> extends Object implements LifecycleListener<W>
Constructor and Description |
---|
PageRoleLifecycleListener(RestrictedAccess annotation,
RequiredRolesExtractor roleExtractor) |
Modifier and Type | Method and Description |
---|---|
boolean |
isObserveableEventType(Class<? extends LifecycleEvent<W>> eventType)
Check if this listener observes this event type.
|
void |
observeEvent(LifecycleEvent<W> event)
This method is called when a
LifecycleEvent is called such that
LifecycleListener.isObserveableEventType(Class) returns true for this listener and
event. |
public PageRoleLifecycleListener(RestrictedAccess annotation, RequiredRolesExtractor roleExtractor)
public void observeEvent(LifecycleEvent<W> event)
LifecycleListener
LifecycleEvent
is called such that
LifecycleListener.isObserveableEventType(Class)
returns true for this listener and
event.
If LifecycleEvent.veto()
is called in this method, any pending
listeners will be cancelled and callback of
LifecycleEvent#fireAsync(LifecycleCallback)
will be invoked with a
failure result.observeEvent
in interface LifecycleListener<W extends com.google.gwt.user.client.ui.IsWidget>
event
- The event being observed.public boolean isObserveableEventType(Class<? extends LifecycleEvent<W>> eventType)
LifecycleListener
isObserveableEventType
in interface LifecycleListener<W extends com.google.gwt.user.client.ui.IsWidget>
eventType
- A type of subclass of LifecycleEvent
.Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.