public class TextArea extends TextField
TextField
Modifier and Type | Class and Description |
---|---|
class |
TextArea.TextAreaListener
Input listener for the text area
|
TextField.DefaultOnscreenKeyboard, TextField.OnscreenKeyboard, TextField.TextFieldClickListener, TextField.TextFieldFilter, TextField.TextFieldListener, TextField.TextFieldStyle
keyRepeatInitialTime, keyRepeatTime
Constructor and Description |
---|
TextArea(String text,
Skin skin) |
TextArea(String text,
Skin skin,
String styleName) |
TextArea(String text,
TextField.TextFieldStyle style) |
Modifier and Type | Method and Description |
---|---|
int |
getCursorLine() |
int |
getFirstLineShowing() |
int |
getLines()
Returns total number of lines that the text occupies
|
int |
getLinesShowing() |
float |
getPrefHeight() |
void |
moveCursorLine(int line)
Moves the cursor to the given number line
|
boolean |
newLineAtEnd()
Returns if there's a new line at then end of the text
|
void |
setPrefRows(float prefRows)
Sets the preferred number of rows (lines) for this text area.
|
void |
setSelection(int selectionStart,
int selectionEnd)
Sets the selected text.
|
appendText, clearSelection, copy, cut, draw, getCursorPosition, getDefaultInputListener, getMaxLength, getMessageText, getOnscreenKeyboard, getPrefWidth, getSelection, getSelectionStart, getStyle, getText, getTextFieldFilter, isDisabled, isPasswordMode, next, selectAll, setAlignment, setBlinkTime, setClipboard, setCursorPosition, setDisabled, setFocusTraversal, setMaxLength, setMessageText, setOnlyFontChars, setOnscreenKeyboard, setPasswordCharacter, setPasswordMode, setStyle, setText, setTextFieldFilter, setTextFieldListener
getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, invalidate, invalidateHierarchy, layout, needsLayout, pack, setFillParent, setLayoutEnabled, validate
act, addAction, addCaptureListener, addListener, clear, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, debug, drawDebug, fire, getActions, getCaptureListeners, getColor, getDebug, getHeight, getListeners, getName, getOriginX, getOriginY, getParent, getRight, getRotation, getScaleX, getScaleY, getStage, getTop, getTouchable, getUserObject, getWidth, getX, getX, getY, getY, getZIndex, hasParent, hit, isAscendantOf, isDescendantOf, isTouchable, isVisible, localToAscendantCoordinates, localToParentCoordinates, localToStageCoordinates, moveBy, notify, parentToLocalCoordinates, remove, removeAction, removeCaptureListener, removeListener, rotateBy, scaleBy, scaleBy, screenToLocalCoordinates, setBounds, setColor, setColor, setDebug, setHeight, setName, setOrigin, setOrigin, setOriginX, setOriginY, setPosition, setPosition, setRotation, setScale, setScale, setScaleX, setScaleY, setSize, setTouchable, setUserObject, setVisible, setWidth, setX, setY, setZIndex, sizeBy, sizeBy, stageToLocalCoordinates, toBack, toFront, toString
public TextArea(String text, TextField.TextFieldStyle style)
public void setPrefRows(float prefRows)
public float getPrefHeight()
getPrefHeight
in interface Layout
getPrefHeight
in class TextField
public int getLines()
public boolean newLineAtEnd()
public void moveCursorLine(int line)
public void setSelection(int selectionStart, int selectionEnd)
TextField
setSelection
in class TextField
public int getCursorLine()
public int getFirstLineShowing()
public int getLinesShowing()
Copyright © 2015. All rights reserved.