|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.infonode.docking.util.DockingUtil
public final class DockingUtil
Class that contains utility methods for docking windows.
| Constructor Summary | |
|---|---|
private |
DockingUtil()
|
| Method Summary | |
|---|---|
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. |
private static RootWindow |
createRootWindow(boolean heavyweightSupport,
AbstractViewMap views,
ViewSerializer viewSerializer,
boolean createWindowPopupMenu)
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
private DockingUtil()
| Method Detail |
|---|
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 created
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.
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 created
public static RootWindow createRootWindow(AbstractViewMap views,
ViewSerializer viewSerializer,
boolean createWindowPopupMenu)
views - contains all the static viewsviewSerializer - the view serializer used in the created RootWindowcreateWindowPopupMenu - true if a standard window popup menu should be created
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.
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 RootWindowcreateWindowPopupMenu - true if a standard window popup menu should be created
private static RootWindow createRootWindow(boolean heavyweightSupport,
AbstractViewMap views,
ViewSerializer viewSerializer,
boolean createWindowPopupMenu)
public static boolean isAncestor(DockingWindow ancestor,
DockingWindow child)
ancestor - the ancestor windowchild - the child window
public 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 window
TabWindow for the windowpublic static FloatingWindow getFloatingWindowFor(DockingWindow window)
FloatingWindow for a window if the window is undocked.
window - the window
FloatingWindow for the window or null if the window is not undocked
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||