|
S-PLUS Connect/Java v1.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public String getValue()
public void setValue(String value)
value
- desired control valuepublic String[] getOptionList()
public void setOptionList(String[] listData)
listData
- String array of option list elements.public String getText()
public void setText(String text)
text
- for the labelpublic int getMnemonic()
public void setMnemonic(char aChar)
aChar
- char specifying the mnemonicpublic void setMnemonic(int key)
key
- int specifying the mnemonicpublic boolean isEnabled()
public 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 |