|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.cc.framework.ui.painter.def.scheduler.CalendarIterator
Iterator with a resolution of one day
| Field Summary | |
private java.util.Calendar |
i
The current Iteration element |
private java.util.Calendar |
initialDate
The initial date for this iterator |
| Constructor Summary | |
CalendarIterator(java.util.Calendar calendar)
Constructor |
|
| Method Summary | |
java.util.Calendar |
current()
|
int |
getDayOfMonth()
Gets the value for the DAY_OF_MONTH time field. |
int |
getDayOfWeek()
Gets the value for the DAY_OF_WEEK time field. |
java.util.Calendar |
getInitial()
Returns the initial Date for this iterator |
int |
getMonthDelta()
This member calculates the month offset of the current iteration element from the initial Date. |
int |
getWeekOfYear()
Gets the value for the WEEK_OF_YEAR time field. |
void |
next()
Positions the iterator on the next day |
void |
restart()
Restarts the iterator |
void |
restart(int firstDayOfWeek,
int dayOfWeekMask)
Restarts the iterator to the first day of week |
private boolean |
showDay(int dayOfWeekMask,
int dayOfWeek)
this method checks if a given day should be displayed. |
void |
skip(int days)
Skips the iterator the given number of days |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private java.util.Calendar initialDate
private java.util.Calendar i
| Constructor Detail |
public CalendarIterator(java.util.Calendar calendar)
calendar - The initial date| Method Detail |
public java.util.Calendar getInitial()
public void restart()
private boolean showDay(int dayOfWeekMask,
int dayOfWeek)
dayOfWeekMask - A mask containing all the visible days. The iterator will skip
any hidden daydayOfWeek - the day
true if the day should be shown
public void restart(int firstDayOfWeek,
int dayOfWeekMask)
firstDayOfWeek - The first day of the weekdayOfWeekMask - A mask containing all the visible days. The iterator will skip
any hidden daypublic void skip(int days)
days - The number of days to skippublic void next()
public java.util.Calendar current()
public int getWeekOfYear()
public int getDayOfWeek()
public int getDayOfMonth()
public int getMonthDelta()
public java.lang.String toString()
Object.toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||