public final class DatasetRangeSelectionEvent extends AbstractEvent<DatasetRangeSelectionEventHandler>
DatasetsItemsSelector.ID
plugin.GwtEvent.Type<H>
Modifier and Type | Field and Description |
---|---|
static int |
CLEAR_SELECTION
Value -2147483648 of FROM and TO when the event is representing a clear of selection
|
static GwtEvent.Type<DatasetRangeSelectionEventHandler> |
TYPE
Event type
|
Constructor and Description |
---|
DatasetRangeSelectionEvent(NativeEvent nativeEvent)
Creates the event when the clear of current selection has been requested.
|
DatasetRangeSelectionEvent(NativeEvent nativeEvent,
int from,
int to)
Creates the event with start and end index of selected datasets.
|
Modifier and Type | Method and Description |
---|---|
protected void |
dispatch(DatasetRangeSelectionEventHandler handler) |
GwtEvent.Type<DatasetRangeSelectionEventHandler> |
getAssociatedType() |
int |
getFrom()
Returns the starting index of of selected datasets items.
If equals to CLEAR_SELECTION , the event is related to a clear of selection area. |
int |
getTo()
Returns the ending index of of selected datasets items.
If equals to CLEAR_SELECTION , the event is related to a clear of selection area. |
getChart, getNativeEvent
assertLive, getSource, isLive, kill, revive
setSource, toDebugString, toString
public static final int CLEAR_SELECTION
public static final GwtEvent.Type<DatasetRangeSelectionEventHandler> TYPE
public DatasetRangeSelectionEvent(NativeEvent nativeEvent)
nativeEvent
- native event of this custom eventpublic DatasetRangeSelectionEvent(NativeEvent nativeEvent, int from, int to)
nativeEvent
- native event of this custom eventfrom
- starting index of selected datasetto
- ending index of selected datasetpublic int getFrom()
CLEAR_SELECTION
, the event is related to a clear of selection area.public int getTo()
CLEAR_SELECTION
, the event is related to a clear of selection area.public GwtEvent.Type<DatasetRangeSelectionEventHandler> getAssociatedType()
getAssociatedType
in class GwtEvent<DatasetRangeSelectionEventHandler>
protected void dispatch(DatasetRangeSelectionEventHandler handler)
dispatch
in class GwtEvent<DatasetRangeSelectionEventHandler>