|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
mvp.Model
caltool.view.YearlyCalendar
public class YearlyCalendar
A YearlyCalendar contains a small view for each month, organized in four 3-month rows. The primarly access interface is through getFirstDay and getNumberOfDays methods. These methods take a month name and deliver the first day of that month and its number of days, respectively.
Since the yearly calendar contains no scheduled data itself, there is no need for any model data storage here. Rather, the access methods consult the calendar db to dynamically generate the date number values for each month.
Field Summary | |
---|---|
protected int |
yearNumber
The number of the year, between 0 and 9999 |
Fields inherited from class mvp.Model |
---|
view |
Constructor Summary | |
---|---|
YearlyCalendar(CalendarDB calDB)
Construct this with the given CalendarDB. |
Method Summary | |
---|---|
DayName |
getFirstDay(MonthName month)
Return the first day of the given month. |
int |
getNumberOfDays(MonthName month)
Return the number of days in the given month. |
int |
getNumberOfWeeks(MonthName month)
Return the number of weeks in the given month. |
int |
getYearNumber()
Return the year number. |
void |
update(java.util.Observable o,
java.lang.Object arg)
Update this' data based on the current selection in the current calendar. |
Methods inherited from class mvp.Model |
---|
dump, exit, getView, setView |
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int yearNumber
Constructor Detail |
---|
public YearlyCalendar(CalendarDB calDB)
Method Detail |
---|
public int getYearNumber()
public DayName getFirstDay(MonthName month)
public int getNumberOfWeeks(MonthName month)
public int getNumberOfDays(MonthName month)
public void update(java.util.Observable o, java.lang.Object arg)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |