Class RegisteredDisplaysHandler

    • Constructor Detail

      • RegisteredDisplaysHandler

        public RegisteredDisplaysHandler​(FlowPanel owner)
        Initializes the tab handler
        Parameters:
        owner - the owning panel
    • Method Detail

      • update

        protected void update​(boolean show)
        Notifies the RegisteredDisplaysTab instance of a change.
        Parameters:
        show - whether to show the tab or leave as is
      • register

        public AbstractDisplay register​(Class cls,
                                        String name,
                                        AbstractDisplay panel)
        Registers a display.
        Parameters:
        cls - the class to register the display for
        name - the name of the display
        panel - the AbstractDisplay instance
        Returns:
        the previously registered display, if any
      • deregister

        public AbstractDisplay deregister​(Class cls,
                                          String name)
        Deregisters a display.
        Parameters:
        cls - the class to register the display for
        name - the name of the display
        Returns:
        the deregistered display, if any
      • clear

        public void clear()
        Removes all registered displays.
      • hasDisplays

        public boolean hasDisplays()
        Returns whether there are any registered displays open.
        Returns:
        true if at least one open