|
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.SplusPasswordField
public class SplusPasswordField
Standard password field control for S-PLUS dialogs. This component contains a JPasswordField and an associated JLabel. The SplusLabelBox methods take care of layout and modifying the label. This code is identical to the SplusTextField code, with the JTextField replaced by JPassword field and JTextField.getText() replaced by JPasswordField.getPassword().
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces 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 | |
---|---|
SplusPasswordField(String text)
Constructs a labeled text field control. |
|
SplusPasswordField(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 SplusPasswordField(String text, char mnemonic)
text
- Label for the text field.mnemonic
- Label mnemonic as a char.public SplusPasswordField(String text)
text
- Label for the text field.Method Detail |
---|
public String getValue()
getValue
in interface SplusControlMethods
public void setValue(String value)
setValue
in interface SplusControlMethods
value
- String to place in the text field.public String[] getOptionList()
getOptionList
in interface SplusControlMethods
public void setOptionList(String[] listData)
setOptionList
in interface SplusControlMethods
listData
- String array of option list values.public boolean isEnabled()
isEnabled
in interface SplusControlMethods
isEnabled
in class Component
public void setEnabled(boolean b)
setEnabled
in interface SplusControlMethods
setEnabled
in class JComponent
b
- 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 |