Package com.macrofocus.properties.swing
Class PropertySpinnerModel
- java.lang.Object
-
- javax.swing.AbstractSpinnerModel
-
- javax.swing.SpinnerNumberModel
-
- com.macrofocus.properties.swing.PropertySpinnerModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.SpinnerModel
public class PropertySpinnerModel extends javax.swing.SpinnerNumberModel
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PropertySpinnerModel(MutableProperty property)
PropertySpinnerModel(MutableProperty property, java.lang.Number stepSize, java.lang.Number min, java.lang.Number max)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Comparable
getMaximum()
java.lang.Comparable
getMinimum()
java.lang.Object
getNextValue()
java.lang.Object
getPreviousValue()
java.lang.Number
getStepSize()
java.lang.Object
getValue()
void
setProperty(MutableProperty property)
void
setStepSize(java.lang.Number stepSize)
void
setValue(java.lang.Object value)
-
-
-
Constructor Detail
-
PropertySpinnerModel
public PropertySpinnerModel(MutableProperty property)
-
PropertySpinnerModel
public PropertySpinnerModel(MutableProperty property, java.lang.Number stepSize, java.lang.Number min, java.lang.Number max)
-
-
Method Detail
-
getValue
public java.lang.Object getValue()
- Specified by:
getValue
in interfacejavax.swing.SpinnerModel
- Overrides:
getValue
in classjavax.swing.SpinnerNumberModel
-
setValue
public void setValue(java.lang.Object value)
- Specified by:
setValue
in interfacejavax.swing.SpinnerModel
- Overrides:
setValue
in classjavax.swing.SpinnerNumberModel
-
getStepSize
public java.lang.Number getStepSize()
- Overrides:
getStepSize
in classjavax.swing.SpinnerNumberModel
-
setStepSize
public void setStepSize(java.lang.Number stepSize)
- Overrides:
setStepSize
in classjavax.swing.SpinnerNumberModel
-
getMinimum
public java.lang.Comparable getMinimum()
- Overrides:
getMinimum
in classjavax.swing.SpinnerNumberModel
-
getMaximum
public java.lang.Comparable getMaximum()
- Overrides:
getMaximum
in classjavax.swing.SpinnerNumberModel
-
getNextValue
public java.lang.Object getNextValue()
- Specified by:
getNextValue
in interfacejavax.swing.SpinnerModel
- Overrides:
getNextValue
in classjavax.swing.SpinnerNumberModel
-
getPreviousValue
public java.lang.Object getPreviousValue()
- Specified by:
getPreviousValue
in interfacejavax.swing.SpinnerModel
- Overrides:
getPreviousValue
in classjavax.swing.SpinnerNumberModel
-
setProperty
public void setProperty(MutableProperty property)
-
-