Package | Description |
---|---|
com.googlecode.lanterna.gui2 | |
com.googlecode.lanterna.gui2.dialogs |
Modifier and Type | Class and Description |
---|---|
class |
AbstractWindow
Abstract Window has most of the code requiring for a window to function, all concrete window implementations extends
from this in one way or another.
|
class |
BasicWindow
Simple AbstractWindow implementation that you can use as a building block when creating new windows without having
to create new classes.
|
Modifier and Type | Method and Description |
---|---|
Window |
WindowBasedTextGUI.getActiveWindow()
Returns the window which the TextGUI considers the active one at the time of the method call.
|
Window |
MultiWindowTextGUI.getActiveWindow() |
Modifier and Type | Method and Description |
---|---|
Collection<Window> |
WindowBasedTextGUI.getWindows()
Returns a list of all windows currently in the TextGUI.
|
Collection<Window> |
MultiWindowTextGUI.getWindows() |
Modifier and Type | Method and Description |
---|---|
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.addWindow(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.addWindowAndWait(Window window) |
TextGUIGraphics |
WindowDecorationRenderer.draw(TextGUI 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
|
TextGUIGraphics |
EmptyWindowDecorationRenderer.draw(TextGUI textGUI,
TextGUIGraphics graphics,
Window window) |
TextGUIGraphics |
DefaultWindowDecorationRenderer.draw(TextGUI textGUI,
TextGUIGraphics graphics,
Window window) |
TerminalSize |
WindowDecorationRenderer.getDecoratedSize(Window window,
TerminalSize contentAreaSize)
Retrieves the full size of the window, including all window decorations, given all components inside the window.
|
TerminalSize |
EmptyWindowDecorationRenderer.getDecoratedSize(Window window,
TerminalSize contentAreaSize) |
TerminalSize |
DefaultWindowDecorationRenderer.getDecoratedSize(Window window,
TerminalSize contentAreaSize) |
TerminalPosition |
WindowDecorationRenderer.getOffset(Window window)
Returns how much to step right and down from the top left position of the window decorations to the top left
position of the actual window
|
TerminalPosition |
EmptyWindowDecorationRenderer.getOffset(Window window) |
TerminalPosition |
DefaultWindowDecorationRenderer.getOffset(Window window) |
WindowDecorationRenderer |
WindowManager.getWindowDecorationRenderer(Window window)
Returns the
WindowDecorationRenderer for a particular window |
WindowDecorationRenderer |
DefaultWindowManager.getWindowDecorationRenderer(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.moveToTop(Window window) |
void |
WindowManager.onAdded(WindowBasedTextGUI textGUI,
Window window,
List<Window> allWindows)
Called whenever a window is added to the
WindowBasedTextGUI . |
void |
DefaultWindowManager.onAdded(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.onRemoved(WindowBasedTextGUI textGUI,
Window window,
List<Window> allWindows) |
void |
WindowShadowRenderer.postRender(TextGraphics textGraphics,
TextGUI textGUI,
Window window) |
void |
WindowPostRenderer.postRender(TextGraphics textGraphics,
TextGUI textGUI,
Window window)
Called by DefaultWindowTextGUI immediately after a Window has been rendered, to let you do post-processing.
|
protected void |
DefaultWindowManager.prepareWindow(TerminalSize screenSize,
Window window)
Called by
DefaultWindowManager when iterating through all windows to decide their size and position. |
WindowBasedTextGUI |
WindowBasedTextGUI.removeWindow(Window window)
Removes a window from the TextGUI.
|
WindowBasedTextGUI |
MultiWindowTextGUI.removeWindow(Window window) |
WindowBasedTextGUI |
WindowBasedTextGUI.setActiveWindow(Window activeWindow)
Selects a particular window to be considered 'active' and receive all input events
|
MultiWindowTextGUI |
MultiWindowTextGUI.setActiveWindow(Window activeWindow) |
void |
WindowBasedTextGUI.waitForWindowToClose(Window abstractWindow)
Waits for the specified window to be closed
|
void |
MultiWindowTextGUI.waitForWindowToClose(Window window) |
Modifier and Type | Method and Description |
---|---|
void |
WindowManager.onAdded(WindowBasedTextGUI textGUI,
Window window,
List<Window> allWindows)
Called whenever a window is added to the
WindowBasedTextGUI . |
void |
DefaultWindowManager.onAdded(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.onRemoved(WindowBasedTextGUI textGUI,
Window window,
List<Window> allWindows) |
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 |
DefaultWindowManager.prepareWindows(WindowBasedTextGUI textGUI,
List<Window> allWindows,
TerminalSize screenSize) |
Modifier and Type | Class and Description |
---|---|
class |
ActionListDialog
Dialog containing a multiple item action list box
|
class |
DialogWindow
Thin layer on top of the
AbstractWindow class that automatically sets properties and hints to the window to
make it act more like a modal dialog window |
class |
FileDialog
Dialog that allows the user to iterate the file system and pick file to open/save
|
class |
ListSelectDialog<T>
Dialog that allows the user to select an item from a list
|
class |
MessageDialog
Simple message dialog that displays a message and has optional selection/confirmation buttons
|
class |
TextInputDialog
TextInputDialog is a modal text input dialog that prompts the user to enter a text string. |
class |
WaitingDialog
Dialog that displays a text message, an optional spinning indicator and an optional progress bar.
|
Copyright © 2016. All rights reserved.