com.eteks.sweethome3d.swing
Class NullableSpinner.NullableSpinnerDateModel
java.lang.Object
javax.swing.AbstractSpinnerModel
javax.swing.SpinnerDateModel
com.eteks.sweethome3d.swing.NullableSpinner.NullableSpinnerDateModel
- All Implemented Interfaces:
- Serializable, SpinnerModel
- Enclosing class:
- NullableSpinner
public static class NullableSpinner.NullableSpinnerDateModel
- extends SpinnerDateModel
Spinner date model that accepts null
values.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullableSpinner.NullableSpinnerDateModel
public NullableSpinner.NullableSpinnerDateModel()
getNextValue
public Object getNextValue()
- Specified by:
getNextValue
in interface SpinnerModel
- Overrides:
getNextValue
in class SpinnerDateModel
getPreviousValue
public Object getPreviousValue()
- Specified by:
getPreviousValue
in interface SpinnerModel
- Overrides:
getPreviousValue
in class SpinnerDateModel
getValue
public Object getValue()
- Specified by:
getValue
in interface SpinnerModel
- Overrides:
getValue
in class SpinnerDateModel
setValue
public void setValue(Object value)
- Sets model value. This method is overridden to store whether current value is
null
or not (super class setValue
doesn't accept null
value).
- Specified by:
setValue
in interface SpinnerModel
- Overrides:
setValue
in class SpinnerDateModel
isNullable
public boolean isNullable()
- Returns
true
if this spinner model is nullable.
setNullable
public void setNullable(boolean nullable)
- Sets whether this spinner model is nullable.