com.ibm.able.editor
Class AbleEnvironment
java.lang.Object
|
+--com.ibm.able.editor.AbleEnvironment
- All Implemented Interfaces:
- java.io.Serializable
- public class AbleEnvironment
- extends java.lang.Object
- implements java.io.Serializable
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
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
protected static final long serialVersionUID
AbleEnvironment
public AbleEnvironment()
addInspector
public void addInspector(AbleInspector insp)
removeInspector
public void removeInspector(AbleInspector insp)
getInspectors
public java.util.Vector getInspectors()
setViewObjectLocations
public void setViewObjectLocations(javax.swing.tree.DefaultMutableTreeNode root)
- Pass in the tree view and build up a Vector of viewObject locations
- Parameters:
root
- The root node of the tree view
findViewObjectLocations
protected void findViewObjectLocations(javax.swing.tree.DefaultMutableTreeNode root,
java.util.HashMap pointMap)
- Walk though the treeview and save the viewobject locations in a Vector
restoreViewObjectLocations
public void restoreViewObjectLocations(javax.swing.tree.DefaultMutableTreeNode root)
- Pass in the tree view and restore the corresponding viewObject locations
- Parameters:
root
- The root node of the tree view
restoreViewObjectLocations
protected void restoreViewObjectLocations(javax.swing.tree.DefaultMutableTreeNode root,
java.util.HashMap pointMap)
- Walk though the treeview and set the viewobject locations
saveToFile
public void saveToFile(java.lang.String aFileName)
throws java.io.IOException
- Save the object (serialize it) to the specified file name.
- Parameters:
FileName
- A String parameter of the file name
restoreFromFile
public static AbleEnvironment restoreFromFile(java.lang.String aFileName)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Restore the object from the specified serialized file.
- Parameters:
FileName
- A String parameter of the file name
- Returns:
- The deserialized AbleBean.
- Throws:
java.io.IOException
- any IO exceptionjava.lang.ClassNotFoundException
- if class file not found
getInspectorContexts
public AbleInspectorContext[] getInspectorContexts()
Copyright
public static java.lang.String Copyright()
- Determine the copyright of this class.
- Returns:
- A String containing this class's copyright statement.
(C) Copyright IBM Corporation 1999, 2003