java.lang.Object
com.googlecode.lanterna.gui2.WindowList
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
cycleActiveWindow
(boolean reverse) Switches the active window by cyclically shuffling the window list.private Window
getNextWindow
(boolean reverse, Window window) boolean
void
moveToBottom
(Window window) void
boolean
removeWindow
(Window window) Removes the window from this WindowList.void
setActiveWindow
(Window activeWindow)
-
Field Details
-
windows
-
stableOrderingOfWindows
-
activeWindow
-
hadWindowAtSomePoint
private boolean hadWindowAtSomePoint
-
-
Constructor Details
-
WindowList
public WindowList()
-
-
Method Details
-
getWindowsInZOrder
-
getWindowsInStableOrder
-
setActiveWindow
-
getActiveWindow
-
addWindow
-
removeWindow
Removes the window from this WindowList.- Returns:
- true if this WindowList contained the specified Window
-
isHadWindowAtSomePoint
public boolean isHadWindowAtSomePoint() -
moveToTop
-
moveToBottom
-
cycleActiveWindow
public void cycleActiveWindow(boolean reverse) Switches the active window by cyclically shuffling the window list. Ifreverse
parameter isfalse
then the current top window is placed at the bottom of the stack and the window immediately behind it is the new top. Ifreverse
is set totrue
then the window at the bottom of the stack is moved up to the front and the previous top window will be immediately below it- Parameters:
reverse
- Direction to cycle through the windows
-
getNextWindow
-