Package | Description |
---|---|
com.googlecode.lanterna.gui2 |
Modifier and Type | Method | Description |
---|---|---|
TextBox |
TextBox.addLine(String line) |
Adds a single line to the
TextBox at the end, this only works when in multi-line mode |
TextBox |
TextBox.removeLine(int lineIndex) |
Removes a line from a
TextBox component. |
TextBox |
TextBox.setCaretPosition(int column) |
Moves the text caret position horizontally to a new position in the
TextBox . |
TextBox |
TextBox.setCaretPosition(int line,
int column) |
Moves the text caret position to a new position in the
TextBox . |
TextBox |
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 |
TextBox.setHorizontalFocusSwitching(boolean horizontalFocusSwitching) |
If set to
true , 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. |
TextBox |
TextBox.setMask(Character mask) |
Sets the current text mask, meaning the substitute to draw instead of the text inside the
TextBox . |
TextBox |
TextBox.setReadOnly(boolean readOnly) |
Sets the read-only mode of the
TextBox , meaning text input from the user through the keyboard is
prevented. |
TextBox |
TextBox.setText(String text) |
Updates the text content of the
TextBox to the supplied string. |
TextBox |
TextBox.setTextChangeListener(TextBox.TextChangeListener textChangeListener) |
Assigns a change listener for when the TextBox content has changed.
|
TextBox |
TextBox.setValidationPattern(Pattern validationPattern) |
Sets a pattern on which the content of the text box is to be validated.
|
TextBox |
TextBox.setVerticalFocusSwitching(boolean verticalFocusSwitching) |
If set to
true , 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. |
Modifier and Type | Method | Description |
---|---|---|
void |
TextBox.DefaultTextBoxRenderer.drawComponent(TextGUIGraphics graphics,
TextBox component) |
|
TerminalPosition |
TextBox.DefaultTextBoxRenderer.getCursorLocation(TextBox component) |
|
TerminalSize |
TextBox.DefaultTextBoxRenderer.getPreferredSize(TextBox component) |
Copyright © 2020. All rights reserved.