| java.lang.Object net.infonode.docking.util.DockingUtil
DockingUtil | final public class DockingUtil (Code) | | Class that contains utility methods for docking windows.
author: $Author: jesper $ version: $Revision: 1.25 $ |
Method Summary | |
public static void | addWindow(DockingWindow window, RootWindow rootWindow)
Adds a window inside a root window. | public 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. | public 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. | public static RootWindow | createRootWindow(AbstractViewMap views, boolean createWindowPopupMenu) Creates a root window with support for view serialization and popup menues. | public static RootWindow | createRootWindow(AbstractViewMap views, ViewSerializer viewSerializer, boolean createWindowPopupMenu) Creates a root window with support for view serialization and popup menues. | public static FloatingWindow | getFloatingWindowFor(DockingWindow window) Returns the
FloatingWindow for a window if the window is undocked. | public static TabWindow | getTabWindowFor(DockingWindow window) Returns the
TabWindow for a window. | public static boolean | isAncestor(DockingWindow ancestor, DockingWindow child) Returns true if ancestor is an ancestor of child or the windows are the same. |
addWindow | public static void addWindow(DockingWindow window, RootWindow rootWindow)(Code) | |
Adds a window inside a root window. The following methods are tried in order:
- If the window already is added inside the root window nothing happens.
- The window is restored to it's last location if that location is inside the root window.
- The window is added inside the root window.
Parameters: window - the window to add Parameters: rootWindow - the root window in which to add it since: IDW 1.1.0 |
createHeavyweightSupportedRootWindow | public static RootWindow createHeavyweightSupportedRootWindow(AbstractViewMap views, boolean createWindowPopupMenu)(Code) | |
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.
Parameters: views - the views that can be shown inside the root window Parameters: createWindowPopupMenu - true if a standard window popup menu should be created the created root window since: IDW 1.4.0 |
createHeavyweightSupportedRootWindow | public static RootWindow createHeavyweightSupportedRootWindow(AbstractViewMap views, ViewSerializer viewSerializer, boolean createWindowPopupMenu)(Code) | |
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.
Parameters: views - contains all the static views Parameters: viewSerializer - the view serializer used in the created RootWindow Parameters: createWindowPopupMenu - true if a standard window popup menu should be created the created root window since: IDW 1.4.0 |
createRootWindow | public static RootWindow createRootWindow(AbstractViewMap views, boolean createWindowPopupMenu)(Code) | | Creates a root window with support for view serialization and popup menues.
All the views are added to a tab window which is placed in the root window.
Parameters: views - the views that can be shown inside the root window Parameters: createWindowPopupMenu - true if a standard window popup menu should be created the created root window |
createRootWindow | public static RootWindow createRootWindow(AbstractViewMap views, ViewSerializer viewSerializer, boolean createWindowPopupMenu)(Code) | | Creates a root window with support for view serialization and popup menues.
All the views are added to a tab window which is placed in the root window.
Parameters: views - contains all the static views Parameters: viewSerializer - the view serializer used in the created RootWindow Parameters: createWindowPopupMenu - true if a standard window popup menu should be created the created root window |
getTabWindowFor | public static TabWindow getTabWindowFor(DockingWindow window)(Code) | | Returns the
TabWindow for a window. This is either the window itself or the parent window.
Parameters: window - the window the TabWindow for the window since: IDW 1.3.0 |
isAncestor | public static boolean isAncestor(DockingWindow ancestor, DockingWindow child)(Code) | | Returns true if ancestor is an ancestor of child or the windows are the same.
Parameters: ancestor - the ancestor window Parameters: child - the child window true if ancestor is an ancestor of child or the windows are the same |
|
|