|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.swing.AbstractLayoutPersistence com.jidesoft.docking.DockingLayoutLoader
public class DockingLayoutLoader
DockingLayoutLoader
is a utility that loads a layout produced by docking framework without actually
loading it into a DockingManager. You can use it to find out what dockable frames are in the layout without loading
it.
DockingLayoutLoader loader = new DockingLayoutLoader();
loader.setProfileKey("jidesoft");
loader.loadLayoutData();
After that, you can call loader's getContext() to find out what dockable frames are in the layout and what initial
states they are in.
Field Summary |
---|
Fields inherited from class com.jidesoft.swing.AbstractLayoutPersistence |
---|
_layoutDirectory, _loadingLayoutData, _profileKey, _useFrameBounds, _useFrameBoundsSet, _useFrameState, _useFrameStateSet, _usePref, _version, DEFAULT_PROFILE_NAME, LAYOUT_COUNT_STRING, LAYOUT_POSTFIX, MAX_PREF_BYTE_ARRAY_LENGTH, PROPERTY_PROFILE_KEY, PROPERTY_USE_PREF, PROPERTY_VERSION, V2004, V2005_09 |
Fields inherited from interface com.jidesoft.swing.LayoutPersistence |
---|
ATTRIBUTE_PERSISTENCE_NAME, NODE_LAYOUT_PERSISTENCE |
Constructor Summary | |
---|---|
DockingLayoutLoader()
|
Method Summary | |
---|---|
void |
beginLoadLayoutData()
Starts a process to add/remove frame or dockable bar without showing on screen immediately. |
Rectangle |
getBounds()
|
Map<String,DockContext> |
getContexts()
|
int |
getState()
|
boolean |
isLoadDataSuccessful()
Checks if the loadLayoutFrom(InputStream in) method load successfully from the input stream (false indicates that it called resetToDefault to load the layout.) This method can be called immediately after the loadLayoutFrom(InputStream in) call to determine if a specific LayoutPersistence was forced to call resetToDefault. |
void |
loadInitialLayout(Document layoutDocument)
Load initial layout from an initial layout file designed by Visual Designer. |
boolean |
loadLayoutFrom(Document document)
Load layout data from an Node that specified as node parameter. |
boolean |
loadLayoutFrom(InputStream in)
Load layout data from an InputStream that specified as in parameter. |
static void |
main(String[] args)
|
void |
resetToDefault()
Resets layout. |
void |
saveLayoutTo(Document document)
Save layout data to a Document that specified as document parameter. |
void |
saveLayoutTo(OutputStream out)
Save layout data to an OutputStream that specified as out parameter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DockingLayoutLoader()
Method Detail |
---|
public void loadInitialLayout(Document layoutDocument)
LayoutPersistence
layoutDocument
- the Document contains an initial layout.public boolean loadLayoutFrom(Document document)
LayoutPersistence
Node
that specified as node
parameter. If any exception
happens during the read, it will call resetLayout() to use default layout.
document
- the Document where the layout data will be read from
public boolean loadLayoutFrom(InputStream in)
LayoutPersistence
InputStream
that specified as in
parameter. If any exception
happens during the read, it will call resetLayout() to use default layout.
in
- the InputStream where the layout data will be read from.
public boolean isLoadDataSuccessful()
LayoutPersistence
public void saveLayoutTo(Document document) throws ParserConfigurationException
LayoutPersistence
document
parameter.
document
- the Document where the layout data will be written to
ParserConfigurationException
- if any parser exception happens when writing to the document
.public void saveLayoutTo(OutputStream out) throws IOException
LayoutPersistence
out
parameter.
out
- the OutputStream where the layout data will be written to.
IOException
- if any IO exception happens when writing to the OutputStream
.public void resetToDefault()
LayoutPersistence
public void beginLoadLayoutData()
LayoutPersistence
public Rectangle getBounds()
public int getState()
public Map<String,DockContext> getContexts()
public static void main(String[] args)
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |