Package com.simsilica.lemur.focus
Interface FocusTarget
- All Known Implementing Classes:
GuiControl,TextEntryComponent
public interface FocusTarget
Implemented by classes that can receive GUI focus.
-
Method Summary
Modifier and TypeMethodDescriptionvoidNotifies this focus target that is has gained focus.voidNotifies this focus target that is has lost focus.booleanReturns true if this target can currently accept focus through a normal transition.booleanReturns true if this focus target currently has the focus.
-
Method Details
-
isFocused
boolean isFocused()Returns true if this focus target currently has the focus. -
focusGained
void focusGained()Notifies this focus target that is has gained focus. -
focusLost
void focusLost()Notifies this focus target that is has lost focus. -
isFocusable
boolean isFocusable()Returns true if this target can currently accept focus through a normal transition. If an attempt is made to force the focus to this target then focus may actually transition to a different target.
-