Package | Description |
---|---|
com.googlecode.lanterna.gui2 |
Modifier and Type | Method | Description |
---|---|---|
ComboBox<V> |
ComboBox.addItem(int index,
V item) |
Adds a new item to the combo box, at a specific index
|
ComboBox<V> |
ComboBox.addItem(V item) |
Adds a new item to the combo box, at the end
|
ComboBox<V> |
ComboBox.addListener(ComboBox.Listener listener) |
Adds a new listener to the
ComboBox that will be called on certain user actions |
ComboBox<V> |
ComboBox.clearItems() |
Removes all items from the combo box
|
ComboBox<V> |
ComboBox.remoteItem(int index) |
Removes an item from the combo box at a particular index
|
ComboBox<V> |
ComboBox.removeItem(V item) |
Removes a particular item from the combo box, if it is present, otherwise does nothing
|
ComboBox<V> |
ComboBox.removeListener(ComboBox.Listener listener) |
Removes a listener from this
ComboBox so that if it had been added earlier, it will no longer be
called on user actions |
ComboBox<V> |
ComboBox.setItem(int index,
V item) |
Updates the combo box so the item at the specified index is swapped out with the supplied value in the
item parameter |
ComboBox<V> |
ComboBox.setReadOnly(boolean readOnly) |
Sets the combo box to either read-only or writable.
|
Modifier and Type | Method | Description |
---|---|---|
protected InteractableRenderer<ComboBox<V>> |
ComboBox.createDefaultRenderer() |
Modifier and Type | Method | Description |
---|---|---|
void |
ComboBox.DefaultComboBoxRenderer.drawComponent(TextGUIGraphics graphics,
ComboBox<V> comboBox) |
|
TerminalPosition |
ComboBox.DefaultComboBoxRenderer.getCursorLocation(ComboBox<V> comboBox) |
|
TerminalSize |
ComboBox.DefaultComboBoxRenderer.getPreferredSize(ComboBox<V> comboBox) |
Copyright © 2020. All rights reserved.