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
public class ShowRangeEvent<V> extends GwtEvent<ShowRangeHandler<V>>
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
Constructors Modifier Constructor Description protected
ShowRangeEvent(V start, V end)
Creates a new show range event.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
dispatch(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.GwtEvent.Type<ShowRangeHandler<V>>
getAssociatedType()
Returns theEvent.Type
used to register this event, allowing anEventBus
to find handlers of the appropriate class.V
getEnd()
Gets the end of the range.V
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, revive
-
Methods inherited from class com.google.web.bindery.event.shared.Event
setSource, toDebugString, toString
-
-
-
-
Method Detail
-
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
public static GwtEvent.Type<ShowRangeHandler<?>> getType()
Gets the type associated with this event.- Returns:
- returns the handler type
-
getAssociatedType
public final GwtEvent.Type<ShowRangeHandler<V>> 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<ShowRangeHandler<V>>
- Returns:
- the type
-
getEnd
public V getEnd()
Gets the end of the range.- Returns:
- end of the range
-
getStart
public V getStart()
Gets the start of the range.- Returns:
- start of the range
-
dispatch
protected void dispatch(ShowRangeHandler<V> handler)
Description copied from class:GwtEvent
Should only be called byHandlerManager
. In other words, do not use or call.- Specified by:
dispatch
in classGwtEvent<ShowRangeHandler<V>>
- Parameters:
handler
- handler- See Also:
EventBus.dispatchEvent(Event, Object)
-
-