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
-
SCRIDEInstanceEditor()
- Creates a SCRIDEInstanceEditor.
-
getInstance()
- Gets the SCRIDEInstance that is being edited.
-
initialize(SCRIDE)
- Initializes the SCRIDEInstanceEditor.
-
instanceAdded(SCRIDEComponentEvent)
- Identifies that an instance was added to the SCRIDE component.
-
instanceRemoved(SCRIDEComponentEvent)
- Identifies that an instance was removed from the SCRIDE component.
-
instanceRenamed(SCRIDEComponentEvent)
- Identifies that an instance was renamed in the SCRIDE component.
-
readExternal(ObjectInput)
- Reads the object in.
-
saveContents()
- Saves the contents of the edit session.
-
setInstance(SCRIDEInstance)
- Sets the SCRIDEInstance for editing.
-
terminate(SCRIDE)
- Terminates the instance editor.
-
writeExternal(ObjectOutput)
- Writes the object out.
SCRIDEInstanceEditor
public SCRIDEInstanceEditor()
- Creates a SCRIDEInstanceEditor.
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.
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
getInstance
public SCRIDEInstance getInstance()
- Gets the SCRIDEInstance that is being edited.
- Returns:
- SCRIDEInstance - The instance being edited.
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
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
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.
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.
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.
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Writes the object out.
- Parameters:
- out - The output stream.
- Throws: IOException
- A 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 is not found during streaming.
All Packages Class Hierarchy This Package Previous Next Index