All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.beans.script.comps.java.SCRJavaEditableObj

java.lang.Object
   |
   +----com.ibm.beans.script.ide.SCRIDEEditableObject
           |
           +----com.ibm.beans.script.comps.java.SCRJavaEditableObj

public class SCRJavaEditableObj
extends SCRIDEEditableObject
This is the Java IDE Editable Object Class. It stores and handles all Java related information. It is derived from SCRIDEEditableObject.


Constructor Index

 o SCRJavaEditableObj(String, String, SCRJavaEventMethodInfo, SCRObjectHandle)
Creates an instance of SCRIDE editable object.
 o SCRJavaEditableObj(String, String, String)
Creates an instance of SCRIDE editable object.

Method Index

 o getBeginLine()
Gets the beginning line number in the generated code.
 o getCode()
Gets the Java code associated with this editable object.
 o getEndLine()
Gets the ending line number in the generated code.
 o getEventInfo()
Gets the Event Infor Method object associated with Java Editable object.
 o getSavedTitle()
Gets the saved title string.
 o getTitle()
Gets the title string.
 o isEmpty()
Checks if the code text is empty.
 o putSavedTitle(String)
Sets the saved title.
 o setBeginLine(int)
Sets the beginning line number in the generated code.
 o setEndLine(int)
Sets the ending line number in the generated code.
 o setEventInfo(SCRJavaEventMethodInfo)
Sets the event method information reference.

Constructors

 o SCRJavaEditableObj
 public SCRJavaEditableObj(String event_name,
                           String init_text,
                           SCRJavaEventMethodInfo evt_info,
                           SCRObjectHandle obj_handle)
Creates an instance of SCRIDE editable object.

Parameters:
event_name - The name of the event set fired by the registered Java object.
init_text - The initial script text.
evt_info -
The event method information object associated with the script stored in the SCRJavaEditableObj object.
object_handle - The Java object handle associated with the SCRJavaEditableObj object.
 o SCRJavaEditableObj
 public SCRJavaEditableObj(String event_name,
                           String saved_title,
                           String init_text)
Creates an instance of SCRIDE editable object. This constructor is used to create the editable objects for system instance.

Parameters:
event_name - The name of the event set fired by the registered Java object.
title_str - The non-changeable title of this editable object.
init_text - The initial script text.

Methods

 o getBeginLine
 public int getBeginLine()
Gets the beginning line number in the generated code.

Returns:
The beginning line number in the generated code.
 o getEndLine
 public int getEndLine()
Gets the ending line number in the generated code.

Returns:
The ending line number in the generated code.
 o setBeginLine
 public void setBeginLine(int beg_line)
Sets the beginning line number in the generated code.

Parameters:
beg_line - The new beginning line number in the generated code.
 o setEndLine
 public void setEndLine(int end_line)
Sets the ending line number in the generated code.

Parameters:
end_line - The new ending line number in the generated code.
 o getTitle
 public String getTitle()
Gets the title string.

Returns:
A string that represents the title of this editable object.
Overrides:
getTitle in class SCRIDEEditableObject
 o getSavedTitle
 public String getSavedTitle()
Gets the saved title string.

Returns:
The saved string that represents the title of this editable object.
 o setEventInfo
 public void setEventInfo(SCRJavaEventMethodInfo evt_info)
Sets the event method information reference.

Parameters:
evt_info - The new event method information reference.
 o isEmpty
 public boolean isEmpty()
Checks if the code text is empty.

Returns:
true, if the code text is empty; false, otherwise.
 o getCode
 public String getCode()
Gets the Java code associated with this editable object.

Returns:
The Java code.
 o putSavedTitle
 public void putSavedTitle(String str)
Sets the saved title.

Parameters:
str - The saved title to be set.
 o getEventInfo
 public SCRJavaEventMethodInfo getEventInfo()
Gets the Event Infor Method object associated with Java Editable object.

Returns:
The Event Method Infor object.

All Packages  Class Hierarchy  This Package  Previous  Next  Index