Class TextField.TextFieldClickListener

    • Constructor Detail

      • TextFieldClickListener

        public TextFieldClickListener()
    • Method Detail

      • touchDown

        public boolean touchDown​(InputEvent event,
                                 float x,
                                 float y,
                                 int pointer,
                                 int button)
        Description copied from class: InputListener
        Called when a mouse button or a finger touch goes down on the actor. If true is returned, this listener will have touch focus, so it will receive all touchDragged and touchUp events, even those not over this actor, until touchUp is received. Also when true is returned, the event is handled.
        Overrides:
        touchDown in class ClickListener
        See Also:
        InputEvent
      • 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:
        InputEvent
      • touchUp

        public void touchUp​(InputEvent event,
                            float x,
                            float y,
                            int pointer,
                            int 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:
        InputEvent
      • setCursorPosition

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

        protected void goHome​(boolean jump)
      • goEnd

        protected void goEnd​(boolean jump)
      • scheduleKeyRepeatTask

        protected void scheduleKeyRepeatTask​(int keycode)
      • checkFocusTraversal

        protected boolean checkFocusTraversal​(char character)
        Checks if focus traversal should be triggered. The default implementation uses TextField.focusTraversal and the typed character, depending on the OS.
        Parameters:
        character - The character that triggered a possible focus traversal.
        Returns:
        true if the focus should change to the next input field.
      • 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
        character - May be 0 for key typed events that don't map to a character (ctrl, shift, etc).