Class HeadlessUI

    • Constructor Detail

      • HeadlessUI

        public HeadlessUI()
    • Method Detail

      • show

        public void show()
        Description copied from interface: UserInterface
        Shows the UI.

        Note that the actual UI components are created lazily when this method is called, rather then upon the UI's initial construction.

        Specified by:
        show in interface UserInterface
      • isVisible

        public boolean isVisible()
        Description copied from interface: UserInterface
        Whether this UI is visible onscreen.
        Specified by:
        isVisible in interface UserInterface
      • show

        public void show​(String name,
                         Object o)
        Description copied from interface: UserInterface
        Shows the object onscreen using an appropriate UI widget.
        Specified by:
        show in interface UserInterface
        Parameters:
        name - The name to use when displaying the object.
        o - The object to be displayed.
      • show

        public void show​(Display<?> display)
        Description copied from interface: UserInterface
        Shows the display onscreen using an appropriate UI widget.
        Specified by:
        show in interface UserInterface
      • dialogPrompt

        public DialogPrompt dialogPrompt​(String message,
                                         String title,
                                         DialogPrompt.MessageType messageType,
                                         DialogPrompt.OptionType optionType)
        Description copied from interface: UserInterface
        Creates a dialog prompter.
        Specified by:
        dialogPrompt in interface UserInterface
        Parameters:
        message - The message in the dialog itself.
        title - The title of the dialog.
        messageType - The type of message. This typically is rendered as an icon next to the message. For example, DialogPrompt.MessageType.WARNING_MESSAGE typically appears as an exclamation point.
        optionType - The choices available when dismissing the dialog. These choices are typically rendered as buttons for the user to click.
        Returns:
        The newly created DialogPrompt object, or null if not applicable.
      • showContextMenu

        public void showContextMenu​(String menuRoot,
                                    Display<?> display,
                                    int x,
                                    int y)
        Description copied from interface: UserInterface
        Displays a popup context menu for the given display at the specified position.
        Specified by:
        showContextMenu in interface UserInterface
      • saveLocation

        public void saveLocation()
        Description copied from interface: UserInterface
        Persists the application frame's current location.
        Specified by:
        saveLocation in interface UserInterface
      • restoreLocation

        public void restoreLocation()
        Description copied from interface: UserInterface
        Restores the application frame's current location.
        Specified by:
        restoreLocation in interface UserInterface
      • requiresEDT

        public boolean requiresEDT()
        Description copied from interface: UserInterface
        Returns true if this UI requires the EDT.
        Specified by:
        requiresEDT in interface UserInterface
      • dispose

        public void dispose()
        Description copied from interface: Disposable
        Performs any needed cleanup of the object's services, in preparation for the object being retired (e.g., to make garbage collection possible).
        Specified by:
        dispose in interface Disposable