Interface FocusTarget

All Known Implementing Classes:
GuiControl, TextEntryComponent

public interface FocusTarget
Implemented by classes that can receive GUI focus.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    void
    Notifies this focus target that is has gained focus.
    void
    Notifies this focus target that is has lost focus.
    boolean
    Returns true if this target can currently accept focus through a normal transition.
    boolean
    Returns true if this focus target currently has the focus.
  • Method Details Link icon

    • isFocused Link icon

      boolean isFocused()
      Returns true if this focus target currently has the focus.
    • focusGained Link icon

      void focusGained()
      Notifies this focus target that is has gained focus.
    • focusLost Link icon

      void focusLost()
      Notifies this focus target that is has lost focus.
    • isFocusable Link icon

      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.