public abstract class FocusListener extends java.lang.Object implements EventListener
FocusListener.FocusEvent.| Modifier and Type | Class and Description |
|---|---|
static class |
FocusListener.FocusEvent
Fired when an actor gains or loses keyboard or scroll focus.
|
| Constructor and Description |
|---|
FocusListener() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
handle(Event event)
Try to handle the given event, if it is applicable.
|
void |
keyboardFocusChanged(FocusListener.FocusEvent event,
Actor actor,
boolean focused) |
void |
scrollFocusChanged(FocusListener.FocusEvent event,
Actor actor,
boolean focused) |
public boolean handle(Event event)
EventListenerhandle in interface EventListenerhandled by scene2d.public void keyboardFocusChanged(FocusListener.FocusEvent event, Actor actor, boolean focused)
actor - The event target, which is the actor that emitted the focus event.public void scrollFocusChanged(FocusListener.FocusEvent event, Actor actor, boolean focused)
actor - The event target, which is the actor that emitted the focus event.