Package | Description |
---|---|
com.googlecode.lanterna.gui | |
com.googlecode.lanterna.gui.component | |
com.googlecode.lanterna.gui.dialog | |
com.googlecode.lanterna.gui.util |
Modifier and Type | Field and Description |
---|---|
protected Queue<Action> |
GUIScreen.actionToRunInEventThread |
Modifier and Type | Method and Description |
---|---|
protected Queue<Action> |
GUIScreen.getActionsToRunInEventThreadQueue() |
Modifier and Type | Method and Description |
---|---|
void |
InteractableContainer.addShortcut(char character,
boolean withCtrl,
boolean withAlt,
Action action)
Adds a keyboard shortcut to be invoked when the
Interactable component in focus
within this container didn't handle the keyboard event and the event matches the supplied
character and control key status. |
void |
InteractableContainer.addShortcut(Key.Kind key,
Action action)
Adds a keyboard shortcut to be invoked when the
Interactable component in focus
within this container didn't handle the keyboard event and the event matches the supplied
Key.Kind . |
void |
GUIScreen.runInEventThread(Action codeToRun)
Since Lanterna isn't thread safe, here's a way to run code on the same
thread as the GUI system is using.
|
Modifier and Type | Method and Description |
---|---|
void |
ActionListBox.addAction(Action action)
Adds an action to the list, using toString() of the action as a label
|
void |
ActionListBox.addAction(String label,
Action action)
Adds an action to the list, with a specified label
|
void |
AbstractContainer.addShortcut(char character,
boolean withCtrl,
boolean withAlt,
Action action) |
void |
Table.addShortcut(char character,
boolean withCtrl,
boolean withAlt,
Action action) |
void |
AbstractContainer.addShortcut(Key.Kind key,
Action action) |
void |
Table.addShortcut(Key.Kind key,
Action action) |
Constructor and Description |
---|
Button(String text,
Action onPressEvent) |
Modifier and Type | Method and Description |
---|---|
static void |
ActionListDialog.showActionListDialog(GUIScreen owner,
String title,
String description,
Action... actions)
Will display a dialog prompting the user to select an action from a list.
|
static void |
ActionListDialog.showActionListDialog(GUIScreen owner,
String title,
String description,
int itemWidth,
Action... actions)
Will display a dialog prompting the user to select an action from a list.
|
static void |
ActionListDialog.showActionListDialog(GUIScreen owner,
String title,
String description,
int itemWidth,
boolean closeBeforeAction,
Action... actions)
Will display a dialog prompting the user to select an action from a list.
|
Modifier and Type | Method and Description |
---|---|
void |
ShortcutHelper.addShortcut(char character,
boolean withCtrl,
boolean withAlt,
Action action) |
void |
ShortcutHelper.addShortcut(Key.Kind kindOfKey,
Action action) |
Copyright © 2015. All Rights Reserved.