public class SpriteSelectionEvent
extends <any>
Series
.Modifier and Type | Class and Description |
---|---|
static interface |
SpriteSelectionEvent.HasSpriteSelectionHandlers
A widget that implements this interface is a public source of
SpriteSelectionEvent events. |
static interface |
SpriteSelectionEvent.SpriteSelectionHandler
Handler class for
SpriteSelectionEvent events. |
Modifier and Type | Field and Description |
---|---|
protected Event |
event |
protected Sprite |
sprite |
protected static <any> |
TYPE
Handler type.
|
Constructor and Description |
---|
SpriteSelectionEvent(Sprite sprite,
Event event)
Creates a new event with the given sprite.
|
Modifier and Type | Method and Description |
---|---|
protected void |
dispatch(SpriteSelectionEvent.SpriteSelectionHandler handler) |
<any> |
getAssociatedType() |
Event |
getBrowserEvent()
Returns the browser event that initiated the selection event.
|
Sprite |
getSprite()
Returns the sprite that caused the event.
|
static <any> |
getType()
Gets the type associated with this event.
|
protected static <any> TYPE
protected final Sprite sprite
protected final Event event
public SpriteSelectionEvent(Sprite sprite, Event event)
sprite
- the sprite that caused the eventevent
- the event being handledpublic static <any> getType()
public <any> getAssociatedType()
public Event getBrowserEvent()
public Sprite getSprite()
protected void dispatch(SpriteSelectionEvent.SpriteSelectionHandler handler)
Copyright © 2020. All rights reserved.