public class RangeChangeEvent extends GwtEvent<RangeChangeEvent.Handler>
Modifier and Type | Class and Description |
---|---|
static interface |
RangeChangeEvent.Handler
Handler interface for
RangeChangeEvent events. |
GwtEvent.Type<H>
Modifier | Constructor and Description |
---|---|
protected |
RangeChangeEvent(Range range)
Creates a
RangeChangeEvent . |
Modifier and Type | Method and Description |
---|---|
protected void |
dispatch(RangeChangeEvent.Handler handler)
Should only be called by
HandlerManager . |
static void |
fire(HasRows source,
Range range)
Fires a
RangeChangeEvent on all registered handlers in the handler
manager. |
GwtEvent.Type<RangeChangeEvent.Handler> |
getAssociatedType()
Returns the
Event.Type used to register this event, allowing an
EventBus to find handlers of the appropriate class. |
Range |
getNewRange()
Gets the new range.
|
static GwtEvent.Type<RangeChangeEvent.Handler> |
getType()
Gets the type associated with this event.
|
String |
toDebugString()
This is a method used primarily for debugging.
|
protected RangeChangeEvent(Range range)
RangeChangeEvent
.range
- the new rangepublic static void fire(HasRows source, Range range)
RangeChangeEvent
on all registered handlers in the handler
manager. If no such handlers exist, this method will do nothing.source
- the source of the handlersrange
- the new rangepublic static GwtEvent.Type<RangeChangeEvent.Handler> getType()
public final GwtEvent.Type<RangeChangeEvent.Handler> getAssociatedType()
com.google.web.bindery.event.shared.Event
Event.Type
used to register this event, allowing an
EventBus
to find handlers of the appropriate class.getAssociatedType
in class GwtEvent<RangeChangeEvent.Handler>
public Range getNewRange()
public String toDebugString()
com.google.web.bindery.event.shared.Event
toDebugString
in class com.google.web.bindery.event.shared.Event<RangeChangeEvent.Handler>
protected void dispatch(RangeChangeEvent.Handler handler)
GwtEvent
HandlerManager
. In other words, do not use
or call.dispatch
in class GwtEvent<RangeChangeEvent.Handler>
handler
- handlerEventBus.dispatchEvent(Event, Object)
Copyright © 2018. All rights reserved.