Package arc.scene.event
Class FocusListener
java.lang.Object
arc.scene.event.FocusListener
- All Implemented Interfaces:
EventListener
Listener for
FocusListener.FocusEvent
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Fired when an element gains or loses keyboard or scroll focus. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
handle
(SceneEvent event) Try to handle the given event, if it is applicable.void
keyboardFocusChanged
(FocusListener.FocusEvent event, Element element, boolean focused) void
scrollFocusChanged
(FocusListener.FocusEvent event, Element element, boolean focused)
-
Constructor Details
-
FocusListener
public FocusListener()
-
-
Method Details
-
handle
Description copied from interface:EventListener
Try to handle the given event, if it is applicable.- Specified by:
handle
in interfaceEventListener
- Returns:
- true if the event should be considered
handled
by scene2d.
-
keyboardFocusChanged
- Parameters:
element
- The event target, which is the element that emitted the focus event.
-
scrollFocusChanged
- Parameters:
element
- The event target, which is the element that emitted the focus event.
-