Package com.google.gwt.view.client
Class RangeChangeEvent
java.lang.Object
com.google.web.bindery.event.shared.Event<RangeChangeEvent.Handler>
com.google.gwt.event.shared.GwtEvent<RangeChangeEvent.Handler>
com.google.gwt.view.client.RangeChangeEvent
Represents a range change event.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H>
-
Constructor Summary
ModifierConstructorDescriptionprotected
RangeChangeEvent
(Range range) Creates aRangeChangeEvent
. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
dispatch
(RangeChangeEvent.Handler handler) Should only be called byHandlerManager
.static void
Fires aRangeChangeEvent
on all registered handlers in the handler manager.Returns theEvent.Type
used to register this event, allowing anEventBus
to find handlers of the appropriate class.Gets the new range.getType()
Gets the type associated with this event.This is a method used primarily for debugging.
-
Constructor Details
-
RangeChangeEvent
Creates aRangeChangeEvent
.- Parameters:
range
- the new range
-
-
Method Details
-
fire
Fires aRangeChangeEvent
on all registered handlers in the handler manager. If no such handlers exist, this method will do nothing.- Parameters:
source
- the source of the handlersrange
- the new range
-
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<RangeChangeEvent.Handler>
- Returns:
- the type
-
getNewRange
Gets the new range.- Returns:
- the new range
-
toDebugString
Description copied from class:Event
This is a method used primarily for debugging. It gives a string representation of the event details. This does not override the toString method because the compiler cannot always optimize toString out correctly. Event types should override as desired.- Overrides:
toDebugString
in classEvent<RangeChangeEvent.Handler>
- Returns:
- a string representing the event's specifics.
-
dispatch
Description copied from class:GwtEvent
Should only be called byHandlerManager
. In other words, do not use or call.- Specified by:
dispatch
in classGwtEvent<RangeChangeEvent.Handler>
- Parameters:
handler
- handler- See Also:
-