Class LocalDateSpinnerModel
java.lang.Object
javax.swing.AbstractSpinnerModel
docking.widgets.table.constrainteditor.LocalDateSpinnerModel
- All Implemented Interfaces:
Serializable
,SpinnerModel
Spinner Model for LocalDate
- See Also:
-
Field Summary
Fields inherited from class javax.swing.AbstractSpinnerModel
listenerList
-
Constructor Summary
ConstructorDescriptionLocalDateSpinnerModel
(LocalDate value, LocalDate minDate, LocalDate maxDate, int calendarField) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetDate()
Returns the current maximum allowed date.Returns the current minimum allowed date.getValue()
void
setCalendarField
(int calendarField) Specifies whether the increment/decrement methods should adjust the year, month, or day.void
Methods inherited from class javax.swing.AbstractSpinnerModel
addChangeListener, fireStateChanged, getChangeListeners, getListeners, removeChangeListener
-
Constructor Details
-
LocalDateSpinnerModel
public LocalDateSpinnerModel(LocalDate value, LocalDate minDate, LocalDate maxDate, int calendarField) Constructor- Parameters:
value
- initial value for spinner modelminDate
- minimum value for spinner model. (Can be null)maxDate
- maximum value for spinner model. (Can be null)calendarField
- specifies the year, month, or day to increment/decrement. One of:
-
-
Method Details
-
getValue
-
setValue
-
getNextValue
-
getPreviousValue
-
getMinDate
Returns the current minimum allowed date.- Returns:
- the current minimum allowed date.
-
getMaxDate
Returns the current maximum allowed date.- Returns:
- the current maximum allowed date.
-
setCalendarField
public void setCalendarField(int calendarField) Specifies whether the increment/decrement methods should adjust the year, month, or day.- Parameters:
calendarField
- one of
-
getDate
-