Interface TethysUITextArea
- All Superinterfaces:
TethysUIComponent
- All Known Implementing Classes:
TethysUICoreTextArea
Non-editable text area.
-
Method Summary
Modifier and TypeMethodDescriptionvoidappendText(String pText) Append the text.intGetCaretPosition.intObtain textLength.voidinsertText(String pText, int pPos) Insert the text at position.voidreplaceText(String pText, int pStart, int pEnd) replace the text at position.voidsetCaretPosition(int pPos) SetCaretPosition.voidSet the text.Methods inherited from interface io.github.tonywasher.joceanus.tethys.api.base.TethysUIComponent
getBorderPadding, getBorderTitle, getId, getNode, getUnderlying, setBorderPadding, setBorderTitle, setEnabled, setPreferredHeight, setPreferredWidth, setVisible
-
Method Details
-
setText
Set the text.- Parameters:
pText- the text
-
appendText
Append the text.- Parameters:
pText- the text
-
insertText
Insert the text at position.- Parameters:
pText- the textpPos- the position
-
replaceText
replace the text at position.- Parameters:
pText- the textpStart- the start positionpEnd- the end position
-
setCaretPosition
void setCaretPosition(int pPos) SetCaretPosition.- Parameters:
pPos- the position
-
getCaretPosition
int getCaretPosition()GetCaretPosition.- Returns:
- the position
-
getTextLength
int getTextLength()Obtain textLength.- Returns:
- the length
-