Uses of Interface
com.googlecode.lanterna.gui2.WindowBasedTextGUI
Packages that use WindowBasedTextGUI
-
Uses of WindowBasedTextGUI in com.googlecode.lanterna.gui2
Classes in com.googlecode.lanterna.gui2 that implement WindowBasedTextGUIModifier and TypeClassDescriptionclass
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 WindowBasedTextGUIMethods in com.googlecode.lanterna.gui2 that return WindowBasedTextGUIModifier and TypeMethodDescriptionAdds a window to the TextGUI system, depending on the window manager this window may or may not be immediately visible.MultiWindowTextGUI.addWindowAndWait
(Window window) 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.MultiWindowTextGUI.cycleActiveWindow
(boolean reverse) Switches the active window by cyclically shuffling the window list.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.AbstractWindow.getTextGUI()
Window.getTextGUI()
MultiWindowTextGUI.moveToBottom
(Window window) Windows are internally stored as a stack and newer windows are added at the top of the stack.MultiWindowTextGUI.removeWindow
(Window window) WindowBasedTextGUI.removeWindow
(Window window) Removes a window from the TextGUI.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 WindowBasedTextGUIModifier and TypeMethodDescriptionDefaultWindowDecorationRenderer.draw
(WindowBasedTextGUI textGUI, TextGUIGraphics graphics, Window window) EmptyWindowDecorationRenderer.draw
(WindowBasedTextGUI textGUI, TextGUIGraphics graphics, Window window) FatWindowDecorationRenderer.draw
(WindowBasedTextGUI textGUI, TextGUIGraphics graphics, Window window) 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, List<Window> allWindows) void
WindowManager.onAdded
(WindowBasedTextGUI textGUI, Window window, List<Window> allWindows) Called whenever a window is added to theWindowBasedTextGUI
.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 aWindowBasedTextGUI
.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. -
Uses of WindowBasedTextGUI in com.googlecode.lanterna.gui2.dialogs
Methods in com.googlecode.lanterna.gui2.dialogs with parameters of type WindowBasedTextGUIModifier and TypeMethodDescriptionstatic void
ActionListDialog.showDialog
(WindowBasedTextGUI textGUI, String title, String description, Runnable... items) Helper method for immediately displaying aActionListDialog
, the method will return when the dialog is closedDialogWindow.showDialog
(WindowBasedTextGUI textGUI) Opens the dialog by showing it on the GUI and doesn't return until the dialog has been closedDirectoryDialog.showDialog
(WindowBasedTextGUI textGUI) Opens the dialog by showing it on the GUI and doesn't return until the dialog has been closedFileDialog.showDialog
(WindowBasedTextGUI textGUI) Opens the dialog by showing it on the GUI and doesn't return until the dialog has been closedListSelectDialog.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, String title, String description, int listBoxHeight, T... items) Shortcut for quickly creating a new dialogstatic <T> T
ListSelectDialog.showDialog
(WindowBasedTextGUI textGUI, String title, String description, TerminalSize listBoxSize, T... items) Shortcut for quickly creating a new dialogstatic <T> T
ListSelectDialog.showDialog
(WindowBasedTextGUI textGUI, String title, String description, T... items) Shortcut for quickly creating a new dialogMessageDialog.showDialog
(WindowBasedTextGUI textGUI) Opens the dialog by showing it on the GUI and doesn't return until the dialog has been closedTextInputDialog.showDialog
(WindowBasedTextGUI textGUI) static String
TextInputDialog.showDialog
(WindowBasedTextGUI textGUI, String title, String description, String initialContent) Shortcut for quickly showing aTextInputDialog
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, String title, String text) Creates and displays a waiting dialog without blocking for it to finishstatic MessageDialogButton
MessageDialog.showMessageDialog
(WindowBasedTextGUI textGUI, String title, String text, MessageDialogButton... buttons) Shortcut for quickly displaying a message boxstatic BigInteger
TextInputDialog.showNumberDialog
(WindowBasedTextGUI textGUI, String title, String description, String initialContent) Shortcut for quickly showing aTextInputDialog
that only accepts numbersstatic String
TextInputDialog.showPasswordDialog
(WindowBasedTextGUI textGUI, String title, String description, String initialContent) Shortcut for quickly showing aTextInputDialog
with password masking