Class EnhancedWindow<T>

  • All Implemented Interfaces:
    HasPosition2, HasPositionAndDimension2, AutoCloseable

    public class EnhancedWindow<T>
    extends Window
    Helper to position, draw and manage virtual windows in the UI. EnhancedWindow holds a state to switch between different representations and also can persist the window position. I recommend to check for code examples in shipped groovy code to learn more about the usage of this helper and how to integrate in client modules.
    • Constructor Detail

      • EnhancedWindow

        public EnhancedWindow​(String name,
                              boolean draggable,
                              boolean persistentPosition,
                              T initialState,
                              Function<T,​Area2> areaFunction)
    • Method Detail

      • resetWindows

        public static void resetWindows()
      • getName

        public String getName()
      • getState

        public T getState()
      • setState

        public void setState​(T state)
      • reset

        public void reset()
        Overrides:
        reset in class Window