V - the highlighted value typepublic class HighlightEvent<V> extends GwtEvent<HighlightHandler<V>>
GwtEvent.Type<H>| Modifier | Constructor and Description |
|---|---|
protected |
HighlightEvent(V highlighted)
Creates a new highlight event.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
dispatch(HighlightHandler<V> handler)
Should only be called by
HandlerManager. |
static <V,S extends HasHighlightHandlers<V> & HasHandlers> |
fire(S source,
V highlighted)
Fires a highlight event on all registered handlers in the handler manager.
|
GwtEvent.Type<HighlightHandler<V>> |
getAssociatedType()
Returns the
Event.Type used to register this event, allowing an
EventBus to find handlers of the appropriate class. |
V |
getHighlighted()
Gets the value highlighted.
|
static GwtEvent.Type<HighlightHandler<?>> |
getType()
Gets the type associated with this event.
|
assertLive, getSource, isLive, kill, revivesetSource, toDebugString, toStringprotected HighlightEvent(V highlighted)
highlighted - value highlightedpublic static <V,S extends HasHighlightHandlers<V> & HasHandlers> void fire(S source, V highlighted)
V - the highlighted value typeS - The event sourcesource - the source of the handlershighlighted - the value highlightedpublic static GwtEvent.Type<HighlightHandler<?>> getType()
public final GwtEvent.Type<HighlightHandler<V>> getAssociatedType()
EventEvent.Type used to register this event, allowing an
EventBus to find handlers of the appropriate class.getAssociatedType in class GwtEvent<HighlightHandler<V>>public V getHighlighted()
protected void dispatch(HighlightHandler<V> handler)
GwtEventHandlerManager. In other words, do not use
or call.dispatch in class GwtEvent<HighlightHandler<V>>handler - handlerEventBus.dispatchEvent(Event, Object)