Uses of Class
com.googlecode.lanterna.gui2.TextBox
Packages that use TextBox
-
Uses of TextBox in com.googlecode.lanterna.gui2
Methods in com.googlecode.lanterna.gui2 that return TextBoxModifier and TypeMethodDescriptionAdds a single line to theTextBox
at the end, this only works when in multi-line modeTextBox.removeLine
(int lineIndex) Removes a line from aTextBox
component.TextBox.setCaretPosition
(int column) Moves the text caret position horizontally to a new position in theTextBox
.TextBox.setCaretPosition
(int line, int column) Moves the text caret position to a new position in theTextBox
.TextBox.setCaretWarp
(boolean caretWarp) Sets if the caret should jump to the beginning of the next line if right arrow is pressed while at the end of a line.TextBox.setHorizontalFocusSwitching
(boolean horizontalFocusSwitching) If set totrue
, the TextBox will switch focus to the next available component to the left if the cursor in the TextBox is at the left-most position (index 0) on the row and the user pressed the 'left' arrow key, or vice versa for pressing the 'right' arrow key when the cursor in at the right-most position of the current row.Sets the current text mask, meaning the substitute to draw instead of the text inside theTextBox
.TextBox.setReadOnly
(boolean readOnly) Sets the read-only mode of theTextBox
, meaning text input from the user through the keyboard is prevented.Updates the text content of theTextBox
to the supplied string.TextBox.setTextChangeListener
(TextBox.TextChangeListener textChangeListener) Assigns a change listener for when the TextBox content has changed.TextBox.setValidationPattern
(Pattern validationPattern) Sets a pattern on which the content of the text box is to be validated.TextBox.setVerticalFocusSwitching
(boolean verticalFocusSwitching) If set totrue
, the component will switch to the next available component above if the cursor is at the top of the TextBox and the user presses the 'up' array key, or switch to the next available component below if the cursor is at the bottom of the TextBox and the user presses the 'down' array key.Methods in com.googlecode.lanterna.gui2 with parameters of type TextBoxModifier and TypeMethodDescriptionvoid
TextBox.DefaultTextBoxRenderer.drawComponent
(TextGUIGraphics graphics, TextBox component) private void
TextBox.DefaultTextBoxRenderer.drawTextArea
(TextGUIGraphics graphics, TextBox component) TextBox.DefaultTextBoxRenderer.getCursorLocation
(TextBox component) TextBox.DefaultTextBoxRenderer.getPreferredSize
(TextBox component) -
Uses of TextBox in com.googlecode.lanterna.gui2.dialogs
Fields in com.googlecode.lanterna.gui2.dialogs declared as TextBox