com.toedter.calendar
Class JYearChooser
- ActionListener, CaretListener, ChangeListener, FocusListener
public class JYearChooser
JYearChooser is a bean for choosing a year.
$LastChangedRevision: 85 $, $LastChangedDate: 2006-04-28 13:50:52 +0200 (Fr, 28 Apr 2006) $
int | getEndYear() - Returns the endy ear.
|
int | getStartYear() - Returns the start year.
|
int | getYear() - Returns the year.
|
static void | main(String[] s) - Creates a JFrame with a JYearChooser inside and can be used for testing.
|
void | setDayChooser(JDayChooser dayChooser) - Convenience method set a day chooser that might be updated directly.
|
void | setEndYear(int endYear) - Sets the end ear.
|
void | setStartYear(int startYear) - Sets the start year.
|
void | setValue(int value) - Sets the year value.
|
void | setYear(int y) - Sets the year.
|
actionPerformed , adjustWidthToMaximumValue , caretUpdate , focusGained , focusLost , getMaximum , getMinimum , getSpinner , getValue , main , setEnabled , setFont , setForeground , setHorizontalAlignment , setMaximum , setMinimum , setValue , setValue , stateChanged |
endYear
protected int endYear
oldYear
protected int oldYear
startYear
protected int startYear
JYearChooser
public JYearChooser()
Default JCalendar constructor.
getEndYear
public int getEndYear()
Returns the endy ear.
getStartYear
public int getStartYear()
Returns the start year.
getYear
public int getYear()
Returns the year.
main
public static void main(String[] s)
Creates a JFrame with a JYearChooser inside and can be used for testing.
- main in interface JSpinField
s
- command line arguments
setDayChooser
public void setDayChooser(JDayChooser dayChooser)
Convenience method set a day chooser that might be updated directly.
dayChooser
- the day chooser
setEndYear
public void setEndYear(int endYear)
Sets the end ear.
setStartYear
public void setStartYear(int startYear)
Sets the start year.
startYear
- the start year
setValue
public void setValue(int value)
Sets the year value.
- setValue in interface JSpinField
setYear
public void setYear(int y)
Sets the year. This is a bound property.
Copyright B) 1999 - 2006 Kai Toedter.