Class LocalDateSpinnerModel
- java.lang.Object
- 
- javax.swing.AbstractSpinnerModel
- 
- docking.widgets.table.constrainteditor.LocalDateSpinnerModel
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- javax.swing.SpinnerModel
 
 public class LocalDateSpinnerModel extends javax.swing.AbstractSpinnerModelSpinner Model for LocalDate- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description LocalDateSpinnerModel(java.time.LocalDate value, java.time.LocalDate minDate, java.time.LocalDate maxDate, int calendarField)Constructor
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.LocalDategetDate()java.time.LocalDategetMaxDate()Returns the current maximum allowed date.java.time.LocalDategetMinDate()Returns the current minimum allowed date.java.lang.ObjectgetNextValue()java.lang.ObjectgetPreviousValue()java.lang.ObjectgetValue()voidsetCalendarField(int calendarField)Specifies whether the increment/decrement methods should adjust the year, month, or day.voidsetValue(java.lang.Object value)
 
- 
- 
- 
Constructor Detail- 
LocalDateSpinnerModelpublic LocalDateSpinnerModel(java.time.LocalDate value, java.time.LocalDate minDate, java.time.LocalDate maxDate, int calendarField)Constructor- Parameters:
- value- initial value for spinner model
- minDate- 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:- Calendar.YEAR
- Calendar.MONTH
- Calendar.DAY_OF_MONTH
 
 
 
- 
 - 
Method Detail- 
getValuepublic java.lang.Object getValue() 
 - 
setValuepublic void setValue(java.lang.Object value) 
 - 
getNextValuepublic java.lang.Object getNextValue() 
 - 
getPreviousValuepublic java.lang.Object getPreviousValue() 
 - 
getMinDatepublic java.time.LocalDate getMinDate() Returns the current minimum allowed date.- Returns:
- the current minimum allowed date.
 
 - 
getMaxDatepublic java.time.LocalDate getMaxDate() Returns the current maximum allowed date.- Returns:
- the current maximum allowed date.
 
 - 
setCalendarFieldpublic void setCalendarField(int calendarField) Specifies whether the increment/decrement methods should adjust the year, month, or day.- Parameters:
- calendarField- one of- Calendar.YEAR
- Calendar.MONTH
- Calendar.DAY_OF_MONTH
 
 
 - 
getDatepublic java.time.LocalDate getDate() 
 
- 
 
-