Class AbstractUserInterface

    • Constructor Detail

      • AbstractUserInterface

        public AbstractUserInterface()
    • 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
      • 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
      • createUI

        protected void createUI()
        Subclasses override to control UI creation. They must also call super.createUI() after creating the ApplicationFrame but before showing it (assuming the UI has an ApplicationFrame).