Class HighlightEvent<V>
java.lang.Object
com.google.web.bindery.event.shared.Event<HighlightHandler<V>>
com.google.gwt.event.shared.GwtEvent<HighlightHandler<V>>
com.google.gwt.event.logical.shared.HighlightEvent<V>
- Type Parameters:
V
- the highlighted value type
Represents a highlight event.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H>
-
Constructor Summary
ModifierConstructorDescriptionprotected
HighlightEvent
(V highlighted) Creates a new highlight event. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
dispatch
(HighlightHandler<V> handler) Should only be called byHandlerManager
.static <V,
S extends HasHighlightHandlers<V> & HasHandlers>
voidfire
(S source, V highlighted) Fires a highlight event on all registered handlers in the handler manager.final GwtEvent.Type
<HighlightHandler<V>> Returns theEvent.Type
used to register this event, allowing anEventBus
to find handlers of the appropriate class.Gets the value highlighted.static GwtEvent.Type
<HighlightHandler<?>> getType()
Gets the type associated with this event.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
-
Constructor Details
-
HighlightEvent
Creates a new highlight event.- Parameters:
highlighted
- value highlighted
-
-
Method Details
-
fire
public static <V,S extends HasHighlightHandlers<V> & HasHandlers> void fire(S source, V highlighted) Fires a highlight event on all registered handlers in the handler manager.- Type Parameters:
V
- the highlighted value typeS
- The event source- Parameters:
source
- the source of the handlershighlighted
- the value highlighted
-
getType
Gets the type associated with this event.- Returns:
- returns the handler type
-
getAssociatedType
Description copied from class:Event
Returns theEvent.Type
used to register this event, allowing anEventBus
to find handlers of the appropriate class.- Specified by:
getAssociatedType
in classGwtEvent<HighlightHandler<V>>
- Returns:
- the type
-
getHighlighted
Gets the value highlighted.- Returns:
- value highlighted
-