public final class SpinnerUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
setMaximum(JSpinner spinner,
Comparable<?> newMaximum)
Set the maximum of a
JSpinner with a number spinner model to a new value, adjusting the current value
first if necessary. |
static void |
setMaximum(SpinnerNumberModel model,
Comparable<?> newMaximum)
Set the maximum of a number spinner model to a new value, adjusting the current value first if necessary.
|
static void |
setMinimum(JSpinner spinner,
Comparable<?> newMinimum)
Set the minimum of a
JSpinner with a number spinner model to a new value, adjusting the current value
first if necessary. |
static void |
setMinimum(SpinnerNumberModel model,
Comparable<?> newMinimum)
Set the minimum of a number spinner model to a new value, adjusting the current value first if necessary.
|
public static void setMinimum(JSpinner spinner, Comparable<?> newMinimum)
JSpinner with a number spinner model to a new value, adjusting the current value
first if necessary.spinner - The spinner of which to set the minimum. Must have a SpinnerNumberModel.newMinimum - The value to set the minimum to. Must be a Number.public static void setMinimum(SpinnerNumberModel model, Comparable<?> newMinimum)
model - The model of which to set the minimum.newMinimum - The value to set the minimum to. Must be a Number.public static void setMaximum(JSpinner spinner, Comparable<?> newMaximum)
JSpinner with a number spinner model to a new value, adjusting the current value
first if necessary.spinner - The spinner of which to set the maximum. Must have a SpinnerNumberModel.newMaximum - The value to set the maximum to. Must be a Number.public static void setMaximum(SpinnerNumberModel model, Comparable<?> newMaximum)
model - The model of which to set the maximum.newMaximum - The value to set the maximum to. Must be a Number.Copyright © 2011–2025 pepsoft.org. All rights reserved.