Uses of Interface
com.googlecode.lanterna.gui2.WindowBasedTextGUI
-
Packages that use WindowBasedTextGUI Package Description com.googlecode.lanterna.gui2 com.googlecode.lanterna.gui2.dialogs -
-
Uses of WindowBasedTextGUI in com.googlecode.lanterna.gui2
Classes in com.googlecode.lanterna.gui2 that implement WindowBasedTextGUI 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.Fields in com.googlecode.lanterna.gui2 declared as WindowBasedTextGUI Modifier and Type Field Description private WindowBasedTextGUI
AbstractWindow. textGUI
Methods in com.googlecode.lanterna.gui2 that return WindowBasedTextGUI 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. moveToBottom(Window window)
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 eventsMethods in com.googlecode.lanterna.gui2 with parameters of type WindowBasedTextGUI 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 drawnvoid
DefaultWindowManager. onAdded(WindowBasedTextGUI textGUI, Window window, java.util.List<Window> allWindows)
void
WindowManager. onAdded(WindowBasedTextGUI textGUI, Window window, java.util.List<Window> allWindows)
Called whenever a window is added to theWindowBasedTextGUI
.void
DefaultWindowManager. onRemoved(WindowBasedTextGUI textGUI, Window window, java.util.List<Window> allWindows)
void
WindowManager. onRemoved(WindowBasedTextGUI textGUI, Window window, java.util.List<Window> allWindows)
Called whenever a window is removed from aWindowBasedTextGUI
.void
DefaultWindowManager. prepareWindows(WindowBasedTextGUI textGUI, java.util.List<Window> allWindows, TerminalSize screenSize)
void
WindowManager. prepareWindows(WindowBasedTextGUI textGUI, java.util.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. -
Uses of WindowBasedTextGUI in com.googlecode.lanterna.gui2.dialogs
Methods in com.googlecode.lanterna.gui2.dialogs with parameters of type WindowBasedTextGUI Modifier and Type Method Description static void
ActionListDialog. showDialog(WindowBasedTextGUI textGUI, java.lang.String title, java.lang.String description, java.lang.Runnable... items)
Helper method for immediately displaying aActionListDialog
, the method will return when the dialog is closedjava.lang.Object
DialogWindow. showDialog(WindowBasedTextGUI textGUI)
Opens the dialog by showing it on the GUI and doesn't return until the dialog has been closedjava.io.File
DirectoryDialog. showDialog(WindowBasedTextGUI textGUI)
Opens the dialog by showing it on the GUI and doesn't return until the dialog has been closedjava.io.File
FileDialog. showDialog(WindowBasedTextGUI textGUI)
Opens the dialog by showing it on the GUI and doesn't return until the dialog has been closedT
ListSelectDialog. showDialog(WindowBasedTextGUI textGUI)
Opens the dialog by showing it on the GUI and doesn't return until the dialog has been closedstatic <T> T
ListSelectDialog. showDialog(WindowBasedTextGUI textGUI, java.lang.String title, java.lang.String description, int listBoxHeight, T... items)
Shortcut for quickly creating a new dialogstatic <T> T
ListSelectDialog. showDialog(WindowBasedTextGUI textGUI, java.lang.String title, java.lang.String description, TerminalSize listBoxSize, T... items)
Shortcut for quickly creating a new dialogstatic <T> T
ListSelectDialog. showDialog(WindowBasedTextGUI textGUI, java.lang.String title, java.lang.String description, T... items)
Shortcut for quickly creating a new dialogMessageDialogButton
MessageDialog. showDialog(WindowBasedTextGUI textGUI)
Opens the dialog by showing it on the GUI and doesn't return until the dialog has been closedjava.lang.String
TextInputDialog. showDialog(WindowBasedTextGUI textGUI)
static java.lang.String
TextInputDialog. showDialog(WindowBasedTextGUI textGUI, java.lang.String title, java.lang.String description, java.lang.String initialContent)
Shortcut for quickly showing aTextInputDialog
java.lang.Object
WaitingDialog. showDialog(WindowBasedTextGUI textGUI)
void
WaitingDialog. showDialog(WindowBasedTextGUI textGUI, boolean blockUntilClosed)
Displays the waiting dialog and optionally blocks until another thread closes itstatic WaitingDialog
WaitingDialog. showDialog(WindowBasedTextGUI textGUI, java.lang.String title, java.lang.String text)
Creates and displays a waiting dialog without blocking for it to finishstatic MessageDialogButton
MessageDialog. showMessageDialog(WindowBasedTextGUI textGUI, java.lang.String title, java.lang.String text, MessageDialogButton... buttons)
Shortcut for quickly displaying a message boxstatic java.math.BigInteger
TextInputDialog. showNumberDialog(WindowBasedTextGUI textGUI, java.lang.String title, java.lang.String description, java.lang.String initialContent)
Shortcut for quickly showing aTextInputDialog
that only accepts numbersstatic java.lang.String
TextInputDialog. showPasswordDialog(WindowBasedTextGUI textGUI, java.lang.String title, java.lang.String description, java.lang.String initialContent)
Shortcut for quickly showing aTextInputDialog
with password masking
-