|
Java Date Picker v3.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.standbysoft.component.date.swing.DefaultMonthModel
A default implementation for a MonthModel.
| Field Summary |
| Fields inherited from interface com.standbysoft.component.date.swing.MonthModel |
DOW_NAMES_LONG, DOW_NAMES_SHORT, MONTH_NAMES_LONG, MONTH_NAMES_SHORT |
| Constructor Summary | |
DefaultMonthModel()
|
|
DefaultMonthModel(java.util.Locale locale)
|
|
DefaultMonthModel(java.util.Locale locale,
int dowFormat,
int monthFormat)
|
|
DefaultMonthModel(java.util.Locale locale,
int dowFirst,
int dowFormat,
int monthFormat)
|
|
| Method Summary | |
void |
addMonthModelListener(MonthModelListener listener)
Adds an object that listens to changes in this model. |
protected void |
fireDowFirstChanged(MonthModelEvent evt)
DefaultMonthModel subclasses must call this method when the first day of week changes. |
protected void |
fireDowNamesChanged(MonthModelEvent evt)
DefaultMonthModel subclasses must call this method when the format for the days of week names changes. |
protected void |
fireMonthChanged(MonthModelEvent evt)
DefaultMonthModel subclasses must call this method when the month represented by the model changes. |
protected void |
fireMonthNamesChanged(MonthModelEvent evt)
DefaultMonthModel subclasses must call this method when the format for the month names changes. |
int |
getDowFirst()
Returns the first day of week. |
int |
getDowIndex(int day)
Returns the index of a specified day in a week. |
int |
getDowNamesFormat()
Returns what format the names of days of week have. |
int[] |
getDows()
Returns the days of week starting with the first day of week. |
java.util.EventListener[] |
getListeners(java.lang.Class listenerType)
|
int |
getMonth()
Returns the month represented by this model. |
int |
getMonthNamesFormat()
Returns what format the names of months have. |
int |
getYear()
Returns the year to which the represented month belongs. |
void |
removeMonthModelListener(MonthModelListener listener)
Removes a specified listener from the list of registered listeners. |
void |
setDowFirst(int day)
Specifies the first day of week. |
void |
setDowFormat(int format)
|
void |
setMonth(int amonth)
Specifies a new month to be represented by this model. |
void |
setMonthFormat(int format)
|
void |
setYear(int ayear)
Specifies a new year to which the represented month belongs. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultMonthModel()
public DefaultMonthModel(java.util.Locale locale)
public DefaultMonthModel(java.util.Locale locale,
int dowFormat,
int monthFormat)
public DefaultMonthModel(java.util.Locale locale,
int dowFirst,
int dowFormat,
int monthFormat)
| Method Detail |
public int[] getDows()
MonthModel
getDows in interface MonthModelCalendar.MONDAY.MonthModel.getDowFirst()public int getDowIndex(int day)
MonthModelfirst day of week which has the index 0.
getDowIndex in interface MonthModelday - day of week for which the index is requested. The values are
values like Calendar.MONDAY.
0..6.MonthModel.getDowFirst()public void setDowFormat(int format)
public int getDowNamesFormat()
MonthModel
getDowNamesFormat in interface MonthModelpublic void setMonthFormat(int format)
public int getMonthNamesFormat()
MonthModel
getMonthNamesFormat in interface MonthModelpublic void setDowFirst(int day)
MonthModel
setDowFirst in interface MonthModelday - day of week that is a java.util.Calendar
constant like Calendar.MONDAYpublic int getDowFirst()
MonthModel
getDowFirst in interface MonthModelpublic void setMonth(int amonth)
MonthModel
setMonth in interface MonthModelamonth - new month to be used by this model. The values are
Calendar constants like Calendar.JANUARY.MonthModel.getYear()public void setYear(int ayear)
MonthModel
setYear in interface MonthModelayear - year to which the represented month belongs.public int getMonth()
MonthModel
getMonth in interface MonthModelCalendar constant
like Calendar.JANUARY.MonthModel.getYear()public int getYear()
MonthModel
getYear in interface MonthModelMonthModel.getMonth()public void addMonthModelListener(MonthModelListener listener)
MonthModel
addMonthModelListener in interface MonthModellistener - the listener object that is informed about changes in this modelpublic void removeMonthModelListener(MonthModelListener listener)
MonthModel
removeMonthModelListener in interface MonthModellistener - the listener to be removedpublic java.util.EventListener[] getListeners(java.lang.Class listenerType)
protected void fireDowNamesChanged(MonthModelEvent evt)
protected void fireDowFirstChanged(MonthModelEvent evt)
protected void fireMonthNamesChanged(MonthModelEvent evt)
protected void fireMonthChanged(MonthModelEvent evt)
|
Java Date Picker v3.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Visit www.javadatepicker.com for further information or send us your suggestions.
Copyright © 2003-2004 Stand By Soft Ltd. All Rights Reserved.