Example usage for Java javax.swing SpinnerNumberModel fields, constructors, methods, implement or subclass
The text is from its open source code.
SpinnerNumberModel(Number value, Comparable> minimum, Comparable> maximum, Number stepSize) Constructs a SpinnerModel that represents a closed sequence of numbers from minimum to maximum . | |
SpinnerNumberModel(int value, int minimum, int maximum, int stepSize) Constructs a SpinnerNumberModel with the specified value , minimum /maximum bounds, and stepSize . | |
SpinnerNumberModel(double value, double minimum, double maximum, double stepSize) Constructs a SpinnerNumberModel with the specified value , minimum /maximum bounds, and stepSize . | |
SpinnerNumberModel() Constructs a SpinnerNumberModel with no minimum or maximum value, stepSize equal to one, and an initial value of zero. |
void | addChangeListener(ChangeListener l) Adds a ChangeListener to the model's listener list. |
ChangeListener[] | getChangeListeners() Returns an array of all the ChangeListener s added to this AbstractSpinnerModel with addChangeListener(). |
Comparable> | getMaximum() Returns the last number in the sequence. |
Comparable> | getMinimum() Returns the first number in this sequence. |
Number | getNumber() Returns the value of the current element of the sequence. |
Number | getStepSize() Returns the size of the value change computed by the getNextValue and getPreviousValue methods. |
Object | getValue() Returns the value of the current element of the sequence. |
void | removeChangeListener(ChangeListener l) Removes a ChangeListener from the model's listener list. |
void | setMaximum(Comparable> maximum) Changes the upper bound for numbers in this sequence. |
void | setMinimum(Comparable> minimum) Changes the lower bound for numbers in this sequence. |
void | setStepSize(Number stepSize) Changes the size of the value change computed by the getNextValue and getPreviousValue methods. |
void | setValue(Object value) Sets the current value for this sequence. |