Interface WindowShell

    • Method Detail

      • setTitle

        WindowShell setTitle​(String title)
        The the window title.
        Parameters:
        title - Title to set.
        Returns:
        This object for chaining.
      • setIcon

        WindowShell setIcon​(String file)
        Set the window icon.
        Parameters:
        file - Icon file path.
        Returns:
        This object for chaining.
      • setBackground

        WindowShell setBackground​(Color color)
        Set the window background color.
        Parameters:
        color - Color to use.
        Returns:
        This object for chaining.
      • setBackground

        WindowShell setBackground​(String file)
        Set the window background image.
        Parameters:
        file - Background image file.
        Returns:
        This object for chaining.
      • setSize

        WindowShell setSize​(int width,
                            int height)
        Set the window size.
        Parameters:
        width - Window width.
        height - Window height.
        Returns:
        This object for chaining.
      • getSize

        ScreenSize getSize()
        Provide the window size.
        Returns:
        The window size.
      • getMonitorSize

        ScreenSize getMonitorSize()
        Provide the monitor size.
        Returns:
        The monitor size.
      • open

        void open()
        Open the window.
      • close

        void close()
        Close the window.
      • update

        void update()
        Check for an event and sleep if none.
      • checkForEvent

        void checkForEvent()
        Check for an event without sleeping.
      • createMessageBox

        WindowModal createMessageBox()
        Create a new message modal window.
        Returns:
        The created modal window.
      • createMessageButtonBox

        WindowModal createMessageButtonBox()
        Create a new message modal window with a button for confirmation.
        Returns:
        The created modal window.
      • createTextArea

        WindowTextArea createTextArea()
        Create a new text area widget.
        Returns:
        The created text area.
      • createTextLine

        WindowTextLine createTextLine()
        Create a new text line widget.
        Returns:
        The created text line.
      • createButton

        WindowButton createButton()
        Create a new button widget.
        Returns:
        The created button.
      • createImage

        WindowImage createImage​(String image)
        Create a new image widget.
        Returns:
        The created image.
      • exit

        default void exit()
      • requestFocus

        default void requestFocus()