Class TextArea.TextAreaListener
- java.lang.Object
-
- com.badlogic.gdx.scenes.scene2d.InputListener
-
- com.badlogic.gdx.scenes.scene2d.utils.ClickListener
-
- com.badlogic.gdx.scenes.scene2d.ui.TextField.TextFieldClickListener
-
- com.badlogic.gdx.scenes.scene2d.ui.TextArea.TextAreaListener
-
- All Implemented Interfaces:
EventListener
- Enclosing class:
- TextArea
public class TextArea.TextAreaListener extends TextField.TextFieldClickListener
Input listener for the text area
-
-
Field Summary
-
Fields inherited from class com.badlogic.gdx.scenes.scene2d.utils.ClickListener
visualPressedDuration
-
-
Constructor Summary
Constructors Constructor Description TextAreaListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancheckFocusTraversal(char character)Checks if focus traversal should be triggered.protected voidgoEnd(boolean jump)protected voidgoHome(boolean jump)booleankeyDown(InputEvent event, int keycode)Called when a key goes down.booleankeyTyped(InputEvent event, char character)Called when a key is typed.protected voidsetCursorPosition(float x, float y)-
Methods inherited from class com.badlogic.gdx.scenes.scene2d.ui.TextField.TextFieldClickListener
clicked, keyUp, scheduleKeyRepeatTask, touchDown, touchDragged, touchUp
-
Methods inherited from class com.badlogic.gdx.scenes.scene2d.utils.ClickListener
cancel, enter, exit, getButton, getPressedButton, getPressedPointer, getTapCount, getTapSquareSize, getTouchDownX, getTouchDownY, inTapSquare, inTapSquare, invalidateTapSquare, isOver, isOver, isPressed, isVisualPressed, setButton, setTapCount, setTapCountInterval, setTapSquareSize, setVisualPressed
-
Methods inherited from class com.badlogic.gdx.scenes.scene2d.InputListener
handle, mouseMoved, scrolled
-
-
-
-
Method Detail
-
setCursorPosition
protected void setCursorPosition(float x, float y)- Overrides:
setCursorPositionin classTextField.TextFieldClickListener
-
keyDown
public boolean keyDown(InputEvent event, int keycode)
Description copied from class:InputListenerCalled when a key goes down. When true is returned, the event ishandled.- Overrides:
keyDownin classTextField.TextFieldClickListener
-
checkFocusTraversal
protected boolean checkFocusTraversal(char character)
Description copied from class:TextField.TextFieldClickListenerChecks if focus traversal should be triggered. The default implementation usesTextField.focusTraversaland the typed character, depending on the OS.- Overrides:
checkFocusTraversalin classTextField.TextFieldClickListener- Parameters:
character- The character that triggered a possible focus traversal.- Returns:
- true if the focus should change to the
nextinput field.
-
keyTyped
public boolean keyTyped(InputEvent event, char character)
Description copied from class:InputListenerCalled when a key is typed. When true is returned, the event ishandled.- Overrides:
keyTypedin classTextField.TextFieldClickListenercharacter- May be 0 for key typed events that don't map to a character (ctrl, shift, etc).
-
goHome
protected void goHome(boolean jump)
- Overrides:
goHomein classTextField.TextFieldClickListener
-
goEnd
protected void goEnd(boolean jump)
- Overrides:
goEndin classTextField.TextFieldClickListener
-
-