|
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.SplusIntegerSpinner
public class SplusIntegerSpinner
A JTextField with a JScrollBar which behaves as a spinner and an associated JLabel. The spinner takes on integer values.
| 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 | |
|---|---|
SplusIntegerSpinner(String text)
Create a spinner field with the specified label. |
|
SplusIntegerSpinner(String text,
char mnemonic)
Create a spinner field with the specified label and mnemonic. |
|
SplusIntegerSpinner(String text,
char mnemonic,
int min,
int max,
int increment)
Create a spinner field with the specified label, mnemonic, and specified values for the spinner min, max, and increment. |
|
SplusIntegerSpinner(String text,
int mnemonic)
Create a spinner field with the specified label and mnemonic. |
|
SplusIntegerSpinner(String text,
int min,
int max,
int increment)
Create a spinner field with the specified label and specified values for the spinner min, max, and increment. |
|
SplusIntegerSpinner(String text,
int mnemonic,
int min,
int max,
int increment)
Create a spinner field with the specified label, mnemonic, and specified values for the spinner min, max, and increment. |
|
| 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 current value of the combo box as a String. |
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 field to have a specified value. |
| 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 SplusIntegerSpinner(String text)
public SplusIntegerSpinner(String text,
char mnemonic)
public SplusIntegerSpinner(String text,
int mnemonic)
public SplusIntegerSpinner(String text,
int mnemonic,
int min,
int max,
int increment)
public SplusIntegerSpinner(String text,
char mnemonic,
int min,
int max,
int increment)
public SplusIntegerSpinner(String text,
int min,
int max,
int increment)
| Method Detail |
|---|
public String getValue()
getValue in interface SplusControlMethodspublic void setValue(String value)
setValue in interface SplusControlMethodsvalue - desired field value.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 SplusControlMethodsisEnabled in class Componentpublic void setEnabled(boolean b)
setEnabled in interface SplusControlMethodssetEnabled in class JComponentb - boolean indicating whether to enable the control.public void addActionListener(ActionListener listener)
listener - listener for spinner changes.
|
S-PLUS Connect/Java v1.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||