|
S-PLUS Connect/Java v1.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SplusControlMethods
This interface provides a common set of methods for standard S-PLUS dialog controls.
The getValue() method is used by SplusFunctionInfo to construct a function call when OK or Apply is pressed. The other methods are used in interproperty communication, and could be used at some point to implement dialog rollback.
Method Summary | |
---|---|
int |
getMnemonic()
Gets the mnemonic for the control. |
String[] |
getOptionList()
Gets the option list for the control. |
String |
getText()
Gets the text label for the control. |
String |
getValue()
Gets the value of the control as a String. |
boolean |
isEnabled()
Check whether the control is enabled. |
void |
setEnabled(boolean b)
Set whether the control is enabled. |
void |
setMnemonic(char aChar)
Sets the mnemonic for the control as a char. |
void |
setMnemonic(int key)
Sets the mnemonic for the control as an int. |
void |
setOptionList(String[] listData)
Sets the option list for the control. |
void |
setText(String text)
Sets the text label for the control. |
void |
setValue(String value)
Sets the value of the control as a String. |
Method Detail |
---|
String getValue()
void setValue(String value)
value
- desired control valueString[] getOptionList()
void setOptionList(String[] listData)
listData
- String array of option list elements.String getText()
void setText(String text)
text
- for the labelint getMnemonic()
void setMnemonic(char aChar)
aChar
- char specifying the mnemonicvoid setMnemonic(int key)
key
- int specifying the mnemonicboolean isEnabled()
void setEnabled(boolean b)
b
- boolean specifying whether to enable the control
|
S-PLUS Connect/Java v1.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |