|
||||||||||
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
org.freehep.swing.JSpinBox
public class JSpinBox
This is an implementation of a simple spin box suitable for use with positive integers. It displays as a text area with two small up and down buttons beside it. Pressing the up or down button increments or decrements the counter. Pressing and holding either button causes the value to change continuously (unless delay is set to 0).
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 | |
---|---|
JSpinBox(int init,
int min,
int max)
Deprecated. Creates a spin box |
Method Summary | |
---|---|
void |
addActionListener(ActionListener l)
Deprecated. |
int |
getInitialDelay()
Deprecated. |
int |
getMax()
Deprecated. |
int |
getMin()
Deprecated. |
int |
getRepeatDelay()
Deprecated. |
int |
getValue()
Deprecated. |
void |
removeActionListener(ActionListener l)
Deprecated. |
void |
setEnabled(boolean enabled)
Deprecated. |
void |
setInitialDelay(int delay)
Deprecated. Sets the initial delay for the repeat function of the arrow keys. |
void |
setMax(int value)
Deprecated. |
void |
setMin(int value)
Deprecated. |
void |
setRepeatDelay(int delay)
Deprecated. Sets the delay for the repeat function of the arrow keys. |
void |
setValue(int value)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JSpinBox(int init, int min, int max)
init
- The initial value for the spin boxmin
- The minimum value for the spin boxmax
- The maximum value for the spin boxMethod Detail |
---|
public void addActionListener(ActionListener l)
public void removeActionListener(ActionListener l)
public void setMin(int value)
public void setMax(int value)
public int getMin()
public int getMax()
public int getValue()
public void setValue(int value)
public int getRepeatDelay()
public int getInitialDelay()
public void setRepeatDelay(int delay)
delay
- The delay between increments in milliseconds, or 0 to disable repeatpublic void setInitialDelay(int delay)
delay
- The delay between increments in milliseconds, or 0 to disable repeatpublic void setEnabled(boolean enabled)
setEnabled
in class JComponent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |