Class ShowRangeEvent<V>
java.lang.Object
com.google.web.bindery.event.shared.Event<H>
com.google.gwt.event.shared.GwtEvent<ShowRangeHandler<V>>
com.google.gwt.event.logical.shared.ShowRangeEvent<V>
- Type Parameters:
V- the type of range
Represents a show range event. This logical event should be used when a
widget displays a range of values to the user.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedShowRangeEvent(V start, V end) Creates a new show range event. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddispatch(ShowRangeHandler<V> handler) Should only be called byHandlerManager.static <V,S extends HasShowRangeHandlers<V> & HasHandlers>
voidfire(S source, V start, V end) Fires a show range event on all registered handlers in the handler manager.final GwtEvent.Type<ShowRangeHandler<V>>Returns theEvent.Typeused to register this event, allowing anEventBusto find handlers of the appropriate class.getEnd()Gets the end of the range.getStart()Gets the start of the range.static GwtEvent.Type<ShowRangeHandler<?>>getType()Gets the type associated with this event.Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, isLive, kill, reviveMethods inherited from class com.google.web.bindery.event.shared.Event
setSource, toDebugString, toString
-
Constructor Details
-
ShowRangeEvent
Creates a new show range event.- Parameters:
start- start of the rangeend- end of the range
-
-
Method Details
-
fire
public static <V,S extends HasShowRangeHandlers<V> & HasHandlers> void fire(S source, V start, V end) Fires a show range event on all registered handlers in the handler manager.- Type Parameters:
V- the type of rangeS- the event source- Parameters:
source- the source of the handlersstart- the start of the rangeend- the end of the range
-
getType
Gets the type associated with this event.- Returns:
- returns the handler type
-
getAssociatedType
Description copied from class:EventReturns theEvent.Typeused to register this event, allowing anEventBusto find handlers of the appropriate class.- Specified by:
getAssociatedTypein classGwtEvent<ShowRangeHandler<V>>- Returns:
- the type
-
getEnd
Gets the end of the range.- Returns:
- end of the range
-
getStart
Gets the start of the range.- Returns:
- start of the range
-