- java.lang.Object
-
- com.googlecode.lanterna.gui2.AbstractBasePane<Window>
-
- com.googlecode.lanterna.gui2.AbstractWindow
-
- com.googlecode.lanterna.gui2.BasicWindow
-
- com.googlecode.lanterna.gui2.ComboBox.PopupWindow
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.googlecode.lanterna.gui2.AbstractBasePane
AbstractBasePane.ContentHolder
-
Nested classes/interfaces inherited from interface com.googlecode.lanterna.gui2.Window
Window.Hint
-
-
Field Summary
Fields Modifier and Type Field Description private ActionListBoxlistBox-
Fields inherited from class com.googlecode.lanterna.gui2.AbstractBasePane
contentHolder, interactableLookupMap
-
-
Constructor Summary
Constructors Constructor Description PopupWindow()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes the window, which will remove it from the GUIThemegetTheme()Returns the text GUIThemeassociated with this base pane/window.booleanhandleInput(KeyStroke keyStroke)Called by the GUI system to delegate a keyboard input event.-
Methods inherited from class com.googlecode.lanterna.gui2.AbstractWindow
addWindowListener, draw, fromGlobal, fromGlobalToContentRelative, fromGlobalToDecoratedRelative, getDecoratedSize, getHints, getPosition, getPostRenderer, getPreferredSize, getSize, getTextGUI, getTitle, isVisible, removeWindowListener, self, setCloseWindowWithEscape, setContentOffset, setDecoratedSize, setFixedSize, setHints, setPosition, setSize, setTextGUI, setTitle, setVisible, setWindowPostRenderer, toGlobal, toGlobalFromContentRelative, toGlobalFromDecoratedRelative, waitUntilClosed
-
Methods inherited from class com.googlecode.lanterna.gui2.AbstractBasePane
addBasePaneListener, getBasePaneListeners, getComponent, getCursorPosition, getFocusedInteractable, getMenuBar, invalidate, isInvalid, removeBasePaneListener, setComponent, setEnableDirectionBasedMovements, setFocusedInteractable, setFocusedInteractable, setMenuBar, setStrictFocusChange, setTheme
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.googlecode.lanterna.gui2.BasePane
setEnableDirectionBasedMovements, setStrictFocusChange, setTheme
-
Methods inherited from interface com.googlecode.lanterna.gui2.Window
getBounds, getComponent, getCursorPosition, getFocusedInteractable, getMenuBar, invalidate, isInvalid, setComponent, setFocusedInteractable, setMenuBar
-
-
-
-
Field Detail
-
listBox
private final ActionListBox listBox
-
-
Method Detail
-
close
public void close()
Description copied from interface:WindowCloses the window, which will remove it from the GUI- Specified by:
closein interfaceWindow- Overrides:
closein classAbstractWindow
-
getTheme
public Theme getTheme()
Description copied from interface:BasePaneReturns the text GUIThemeassociated with this base pane/window. This is either coming from theTextGUIthis object is associated with, the theme set as the override throughBasePane.setTheme(Theme)ornullif this base pane/window isn't added to anyTextGUIand doesn't have any override.
-
handleInput
public boolean handleInput(KeyStroke keyStroke)
Description copied from interface:BasePaneCalled by the GUI system to delegate a keyboard input event. The root container will decide what to do with this input, usually sending it to one of its sub-components, but if it isn't able to find any handler for this input it should returnfalseso that the GUI system can take further decisions on what to do with it.- Specified by:
handleInputin interfaceBasePane- Specified by:
handleInputin interfaceWindow- Overrides:
handleInputin classAbstractWindow- Parameters:
keyStroke- Keyboard input- Returns:
trueIf the root container could handle the input, false otherwise
-
-