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
-
SCRIDEEditor()
- Creates an empty SCRIDEEditor.
-
SCRIDEEditor(SCRIDEEditableObject)
- Creates a SCRIDEEditor.
-
getEditableObject()
- Requests the SCRIDEEditableObject that is being edited.
-
importFile()
- Imports text into the current edit session.
-
readExternal(ObjectInput)
- Reads the object in.
-
saveContents()
- Saves the contents of the edit session into the SCRIDEEditableObject.
-
setEditableObject(SCRIDEEditableObject)
- Edits the passed SCRIDEEditableObject.
-
writeExternal(ObjectOutput)
- Writes the object out.
SCRIDEEditor
public SCRIDEEditor(SCRIDEEditableObject newEditableObject)
- Creates a SCRIDEEditor. Creates the editor and edits the passed
SCRIDEEditableObject.
- Parameters:
- newEditableObject - The SCRIDEEditableObject to edit.
SCRIDEEditor
public SCRIDEEditor()
- Creates an empty SCRIDEEditor. Creates a SCRIDEEditor
without any associated SCRIDEEditableObject.
getEditableObject
public SCRIDEEditableObject getEditableObject()
- Requests the SCRIDEEditableObject that is being edited.
- Returns:
- The object that is being edited.
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.
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
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.
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Writes the object out.
- Parameters:
- out - The output stream.
- Throws: IOException
- Streaming output error.
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