|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.badlogic.gdx.scenes.scene2d.Actor
com.badlogic.gdx.scenes.scene2d.ui.Widget
com.badlogic.gdx.scenes.scene2d.ui.TextField
com.badlogic.gdx.scenes.scene2d.ui.TextArea
public class TextArea
A multiple-line text input field, entirely based on TextField
Nested Class Summary | |
---|---|
class |
TextArea.TextAreaListener
Input listener for the text area |
Nested classes/interfaces inherited from class com.badlogic.gdx.scenes.scene2d.ui.TextField |
---|
TextField.DefaultOnscreenKeyboard, TextField.OnscreenKeyboard, TextField.TextFieldClickListener, TextField.TextFieldFilter, TextField.TextFieldListener, TextField.TextFieldStyle |
Constructor Summary | |
---|---|
TextArea(String text,
Skin skin)
|
|
TextArea(String text,
Skin skin,
String styleName)
|
|
TextArea(String text,
TextField.TextFieldStyle style)
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.badlogic.gdx.scenes.scene2d.ui.TextField |
---|
clearSelection, copy, cut, draw, getCursorPosition, getDefaultInputListener, getMaxLength, getMessageText, getOnscreenKeyboard, getPrefWidth, getSelection, getSelectionStart, getStyle, getText, getTextFieldFilter, isDisabled, isPasswordMode, next, selectAll, setBlinkTime, setClipboard, setCursorPosition, setDisabled, setFocusTraversal, setMaxLength, setMessageText, setOnlyFontChars, setOnscreenKeyboard, setPasswordCharacter, setPasswordMode, setRightAligned, setStyle, setText, setTextFieldFilter, setTextFieldListener |
Methods inherited from class com.badlogic.gdx.scenes.scene2d.ui.Widget |
---|
getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, invalidate, invalidateHierarchy, layout, needsLayout, pack, setFillParent, setLayoutEnabled, validate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TextArea(String text, Skin skin)
public TextArea(String text, Skin skin, String styleName)
public TextArea(String text, TextField.TextFieldStyle style)
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |