com.toedter.calendar
Class JYearChooser
- ActionListener, CaretListener, ChangeListener
public class JYearChooser
JYearChooser is a bean for choosing a year.
int | getEndYear() - Returns the endy ear.
|
String | getName() - Returns "JYearChooser".
|
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 , getMaximum , getMinimum , getName , getSpinner , getValue , main , setEnabled , setFont , setForeground , setHorizontalAlignment , setMaximum , setMinimum , setValue , setValue , stateChanged |
endYear
protected int endYear
startYear
protected int startYear
JYearChooser
public JYearChooser()
Default JCalendar constructor.
getEndYear
public int getEndYear()
Returns the endy ear.
getName
public String getName()
Returns "JYearChooser".
- getName in interface JSpinField
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 - 2004 Kai Toedter.