Package xtwm.ui
Class VirtualDesktop
- java.lang.Object
-
- xtwm.ui.VirtualDesktop
-
public class VirtualDesktop extends java.lang.Object
VirtualDesktop contains a list of windows associated with it.
-
-
Constructor Summary
Constructors Constructor Description VirtualDesktop(TApplication application)
Public constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addWindow(TWindow window)
Add a window to this desktop.TWidget
getActivePanel()
Obtain the active panel for this desktop.Desktop
getDesktop()
Get the Desktop instance.java.util.List<TWindow>
getWindows()
Get the windows on this desktop.boolean
hasWindow(TWindow window)
See if a window is associated with this desktop.void
hide()
Hide all windows on this desktop.void
removeWindow(TWindow window)
Remove a window from this desktop.void
show()
Show all windows on this desktop.
-
-
-
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
-
-