Package | Description |
---|---|
com.googlecode.lanterna.gui2 | |
com.googlecode.lanterna.gui2.table |
Modifier and Type | Interface | Description |
---|---|---|
interface |
InteractableRenderer<T extends Component & Interactable> |
Extended interface for component renderers used with interactable components.
|
Modifier and Type | Class | Description |
---|---|---|
class |
AbstractInteractableComponent<T extends AbstractInteractableComponent<T>> |
Default implementation of Interactable that extends from AbstractComponent.
|
class |
AbstractListBox<V,T extends AbstractListBox<V,T>> |
Base class for several list box implementations, this will handle things like list of items and the scrollbar.
|
class |
ActionListBox |
This class is a list box implementation that displays a number of items that has actions associated with them.
|
class |
Button |
Simple labeled button that the user can trigger by pressing the Enter or the Spacebar key on the keyboard when the
component is in focus.
|
class |
CheckBox |
The checkbox component looks like a regular checkbox that you can find in modern graphics user interfaces, a label
and a space that the user can toggle on and off by using enter or space keys.
|
class |
CheckBoxList<V> |
This is a list box implementation where each item has its own checked state that can be toggled on and off
|
class |
ComboBox<V> |
This is a simple combo box implementation that allows the user to select one out of multiple items through a
drop-down menu.
|
class |
RadioBoxList<V> |
The list box will display a number of items, of which one and only one can be marked as selected.
|
class |
TextBox |
This component keeps a text content that is editable by the user.
|
Modifier and Type | Method | Description |
---|---|---|
Interactable |
InteractableLookupMap.findNextDown(Interactable interactable) |
Starting from a particular
Interactable and going down, which is the next interactable? |
Interactable |
InteractableLookupMap.findNextLeft(Interactable interactable) |
Starting from a particular
Interactable and going left, which is the next interactable? |
Interactable |
InteractableLookupMap.findNextRight(Interactable interactable) |
Starting from a particular
Interactable and going right, which is the next interactable? |
Interactable |
InteractableLookupMap.findNextUp(Interactable interactable) |
Starting from a particular
Interactable and going up, which is the next interactable? |
Interactable |
AbstractBasePane.getFocusedInteractable() |
|
Interactable |
BasePane.getFocusedInteractable() |
Returns the component in the root container that currently has input focus.
|
Interactable |
MultiWindowTextGUI.getFocusedInteractable() |
|
Interactable |
TextGUI.getFocusedInteractable() |
Returns the interactable component currently in focus
|
Interactable |
Window.getFocusedInteractable() |
Returns the component in the window that currently has input focus.
|
Interactable |
InteractableLookupMap.getInteractableAt(TerminalPosition position) |
Looks up what interactable component is as a particular location in the map
|
Interactable |
AbstractComposite.nextFocus(Interactable fromThis) |
|
Interactable |
Container.nextFocus(Interactable fromThis) |
Given an interactable, find the next one in line to receive focus.
|
Interactable |
Panel.nextFocus(Interactable fromThis) |
|
Interactable |
AbstractComposite.previousFocus(Interactable fromThis) |
|
Interactable |
Container.previousFocus(Interactable fromThis) |
Given an interactable, find the previous one in line to receive focus.
|
Interactable |
Panel.previousFocus(Interactable fromThis) |
|
Interactable |
Interactable.setEnabled(boolean enabled) |
Prevents the component from receiving input focus if this is called with a
false value. |
Interactable |
Interactable.setInputFilter(InputFilter inputFilter) |
Assigns an input filter to the interactable component.
|
Interactable |
Interactable.takeFocus() |
Moves focus in the
BasePane to this component. |
Modifier and Type | Method | Description |
---|---|---|
void |
InteractableLookupMap.add(Interactable interactable) |
Adds an interactable component to the lookup map
|
protected void |
AbstractInteractableComponent.afterEnterFocus(Interactable.FocusChangeDirection direction,
Interactable previouslyInFocus) |
Called by
AbstractInteractableComponent automatically after this component has received input focus. |
protected void |
AbstractListBox.afterEnterFocus(Interactable.FocusChangeDirection direction,
Interactable previouslyInFocus) |
|
protected void |
ComboBox.afterEnterFocus(Interactable.FocusChangeDirection direction,
Interactable previouslyInFocus) |
|
protected void |
AbstractInteractableComponent.afterLeaveFocus(Interactable.FocusChangeDirection direction,
Interactable nextInFocus) |
Called by
AbstractInteractableComponent automatically after this component has lost input focus. |
protected void |
ComboBox.afterLeaveFocus(Interactable.FocusChangeDirection direction,
Interactable nextInFocus) |
|
Interactable |
InteractableLookupMap.findNextDown(Interactable interactable) |
Starting from a particular
Interactable and going down, which is the next interactable? |
Interactable |
InteractableLookupMap.findNextLeft(Interactable interactable) |
Starting from a particular
Interactable and going left, which is the next interactable? |
Interactable |
InteractableLookupMap.findNextRight(Interactable interactable) |
Starting from a particular
Interactable and going right, which is the next interactable? |
Interactable |
InteractableLookupMap.findNextUp(Interactable interactable) |
Starting from a particular
Interactable and going up, which is the next interactable? |
Interactable |
AbstractComposite.nextFocus(Interactable fromThis) |
|
Interactable |
Container.nextFocus(Interactable fromThis) |
Given an interactable, find the next one in line to receive focus.
|
Interactable |
Panel.nextFocus(Interactable fromThis) |
|
void |
AbstractInteractableComponent.onEnterFocus(Interactable.FocusChangeDirection direction,
Interactable previouslyInFocus) |
Method called when this component gained keyboard focus.
|
void |
Interactable.onEnterFocus(Interactable.FocusChangeDirection direction,
Interactable previouslyInFocus) |
Method called when this component gained keyboard focus.
|
boolean |
InputFilter.onInput(Interactable interactable,
KeyStroke keyStroke) |
Called when the component is about to receive input from the user and decides if the input should be passed on to
the component or not
|
void |
AbstractInteractableComponent.onLeaveFocus(Interactable.FocusChangeDirection direction,
Interactable nextInFocus) |
Method called when keyboard focus moves away from this component
|
void |
Interactable.onLeaveFocus(Interactable.FocusChangeDirection direction,
Interactable nextInFocus) |
Method called when keyboard focus moves away from this component
|
Interactable |
AbstractComposite.previousFocus(Interactable fromThis) |
|
Interactable |
Container.previousFocus(Interactable fromThis) |
Given an interactable, find the previous one in line to receive focus.
|
Interactable |
Panel.previousFocus(Interactable fromThis) |
|
void |
AbstractBasePane.setFocusedInteractable(Interactable toFocus) |
|
protected void |
AbstractBasePane.setFocusedInteractable(Interactable toFocus,
Interactable.FocusChangeDirection direction) |
|
void |
BasePane.setFocusedInteractable(Interactable interactable) |
Sets the component currently in focus within this root container, or sets no component in focus if
null
is passed in. |
void |
Window.setFocusedInteractable(Interactable interactable) |
Sets the component currently in focus within this window, or sets no component in focus if
null
is passed in. |
Modifier and Type | Class | Description |
---|---|---|
class |
Table<V> |
The table class is an interactable component that displays a grid of cells containing data along with a header of
labels.
|
Copyright © 2020. All rights reserved.