public final class DockingUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
addWindow(DockingWindow window,
RootWindow rootWindow)
Adds a window inside a root window.
|
static RootWindow |
createHeavyweightSupportedRootWindow(AbstractViewMap views,
boolean createWindowPopupMenu)
Creates a root window with support for view serialization, popup menues and support for heavy
weight components inside the views.
|
static RootWindow |
createHeavyweightSupportedRootWindow(AbstractViewMap views,
ViewSerializer viewSerializer,
boolean createWindowPopupMenu)
Creates a root window with support for view serialization, popup menues and support for
heavyweight components inside the views.
|
static RootWindow |
createRootWindow(AbstractViewMap views,
boolean createWindowPopupMenu)
Creates a root window with support for view serialization and popup menues.
|
static RootWindow |
createRootWindow(AbstractViewMap views,
ViewSerializer viewSerializer,
boolean createWindowPopupMenu)
Creates a root window with support for view serialization and popup menues.
|
static FloatingWindow |
getFloatingWindowFor(DockingWindow window)
Returns the
FloatingWindow for a window if the window is undocked. |
static TabWindow |
getTabWindowFor(DockingWindow window)
Returns the
TabWindow for a window. |
static boolean |
isAncestor(DockingWindow ancestor,
DockingWindow child)
Returns true if ancestor is an ancestor of child or the windows are the same.
|
public static RootWindow createRootWindow(AbstractViewMap views, boolean createWindowPopupMenu)
views
- the views that can be shown inside the root windowcreateWindowPopupMenu
- true if a standard window popup menu should be createdpublic static RootWindow createHeavyweightSupportedRootWindow(AbstractViewMap views, boolean createWindowPopupMenu)
Creates a root window with support for view serialization, popup menues and support for heavy weight components inside the views.
All the views are added to a tab window which is placed in the root window.
views
- the views that can be shown inside the root windowcreateWindowPopupMenu
- true if a standard window popup menu should be createdpublic static RootWindow createRootWindow(AbstractViewMap views, ViewSerializer viewSerializer, boolean createWindowPopupMenu)
views
- contains all the static viewsviewSerializer
- the view serializer used in the created RootWindow
createWindowPopupMenu
- true if a standard window popup menu should be createdpublic static RootWindow createHeavyweightSupportedRootWindow(AbstractViewMap views, ViewSerializer viewSerializer, boolean createWindowPopupMenu)
Creates a root window with support for view serialization, popup menues and support for heavyweight components inside the views.
All the views are added to a tab window which is placed in the root window.
views
- contains all the static viewsviewSerializer
- the view serializer used in the created RootWindow
createWindowPopupMenu
- true if a standard window popup menu should be createdpublic static boolean isAncestor(DockingWindow ancestor, DockingWindow child)
ancestor
- the ancestor windowchild
- the child windowpublic static void addWindow(DockingWindow window, RootWindow rootWindow)
Adds a window inside a root window. The following methods are tried in order:
window
- the window to addrootWindow
- the root window in which to add itpublic static TabWindow getTabWindowFor(DockingWindow window)
TabWindow
for a window. This is either the window itself or the parent window.window
- the windowTabWindow
for the windowpublic static FloatingWindow getFloatingWindowFor(DockingWindow window)
FloatingWindow
for a window if the window is undocked.window
- the windowFloatingWindow
for the window or null if the window is not undocked