public class LegendSelectionEvent extends GwtEvent<LegendSelectionEvent.LegendSelectionHandler>
Legend
is clicked.Modifier and Type | Class and Description |
---|---|
static interface |
LegendSelectionEvent.HasLegendSelectionHandlers
A widget that implements this interface is a public source of
LegendSelectionEvent events. |
static interface |
LegendSelectionEvent.LegendSelectionHandler
Handler class for
LegendSelectionEvent events. |
GwtEvent.Type<H>
Constructor and Description |
---|
LegendSelectionEvent(int index,
LegendItem<?> item,
Event event)
Creates a new event with the given legend item.
|
Modifier and Type | Method and Description |
---|---|
GwtEvent.Type<LegendSelectionEvent.LegendSelectionHandler> |
getAssociatedType() |
Event |
getBrowserEvent()
Returns the browser event that initiated the selection event.
|
int |
getIndex()
Returns the index of the legend item that fired the event.
|
LegendItem<?> |
getItem()
Returns the legend item that fired the event.
|
static GwtEvent.Type<LegendSelectionEvent.LegendSelectionHandler> |
getType()
Gets the type associated with this event.
|
toDebugString, toString
public LegendSelectionEvent(int index, LegendItem<?> item, Event event)
index
- the index of the legend item that fired the eventitem
- the legend item that fired the eventpublic static GwtEvent.Type<LegendSelectionEvent.LegendSelectionHandler> getType()
public GwtEvent.Type<LegendSelectionEvent.LegendSelectionHandler> getAssociatedType()
getAssociatedType
in class GwtEvent<LegendSelectionEvent.LegendSelectionHandler>
public Event getBrowserEvent()
public int getIndex()
public LegendItem<?> getItem()
Copyright © 2015. All rights reserved.