public class

ShowRangeEvent

extends GwtEvent<H extends EventHandler>
java.lang.Object
   ↳ com.google.gwt.event.shared.GwtEvent<H extends com.google.gwt.event.shared.EventHandler>
     ↳ com.google.gwt.event.logical.shared.ShowRangeEvent<V>

Class Overview

Represents a show range event. This logical event should be used when a widget displays a range of values to the user.

Summary

Protected Constructors
ShowRangeEvent(V start, V end)
Creates a new show range event.
Public Methods
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.
final Type<ShowRangeHandler<V>> getAssociatedType()
Returns the type used to register this event.
V getEnd()
Gets the end of the range.
V getStart()
Gets the start of the range.
static Type<ShowRangeHandler<?>> getType()
Gets the type associated with this event.
Protected Methods
void dispatch(ShowRangeHandler<V> handler)
Should only be called by HandlerManager.
[Expand]
Inherited Methods
From class com.google.gwt.event.shared.GwtEvent
From class java.lang.Object

Protected Constructors

protected ShowRangeEvent (V start, V end)

Creates a new show range event.

Parameters
start start of the range
end end of the range

Public Methods

public static void fire (S source, V start, V end)

Fires a show range event on all registered handlers in the handler manager.

Parameters
source the source of the handlers
start the start of the range
end the end of the range

public final Type<ShowRangeHandler<V>> getAssociatedType ()

Returns the type used to register this event. Used by handler manager to dispatch events to the correct handlers.

Returns
  • the type

public V getEnd ()

Gets the end of the range.

Returns
  • end of the range

public V getStart ()

Gets the start of the range.

Returns
  • start of the range

public static Type<ShowRangeHandler<?>> getType ()

Gets the type associated with this event.

Returns
  • returns the handler type

Protected Methods

protected void dispatch (ShowRangeHandler<V> handler)

Should only be called by HandlerManager. In other words, do not use or call.

Parameters
handler handler