Package arc.scene.ui

Class TextField.TextFieldClickListener

All Implemented Interfaces:
EventListener
Direct Known Subclasses:
TextArea.TextAreaListener
Enclosing class:
TextField

public class TextField.TextFieldClickListener extends ClickListener
Basic input listener for the text field
  • Constructor Details

    • TextFieldClickListener

      public TextFieldClickListener()
  • Method Details

    • clicked

      public void clicked(InputEvent event, float x, float y)
      Overrides:
      clicked in class ClickListener
    • touchDown

      public boolean touchDown(InputEvent event, float x, float y, int pointer, KeyCode button)
      Description copied from class: InputListener
      Called when a mouse button or a finger touch goes down on the element. If true is returned, this listener will receive all touchDragged and touchUp events, even those not over this element, until touchUp is received. Also when true is returned, the event is handled.
      Overrides:
      touchDown in class ClickListener
      See Also:
    • touchDragged

      public void touchDragged(InputEvent event, float x, float y, int pointer)
      Description copied from class: InputListener
      Called when a mouse button or a finger touch is moved anywhere, but only if touchDown previously returned true for the mouse button or touch. The touchDragged event is always handled.
      Overrides:
      touchDragged in class ClickListener
      See Also:
    • touchUp

      public void touchUp(InputEvent event, float x, float y, int pointer, KeyCode button)
      Description copied from class: InputListener
      Called when a mouse button or a finger touch goes up anywhere, but only if touchDown previously returned true for the mouse button or touch. The touchUp event is always handled.
      Overrides:
      touchUp in class ClickListener
      See Also:
    • setCursorPosition

      protected void setCursorPosition(float x, float y)
    • goHome

      protected void goHome(boolean jump)
    • goEnd

      protected void goEnd(boolean jump)
    • keyDown

      public boolean keyDown(InputEvent event, KeyCode keycode)
      Description copied from class: InputListener
      Called when a key goes down. When true is returned, the event is handled.
      Overrides:
      keyDown in class InputListener
    • scheduleKeyRepeatTask

      protected void scheduleKeyRepeatTask(KeyCode keycode)
    • keyUp

      public boolean keyUp(InputEvent event, KeyCode keycode)
      Description copied from class: InputListener
      Called when a key goes up. When true is returned, the event is handled.
      Overrides:
      keyUp in class InputListener
    • checkFocusTraverse

      protected boolean checkFocusTraverse(char character)
    • keyTyped

      public boolean keyTyped(InputEvent event, char character)
      Description copied from class: InputListener
      Called when a key is typed. When true is returned, the event is handled.
      Overrides:
      keyTyped in class InputListener