Java javax.swing SpinnerDateModel fields, constructors, methods, implement or subclass

Example usage for Java javax.swing SpinnerDateModel fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing SpinnerDateModel.

The text is from its open source code.

Constructor

SpinnerDateModel()
Constructs a SpinnerDateModel whose initial value is the current date, calendarField is equal to Calendar.DAY_OF_MONTH, and for which there are no start/end limits.
SpinnerDateModel(Date value, Comparable start, Comparable end, int calendarField)
Creates a SpinnerDateModel that represents a sequence of dates between start and end.

Method

intgetCalendarField()
Returns the Calendar field that is added to or subtracted from by the nextValue and previousValue methods.
DategetDate()
Returns the current element in this sequence of Dates.
ComparablegetEnd()
Returns the last Date in the sequence.
ComparablegetStart()
Returns the first Date in the sequence.
ObjectgetValue()
Returns the current element in this sequence of Dates.
voidsetCalendarField(int calendarField)
Changes the size of the date value change computed by the nextValue and previousValue methods.
voidsetStart(Comparable start)
Changes the lower limit for Dates in this sequence.
voidsetValue(Object value)
Sets the current Date for this sequence.