ABLE 2.0.0 07/02/2003 10:25:01

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

Field Summary
protected static long serialVersionUID
           
 
Constructor Summary
AbleEnvironment()
           
 
Method Summary
 void addInspector(AbleInspector insp)
           
static java.lang.String Copyright()
          Determine the copyright of this class.
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 aFileName)
          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 aFileName)
          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

serialVersionUID

protected static final long serialVersionUID
Constructor Detail

AbleEnvironment

public AbleEnvironment()
Method Detail

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 exception
java.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.


ABLE 2.0.0 07/02/2003 10:25:01

(C) Copyright IBM Corporation 1999, 2003