All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.beans.script.ide.SCRIDEEditor

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----com.ibm.beans.script.ide.SCRIDEEditor

public class SCRIDEEditor
extends Panel
implements Externalizable
The Scripting Editor class is instantiated and is used to visually edit a SCRIDEEditableObject from a SCRIDEInstance.

See Also:
SCRIDEInstance, SCRIDEEditableObject

Constructor Index

 o SCRIDEEditor()
Creates an empty SCRIDEEditor.
 o SCRIDEEditor(SCRIDEEditableObject)
Creates a SCRIDEEditor.

Method Index

 o getEditableObject()
Requests the SCRIDEEditableObject that is being edited.
 o importFile()
Imports text into the current edit session.
 o readExternal(ObjectInput)
Reads the object in.
 o saveContents()
Saves the contents of the edit session into the SCRIDEEditableObject.
 o setEditableObject(SCRIDEEditableObject)
Edits the passed SCRIDEEditableObject.
 o writeExternal(ObjectOutput)
Writes the object out.

Constructors

 o SCRIDEEditor
 public SCRIDEEditor(SCRIDEEditableObject newEditableObject)
Creates a SCRIDEEditor. Creates the editor and edits the passed SCRIDEEditableObject.

Parameters:
newEditableObject - The SCRIDEEditableObject to edit.
 o SCRIDEEditor
 public SCRIDEEditor()
Creates an empty SCRIDEEditor. Creates a SCRIDEEditor without any associated SCRIDEEditableObject.

Methods

 o getEditableObject
 public SCRIDEEditableObject getEditableObject()
Requests the SCRIDEEditableObject that is being edited.

Returns:
The object that is being edited.
 o setEditableObject
 public void setEditableObject(SCRIDEEditableObject newEditableObject)
Edits the passed SCRIDEEditableObject. This method flushs the contents of the edit session into the SCRIDEEditableObject that was previously being edited. Then the editor allows the passed SCRIDEEditableObject to be edited.

Parameters:
newEditableObject - The new SCRIDEEditableObject to edit.
 o importFile
 public synchronized void importFile()
Imports text into the current edit session. This method brings up a file open dialog and allows the contents of the selected file to be imported into the code text of the SCRIDEEditableObject.

See Also:
SCRIDEEditableObject
 o saveContents
 public void saveContents()
Saves the contents of the edit session into the SCRIDEEditableObject. This method saves the contents of its TextArea to the SCRIDEEditableObjects CodeText if the TextArea has been modified. This method also marks the SCRIDEEditableObject as "changed" if the CodeText is modified.

 o writeExternal
 public void writeExternal(ObjectOutput out) throws IOException
Writes the object out.

Parameters:
out - The output stream.
Throws: IOException
Streaming output error.
 o readExternal
 public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
Reads the object in.

Parameters:
in - The input stream.
Throws: IOException
A streaming input error.
Throws: ClassNotFoundException
The class was not found during streaming.

All Packages  Class Hierarchy  This Package  Previous  Next  Index