Package arc.scene.ui
Class TextArea.TextAreaListener
java.lang.Object
arc.scene.event.InputListener
arc.scene.event.ClickListener
arc.scene.ui.TextField.TextFieldClickListener
arc.scene.ui.TextArea.TextAreaListener
- All Implemented Interfaces:
EventListener
- Enclosing class:
- TextArea
Input listener for the text area
-
Field Summary
Fields inherited from class arc.scene.event.ClickListener
button, cancelled, clicked, lastTapTime, over, overAny, pressed, pressedButton, pressedPointer, stop, tapCount, tapCountInterval, tapSquareSize, touchDownX, touchDownY, visualPressedDuration, visualPressedTime
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkFocusTraverse
(char character) protected void
goEnd
(boolean jump) protected void
goHome
(boolean jump) boolean
keyDown
(InputEvent event, KeyCode keycode) Called when a key goes down.boolean
keyTyped
(InputEvent event, char character) Called when a key is typed.protected void
setCursorPosition
(float x, float y) Methods inherited from class arc.scene.ui.TextField.TextFieldClickListener
clicked, keyUp, scheduleKeyRepeatTask, touchDown, touchDragged, touchUp
Methods inherited from class arc.scene.event.ClickListener
cancel, enter, exit, getButton, getPressedButton, getPressedPointer, getTapCount, getTapSquareSize, getTouchDownX, getTouchDownY, inTapSquare, inTapSquare, invalidateTapSquare, isOver, isOver, isPressed, isVisualPressed, setButton, setTapCount, setTapCountInterval, setTapSquareSize
Methods inherited from class arc.scene.event.InputListener
handle, mouseMoved, scrolled
-
Constructor Details
-
TextAreaListener
public TextAreaListener()
-
-
Method Details
-
setCursorPosition
protected void setCursorPosition(float x, float y) - Overrides:
setCursorPosition
in classTextField.TextFieldClickListener
-
checkFocusTraverse
protected boolean checkFocusTraverse(char character) - Overrides:
checkFocusTraverse
in classTextField.TextFieldClickListener
-
keyDown
Description copied from class:InputListener
Called when a key goes down. When true is returned, the event ishandled
.- Overrides:
keyDown
in classTextField.TextFieldClickListener
-
keyTyped
Description copied from class:InputListener
Called when a key is typed. When true is returned, the event ishandled
.- Overrides:
keyTyped
in classTextField.TextFieldClickListener
-
goHome
protected void goHome(boolean jump) - Overrides:
goHome
in classTextField.TextFieldClickListener
-
goEnd
protected void goEnd(boolean jump) - Overrides:
goEnd
in classTextField.TextFieldClickListener
-