|
S-PLUS Connect/Java v1.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.insightful.controls.SplusFunctionInfo
Holds information on which controls contain values to use in a function call, and how to format the values. Each control must implement SplusControlMethods, and provide a getValue() method which returns a String representing the value of the control.
Constructor Summary | |
SplusFunctionInfo()
Construct an empty SplusFunctionInfo object. |
|
SplusFunctionInfo(String aName)
Construct an SplusFunctionInfo object specifying the name of the S-PLUS function to call. |
Method Summary | |
void |
add(SplusControlMethods aControl)
Add a control to the control list with no name. |
void |
add(SplusControlMethods aControl,
String aName)
Add a control to the control list |
void |
add(SplusControlMethods aControl,
String aName,
boolean isQuoted)
Add a control to the control list |
void |
add(SplusControlMethods aControl,
String aName,
boolean isQuoted,
boolean isListed)
Add a control to the control list |
void |
add(SplusControlMethods aControl,
String aName,
boolean isQuoted,
boolean isListed,
String omitValue)
Add a control to the control list |
String |
getFunctionCall()
Creates a string representing the S-PLUS function call based on the values in the registered controls. |
String |
getFunctionName()
Get the name of the S-PLUS function to call. |
SplusControlMethods |
getResultControl()
Get the control which will specify the name to which the results of the function should be assigned in S-PLUS. |
void |
setFunctionName(String aName)
Set the name of the S-PLUS function to call. |
void |
setResultControl(SplusControlMethods control)
Set the control which will specify the name to which the results of the function should be assigned in S-PLUS. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SplusFunctionInfo()
public SplusFunctionInfo(String aName)
Method Detail |
public void setFunctionName(String aName)
public String getFunctionName()
public void setResultControl(SplusControlMethods control)
public SplusControlMethods getResultControl()
public void add(SplusControlMethods aControl)
aControl
- Control to add.public void add(SplusControlMethods aControl, String aName)
aControl
- Control to add.aName
- Name of the function argument related to this control.public void add(SplusControlMethods aControl, String aName, boolean isQuoted)
aControl
- Control to add.aName
- Name of the function argument related to this control.isQuoted
- Indicate whether the value should be wrapped in quotes.public void add(SplusControlMethods aControl, String aName, boolean isQuoted, boolean isListed)
aControl
- Control to add.aName
- Name of the function argument related to this control.isQuoted
- Indicate whether the value should be wrapped in quotes.isListed
- Indicate whether the value should be wrapped in "list()".public void add(SplusControlMethods aControl, String aName, boolean isQuoted, boolean isListed, String omitValue)
aControl
- Control to add.aName
- Name of the function argument related to this control.isQuoted
- Indicate whether the value should be wrapped in quotes.isListed
- Indicate whether the value should be wrapped in "list()".omitValue
- If the control has this value, it will be excluded.public String getFunctionCall()
|
S-PLUS Connect/Java v1.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |