|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.ibm.able.editor.AbleEnvironment
This class is used to save/restore the Able Editor environment Which includes, viewObject positions and Inspector windows and their settings An Agent is saved to agentFileName.ser, The corresponding environment is serialized into agentFileName.env
| Field Summary | |
|---|---|
protected static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
AbleEnvironment()
|
|
| Method Summary | |
|---|---|
void |
addInspector(AbleInspector insp)
|
protected void |
findViewObjectLocations(javax.swing.tree.DefaultMutableTreeNode root,
java.util.HashMap pointMap)
Walk though the treeview and save the viewobject locations in a Vector |
AbleInspectorContext[] |
getInspectorContexts()
|
java.util.Vector |
getInspectors()
|
void |
removeInspector(AbleInspector insp)
|
static AbleEnvironment |
restoreFromFile(java.lang.String fileName)
Restore the object from the specified serialized file. |
void |
restoreViewObjectLocations(javax.swing.tree.DefaultMutableTreeNode root)
Pass in the tree view and restore the corresponding viewObject locations |
protected void |
restoreViewObjectLocations(javax.swing.tree.DefaultMutableTreeNode root,
java.util.HashMap pointMap)
Walk though the treeview and set the viewobject locations |
void |
saveToFile(java.lang.String fileName)
Save the object (serialize it) to the specified file name. |
void |
setViewObjectLocations(javax.swing.tree.DefaultMutableTreeNode root)
Pass in the tree view and build up a Vector of viewObject locations |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final long serialVersionUID
| Constructor Detail |
public AbleEnvironment()
| Method Detail |
public void addInspector(AbleInspector insp)
public void removeInspector(AbleInspector insp)
public java.util.Vector getInspectors()
public void setViewObjectLocations(javax.swing.tree.DefaultMutableTreeNode root)
root - The root node of the tree view
protected void findViewObjectLocations(javax.swing.tree.DefaultMutableTreeNode root,
java.util.HashMap pointMap)
public void restoreViewObjectLocations(javax.swing.tree.DefaultMutableTreeNode root)
root - The root node of the tree view
protected void restoreViewObjectLocations(javax.swing.tree.DefaultMutableTreeNode root,
java.util.HashMap pointMap)
public void saveToFile(java.lang.String fileName)
throws java.io.IOException
fileName - The file name and path.
java.io.IOException
public static AbleEnvironment restoreFromFile(java.lang.String fileName)
throws java.io.IOException,
java.lang.ClassNotFoundException
fileName - The file name and path containing the object.
java.io.IOException - Any IO exception.
java.lang.ClassNotFoundException - If class file was not found.public AbleInspectorContext[] getInspectorContexts()
|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||