All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.beans.script.ide.SCRIDEInstanceEditor

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

public class SCRIDEInstanceEditor
extends Panel
implements Externalizable
The Scripting IDE Instance Editor class is instantiated and is used to list the instances of SCRIDEEditableObject for editing and to create the SCRIDEEditor when a SCRIDEEditableObject is selected.

See Also:
SCRIDEInstance, SCRIDEEditor, SCRIDEEditableObject

Constructor Index

 o SCRIDEInstanceEditor()
Creates a SCRIDEInstanceEditor.

Method Index

 o getInstance()
Gets the SCRIDEInstance that is being edited.
 o initialize(SCRIDE)
Initializes the SCRIDEInstanceEditor.
 o instanceAdded(SCRIDEComponentEvent)
Identifies that an instance was added to the SCRIDE component.
 o instanceRemoved(SCRIDEComponentEvent)
Identifies that an instance was removed from the SCRIDE component.
 o instanceRenamed(SCRIDEComponentEvent)
Identifies that an instance was renamed in the SCRIDE component.
 o readExternal(ObjectInput)
Reads the object in.
 o saveContents()
Saves the contents of the edit session.
 o setInstance(SCRIDEInstance)
Sets the SCRIDEInstance for editing.
 o terminate(SCRIDE)
Terminates the instance editor.
 o writeExternal(ObjectOutput)
Writes the object out.

Constructors

 o SCRIDEInstanceEditor
 public SCRIDEInstanceEditor()
Creates a SCRIDEInstanceEditor.

Methods

 o initialize
 public void initialize(SCRIDE scrIDE)
Initializes the SCRIDEInstanceEditor. After construction or serialization the initialize function must be called before other methods can be used on the SCRIDEInstanceEditor.

Parameters:
scrIDE - The Scripting IDE that created the editor.
 o terminate
 public void terminate(SCRIDE scrIDE)
Terminates the instance editor. This method must be called before the SCRIDEInstanceEditor is destroyed. This method saves the contents of the current edit session and removes this object from the SCRIDEComponent listeners.

Parameters:
scrIDE - The SCRIDE that created this editor.
See Also:
SCRIDEEditor
 o getInstance
 public SCRIDEInstance getInstance()
Gets the SCRIDEInstance that is being edited.

Returns:
SCRIDEInstance - The instance being edited.
 o setInstance
 public void setInstance(SCRIDEInstance newInstance)
Sets the SCRIDEInstance for editing. This method saves the contents of the current SCRIDEInstance being edited and starts editing the contents of the SCRIDEInstance passed in.

Parameters:
newInstance - The instance to edit.
See Also:
SCRIDEEditor
 o saveContents
 public void saveContents()
Saves the contents of the edit session. This method tells the SCRIDEditor to save its contents to the associated SCRIDEEditableObjects.

See Also:
SCRIDEEditor, SCRIDEEditableObject
 o instanceAdded
 public synchronized void instanceAdded(SCRIDEComponentEvent event)
Identifies that an instance was added to the SCRIDE component. It is called by the SCRIDE component when creating an instance.

Parameters:
event - The SCRIDE component event.
 o instanceRemoved
 public synchronized void instanceRemoved(SCRIDEComponentEvent event)
Identifies that an instance was removed from the SCRIDE component. It is called by the SCRIDE component when removing an instance.

Parameters:
event - The SCRIDE component event.
 o instanceRenamed
 public synchronized void instanceRenamed(SCRIDEComponentEvent event)
Identifies that an instance was renamed in the SCRIDE component. It is called by the SCRIDE component when renaming an instance.

Parameters:
event - The SCRIDE component event.
 o writeExternal
 public void writeExternal(ObjectOutput out) throws IOException
Writes the object out.

Parameters:
out - The output stream.
Throws: IOException
A 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 is not found during streaming.

All Packages  Class Hierarchy  This Package  Previous  Next  Index