Package xtwm.ui

Class VirtualDesktop


  • public class VirtualDesktop
    extends java.lang.Object
    VirtualDesktop contains a list of windows associated with it.
    • Constructor Detail

      • VirtualDesktop

        public VirtualDesktop​(TApplication application)
        Public constructor.
        Parameters:
        application - TApplication that manages the windows on this desktop
    • Method Detail

      • hide

        public void hide()
        Hide all windows on this desktop.
      • show

        public void show()
        Show all windows on this desktop.
      • getWindows

        public java.util.List<TWindow> getWindows()
        Get the windows on this desktop.
        Returns:
        the windows
      • addWindow

        public void addWindow​(TWindow window)
        Add a window to this desktop.
        Parameters:
        window - the window to add
      • removeWindow

        public void removeWindow​(TWindow window)
        Remove a window from this desktop.
        Parameters:
        window - the window to remove
      • hasWindow

        public boolean hasWindow​(TWindow window)
        See if a window is associated with this desktop.
        Parameters:
        window - the window to check
        Returns:
        true if this window is on this desktop
      • getDesktop

        public final Desktop getDesktop()
        Get the Desktop instance.
        Returns:
        the desktop, or null if it is not set
      • getActivePanel

        public TWidget getActivePanel()
        Obtain the active panel for this desktop.
        Returns:
        the panel, or the desktop itself if it has no panels