|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.web.bindery.event.shared.Event<H> com.google.gwt.event.shared.GwtEvent<BeforeSelectionHandler<T>> com.google.gwt.event.logical.shared.BeforeSelectionEvent<T>
T
- the type about to be selectedpublic class BeforeSelectionEvent<T>
Represents a before selection event.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent |
---|
GwtEvent.Type<H> |
Constructor Summary | |
---|---|
protected |
BeforeSelectionEvent()
Creates a new before selection event. |
Method Summary | ||
---|---|---|
void |
cancel()
Cancel the before selection event. |
|
protected void |
dispatch(BeforeSelectionHandler<T> handler)
Should only be called by HandlerManager . |
|
static
|
fire(HasBeforeSelectionHandlers<T> source,
T item)
Fires a before selection event on all registered handlers in the handler manager. |
|
GwtEvent.Type<BeforeSelectionHandler<T>> |
getAssociatedType()
Returns the Event.Type used to register this event, allowing an
EventBus to find handlers of the appropriate class. |
|
T |
getItem()
Gets the item. |
|
static GwtEvent.Type<BeforeSelectionHandler<?>> |
getType()
Gets the type associated with this event. |
|
boolean |
isCanceled()
Has the selection event already been canceled? |
|
protected void |
setItem(T item)
Sets the item. |
Methods inherited from class com.google.gwt.event.shared.GwtEvent |
---|
assertLive, getSource, isLive, kill, revive |
Methods inherited from class com.google.web.bindery.event.shared.Event |
---|
setSource, toDebugString, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected BeforeSelectionEvent()
Method Detail |
---|
public static <T> BeforeSelectionEvent<T> fire(HasBeforeSelectionHandlers<T> source, T item)
T
- the item typesource
- the source of the handlersitem
- the item
public static GwtEvent.Type<BeforeSelectionHandler<?>> getType()
public void cancel()
public final GwtEvent.Type<BeforeSelectionHandler<T>> getAssociatedType()
Event
Event.Type
used to register this event, allowing an
EventBus
to find handlers of the appropriate class.
getAssociatedType
in class GwtEvent<BeforeSelectionHandler<T>>
public T getItem()
public boolean isCanceled()
protected void dispatch(BeforeSelectionHandler<T> handler)
GwtEvent
HandlerManager
. In other words, do not use
or call.
dispatch
in class GwtEvent<BeforeSelectionHandler<T>>
handler
- handlerEventBus.dispatchEvent(Event, Object)
protected final void setItem(T item)
item
- the item
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |