public static class NullableSpinner.NullableSpinnerLengthModel extends NullableSpinner.NullableSpinnerNumberModel
listenerList
Constructor and Description |
---|
NullableSpinnerLengthModel(UserPreferences preferences,
float minimum,
float maximum)
Creates a model managing lengths between the given
minimum and maximum values in centimeter. |
NullableSpinnerLengthModel(UserPreferences preferences,
float value,
float minimum,
float maximum)
Creates a model managing lengths between the given
minimum and maximum values in centimeter. |
Modifier and Type | Method and Description |
---|---|
Float |
getLength()
Returns the displayed value in centimeter.
|
void |
setLength(Float length)
Sets the length in centimeter displayed in this model.
|
void |
setMinimumLength(float minimum)
Sets the minimum length in centimeter displayed in this model.
|
getNextValue, getNumber, getPreviousValue, getValue, isNullable, setNullable, setValue
getMaximum, getMinimum, getStepSize, setMaximum, setMinimum, setStepSize
addChangeListener, fireStateChanged, getChangeListeners, getListeners, removeChangeListener
public NullableSpinnerLengthModel(UserPreferences preferences, float minimum, float maximum)
minimum
and maximum
values in centimeter.public NullableSpinnerLengthModel(UserPreferences preferences, float value, float minimum, float maximum)
minimum
and maximum
values in centimeter.public Float getLength()
public void setLength(Float length)
public void setMinimumLength(float minimum)
© Copyrights 2006-2017 Emmanuel PUYBARET / eTeks
Distributed under GNU General Public License