Class ComboBox.PopupWindow

    • Constructor Detail

      • PopupWindow

        public PopupWindow()
    • Method Detail

      • close

        public void close()
        Description copied from interface: Window
        Closes the window, which will remove it from the GUI
        Specified by:
        close in interface Window
        Overrides:
        close in class AbstractWindow
      • getTheme

        public Theme getTheme()
        Description copied from interface: BasePane
        Returns the text GUI Theme associated with this base pane/window. This is either coming from the TextGUI this object is associated with, the theme set as the override through BasePane.setTheme(Theme) or null if this base pane/window isn't added to any TextGUI and doesn't have any override.
        Specified by:
        getTheme in interface BasePane
        Overrides:
        getTheme in class AbstractBasePane<Window>
        Returns:
        The Theme this base pane/window is expected to use when drawing the contents
      • handleInput

        public boolean handleInput​(KeyStroke keyStroke)
        Description copied from interface: BasePane
        Called 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 return false so that the GUI system can take further decisions on what to do with it.
        Specified by:
        handleInput in interface BasePane
        Specified by:
        handleInput in interface Window
        Overrides:
        handleInput in class AbstractWindow
        Parameters:
        keyStroke - Keyboard input
        Returns:
        true If the root container could handle the input, false otherwise