|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.infonode.docking.util.DeveloperUtil
public class DeveloperUtil
Utility methods to make certain tasks easier during the development of an application using IDW.
Note: These methods might be changed/removed or not be compatible with future versions of IDW.
Field Summary | |
---|---|
private static java.lang.String |
INDENT_STRING
|
Constructor Summary | |
---|---|
DeveloperUtil()
|
Method Summary | |
---|---|
static javax.swing.JFrame |
createWindowLayoutFrame(java.lang.String title,
DockingWindow window)
Creates a JFrame with a text area that shows the layout of the given window as pseudo-like Java code, i.e. the layout retrieved by getWindowLayoutAsString(DockingWindow) . |
private static java.lang.String |
getDockingWindowLayout(DockingWindow window,
int depth)
|
private static java.lang.String |
getRootWindowLayout(RootWindow window,
int depth)
|
private static java.lang.String |
getSplitWindowLayout(SplitWindow window,
int depth)
|
private static java.lang.String |
getTabWindowLayout(TabWindow window,
int depth)
|
private static java.lang.String |
getViewLayout(View view,
int depth)
|
static java.lang.String |
getWindowLayoutAsString(DockingWindow window)
Returns a Java code pseudo-like string with information about the current window layout in a docking window. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static java.lang.String INDENT_STRING
Constructor Detail |
---|
public DeveloperUtil()
Method Detail |
---|
public static java.lang.String getWindowLayoutAsString(DockingWindow window)
Returns a Java code pseudo-like string with information about the current window layout in a docking window.
If the given window is a root window a complete layout is returned i.e. windows inside the root window, windows on window bars and floating windows. This is useful when for example creating a default layout. Just add all the views to the root window, drag them around to create a nice layout and the call this function to retrieve the layout as a string.
Note: The returned string contains pseudo-like Java code. All views in the layout are called View: "title" - view class.
Note: The method might be changed/removed or not be compatible with future versions of IDW.
window
- the docking window to retrieve layout for
public static javax.swing.JFrame createWindowLayoutFrame(java.lang.String title, DockingWindow window)
Creates a JFrame with a text area that shows the layout of the given window as pseudo-like Java code,
i.e. the layout retrieved by getWindowLayoutAsString(DockingWindow)
. The frame
also has a button that when clicked gets the current layout from the window.
The frame is useful when designing window layouts in an application. Just create a frame and use your root window as window. Drag around your views, press the "Get Layout" button and you'll se your layout in the text area.
Note: The method might be changed/removed or not be compatible with future versions of IDW.
title
- frame titlewindow
- the docking window to retrieve layout for
private static java.lang.String getDockingWindowLayout(DockingWindow window, int depth)
private static java.lang.String getRootWindowLayout(RootWindow window, int depth)
private static java.lang.String getTabWindowLayout(TabWindow window, int depth)
private static java.lang.String getSplitWindowLayout(SplitWindow window, int depth)
private static java.lang.String getViewLayout(View view, int depth)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |