Class UITextField.TextFieldWritingState

All Implemented Interfaces:
UIKeyHandler, Hintable, Savable
Enclosing class:
UITextField

public class UITextField.TextFieldWritingState extends UIState
  • Constructor Details

    • TextFieldWritingState

      public TextFieldWritingState()
  • Method Details

    • keyReleased

      public boolean keyReleased(Key key, InputState state)
      Description copied from class: UIComponent
      Called when this component has focus and a key is released.
      Specified by:
      keyReleased in interface UIKeyHandler
      Overrides:
      keyReleased in class UIComponent
      Parameters:
      key - the key released.
      state - the current tracked state of the input system.
      Returns:
      true if we want to consider the event "consumed" by the UI system.
    • keyPressed

      public boolean keyPressed(Key key, InputState state)
      Description copied from class: UIComponent
      Called when this component has focus and a key is pressed.
      Specified by:
      keyPressed in interface UIKeyHandler
      Overrides:
      keyPressed in class UIComponent
      Parameters:
      key - the key pressed.
      state - the current tracked state of the input system.
      Returns:
      true if we want to consider the event "consumed" by the UI system.
    • keyHeld

      public boolean keyHeld(Key key, InputState state)
      Description copied from class: UIComponent
      Called when this component has focus and a key is held down over more than 1 input cycle.
      Specified by:
      keyHeld in interface UIKeyHandler
      Overrides:
      keyHeld in class UIComponent
      Parameters:
      key - the key held.
      state - the current tracked state of the input system.
      Returns:
      true if we want to consider the event "consumed" by the UI system.
    • mouseEntered

      public void mouseEntered(int mouseX, int mouseY, InputState state)
      Description copied from class: UIComponent
      Called when a mouse cursor enters this component.
      Overrides:
      mouseEntered in class UIComponent
      Parameters:
      mouseX - mouse x coordinate.
      mouseY - mouse y coordinate.
      state - the current tracked state of the input system.
    • mouseDeparted

      public void mouseDeparted(int mouseX, int mouseY, InputState state)
      Description copied from class: UIComponent
      Called when a mouse cursor leaves this component.
      Overrides:
      mouseDeparted in class UIComponent
      Parameters:
      mouseX - mouse x coordinate.
      mouseY - mouse y coordinate.
      state - the current tracked state of the input system.
    • mousePressed

      public boolean mousePressed(MouseButton button, InputState state)
      Description copied from class: UIComponent
      Called when a mouse button is pressed while the cursor is over this component.
      Overrides:
      mousePressed in class UIComponent
      Parameters:
      button - the button that was pressed
      state - the current tracked state of the input system.
      Returns:
      true if we want to consider the event "consumed" by the UI system.
    • lostFocus

      public void lostFocus()
      Description copied from class: UIComponent
      Called by the hud when a component loses focus.
      Overrides:
      lostFocus in class UIComponent