public class LegendSelectionEvent
extends <any>
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. |
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 |
---|---|
protected void |
dispatch(LegendSelectionEvent.LegendSelectionHandler handler) |
<any> |
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 <any> |
getType()
Gets the type associated with this event.
|
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 eventevent
- the event being wrappedpublic static <any> getType()
public <any> getAssociatedType()
public Event getBrowserEvent()
public int getIndex()
public LegendItem<?> getItem()
protected void dispatch(LegendSelectionEvent.LegendSelectionHandler handler)
Copyright © 2018. All rights reserved.