|
S-PLUS Connect/Java v1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
com.insightful.controls.SplusLabelBox
com.insightful.controls.SplusTextField
Standard text field control for S-PLUS dialogs. This component contains a JTextField and an associated JLabel. The SplusLabelBox methods take care of layout and modifying the label.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
SplusTextField(String text)
Constructs a labeled text field control. |
|
SplusTextField(String text,
char mnemonic)
Constructs a labeled text field control. |
|
| Method Summary | |
void |
addActionListener(ActionListener listener)
Adds an actionListener to the list of action listeners for the control. |
String[] |
getOptionList()
Required method for SplusControlMethods interface. |
String |
getValue()
Gets the current content of the text field. |
boolean |
isEnabled()
Determines whether the control is enabled. |
void |
setEnabled(boolean b)
Sets the control to be enabled or disabled. |
void |
setOptionList(String[] listData)
Required method for SplusControlMethods interface. |
void |
setValue(String value)
Sets the content of the text field. |
| Methods inherited from class com.insightful.controls.SplusLabelBox |
getMnemonic, getText, setActionControl, setLabelEnabled, setLabelFor, setMnemonic, setMnemonic, setText |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.insightful.controls.SplusControlMethods |
getMnemonic, getText, setMnemonic, setMnemonic, setText |
| Constructor Detail |
public SplusTextField(String text,
char mnemonic)
text - Label for the text field.mnemonic - Label mnemonic as a char.public SplusTextField(String text)
text - Label for the text field.| Method Detail |
public String getValue()
getValue in interface SplusControlMethodspublic void setValue(String value)
setValue in interface SplusControlMethodsvalue - String to place in the text field.public String[] getOptionList()
getOptionList in interface SplusControlMethodspublic void setOptionList(String[] listData)
setOptionList in interface SplusControlMethodslistData - String array of option list values.public boolean isEnabled()
isEnabled in interface SplusControlMethodspublic void setEnabled(boolean b)
setEnabled in interface SplusControlMethodsb - boolean indicating whether to enable the control.public void addActionListener(ActionListener listener)
listener - listener for text field changes.
|
S-PLUS Connect/Java v1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||