Package | Description |
---|---|
com.googlecode.lanterna.gui2 | |
com.googlecode.lanterna.gui2.dialogs |
Modifier and Type | Class | Description |
---|---|---|
class |
MultiWindowTextGUI |
This is the main Text GUI implementation built into Lanterna, supporting multiple tiled windows and a dynamic
background area that can be fully customized.
|
Modifier and Type | Method | Description |
---|---|---|
WindowBasedTextGUI |
MultiWindowTextGUI.addWindow(Window window) |
|
WindowBasedTextGUI |
WindowBasedTextGUI.addWindow(Window window) |
Adds a window to the TextGUI system, depending on the window manager this window may or may not be immediately
visible.
|
WindowBasedTextGUI |
MultiWindowTextGUI.addWindowAndWait(Window window) |
|
WindowBasedTextGUI |
WindowBasedTextGUI.addWindowAndWait(Window window) |
Adds a window to the TextGUI system, depending on the window manager this window may or may not be immediately
visible.
|
WindowBasedTextGUI |
MultiWindowTextGUI.cycleActiveWindow(boolean reverse) |
Switches the active window by cyclically shuffling the window list.
|
WindowBasedTextGUI |
WindowBasedTextGUI.cycleActiveWindow(boolean reverse) |
Takes the previously active window and makes it active, or if in reverse mode, takes the window at the bottom of
the stack, moves it to the front and makes it active.
|
WindowBasedTextGUI |
AbstractWindow.getTextGUI() |
|
WindowBasedTextGUI |
Window.getTextGUI() |
|
WindowBasedTextGUI |
MultiWindowTextGUI.moveToTop(Window window) |
|
WindowBasedTextGUI |
WindowBasedTextGUI.moveToTop(Window window) |
Windows are internally stored as a stack and newer windows are added at the top of the stack.
|
WindowBasedTextGUI |
MultiWindowTextGUI.removeWindow(Window window) |
|
WindowBasedTextGUI |
WindowBasedTextGUI.removeWindow(Window window) |
Removes a window from the TextGUI.
|
WindowBasedTextGUI |
WindowBasedTextGUI.setActiveWindow(Window activeWindow) |
Selects a particular window to be considered 'active' and receive all input events
|
Modifier and Type | Method | Description |
---|---|---|
TextGUIGraphics |
DefaultWindowDecorationRenderer.draw(WindowBasedTextGUI textGUI,
TextGUIGraphics graphics,
Window window) |
|
TextGUIGraphics |
EmptyWindowDecorationRenderer.draw(WindowBasedTextGUI textGUI,
TextGUIGraphics graphics,
Window window) |
|
TextGUIGraphics |
FatWindowDecorationRenderer.draw(WindowBasedTextGUI textGUI,
TextGUIGraphics graphics,
Window window) |
|
TextGUIGraphics |
WindowDecorationRenderer.draw(WindowBasedTextGUI textGUI,
TextGUIGraphics graphics,
Window window) |
Draws the window decorations for a particular window and returns a new TextGraphics that is locked to the area
inside of the window decorations where the content of the window should be drawn
|
void |
DefaultWindowManager.onAdded(WindowBasedTextGUI textGUI,
Window window,
List<Window> allWindows) |
|
void |
WindowManager.onAdded(WindowBasedTextGUI textGUI,
Window window,
List<Window> allWindows) |
Called whenever a window is added to the
WindowBasedTextGUI . |
void |
DefaultWindowManager.onRemoved(WindowBasedTextGUI textGUI,
Window window,
List<Window> allWindows) |
|
void |
WindowManager.onRemoved(WindowBasedTextGUI textGUI,
Window window,
List<Window> allWindows) |
Called whenever a window is removed from a
WindowBasedTextGUI . |
void |
DefaultWindowManager.prepareWindows(WindowBasedTextGUI textGUI,
List<Window> allWindows,
TerminalSize screenSize) |
|
void |
WindowManager.prepareWindows(WindowBasedTextGUI textGUI,
List<Window> allWindows,
TerminalSize screenSize) |
Called by the GUI system before iterating through all windows during the drawing process.
|
void |
AbstractWindow.setTextGUI(WindowBasedTextGUI textGUI) |
|
void |
Window.setTextGUI(WindowBasedTextGUI textGUI) |
DON'T CALL THIS METHOD YOURSELF, it is called automatically by the TextGUI system when you add a window.
|
Modifier and Type | Method | Description |
---|---|---|
static void |
ActionListDialog.showDialog(WindowBasedTextGUI textGUI,
String title,
String description,
Runnable... items) |
Helper method for immediately displaying a
ActionListDialog , the method will return when the dialog is
closed |
Object |
DialogWindow.showDialog(WindowBasedTextGUI textGUI) |
Opens the dialog by showing it on the GUI and doesn't return until the dialog has been closed
|
File |
FileDialog.showDialog(WindowBasedTextGUI textGUI) |
Opens the dialog by showing it on the GUI and doesn't return until the dialog has been closed
|
T |
ListSelectDialog.showDialog(WindowBasedTextGUI textGUI) |
Opens the dialog by showing it on the GUI and doesn't return until the dialog has been closed
|
static <T> T |
ListSelectDialog.showDialog(WindowBasedTextGUI textGUI,
String title,
String description,
int listBoxHeight,
T... items) |
Shortcut for quickly creating a new dialog
|
static <T> T |
ListSelectDialog.showDialog(WindowBasedTextGUI textGUI,
String title,
String description,
TerminalSize listBoxSize,
T... items) |
Shortcut for quickly creating a new dialog
|
static <T> T |
ListSelectDialog.showDialog(WindowBasedTextGUI textGUI,
String title,
String description,
T... items) |
Shortcut for quickly creating a new dialog
|
MessageDialogButton |
MessageDialog.showDialog(WindowBasedTextGUI textGUI) |
Opens the dialog by showing it on the GUI and doesn't return until the dialog has been closed
|
String |
TextInputDialog.showDialog(WindowBasedTextGUI textGUI) |
|
static String |
TextInputDialog.showDialog(WindowBasedTextGUI textGUI,
String title,
String description,
String initialContent) |
Shortcut for quickly showing a
TextInputDialog |
Object |
WaitingDialog.showDialog(WindowBasedTextGUI textGUI) |
|
void |
WaitingDialog.showDialog(WindowBasedTextGUI textGUI,
boolean blockUntilClosed) |
Displays the waiting dialog and optionally blocks until another thread closes it
|
static WaitingDialog |
WaitingDialog.showDialog(WindowBasedTextGUI textGUI,
String title,
String text) |
Creates and displays a waiting dialog without blocking for it to finish
|
static MessageDialogButton |
MessageDialog.showMessageDialog(WindowBasedTextGUI textGUI,
String title,
String text,
MessageDialogButton... buttons) |
Shortcut for quickly displaying a message box
|
static BigInteger |
TextInputDialog.showNumberDialog(WindowBasedTextGUI textGUI,
String title,
String description,
String initialContent) |
Shortcut for quickly showing a
TextInputDialog that only accepts numbers |
static String |
TextInputDialog.showPasswordDialog(WindowBasedTextGUI textGUI,
String title,
String description,
String initialContent) |
Shortcut for quickly showing a
TextInputDialog with password masking |
Copyright © 2020. All rights reserved.