|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.blogspot.applications4android.comicreader.comictypes.DailyGoComicsCalendar
public class DailyGoComicsCalendar
Class responsible for querying the calendar.js from gocomics
Field Summary | |
---|---|
int |
mCurrMon
current month |
int |
mCurrYr
current year |
int[] |
mValidDays
array of valid days for this month |
Constructor Summary | |
---|---|
DailyGoComicsCalendar()
|
Method Summary | |
---|---|
void |
findValidDays(int year,
int mon,
int increment)
gets the valid days for the given year and month. |
java.util.Calendar |
getCurrentCalendar()
Helper function to construct the calendar instance from the current temporary state |
java.util.Calendar |
getNextDate()
get the next date wrt the current state |
java.util.Calendar |
getPreviousDate()
get the previous date wrt the current state |
java.util.Calendar |
getRandomDate(java.util.Calendar first,
java.util.Calendar latest)
get a random date wrt the given bounds |
java.util.Calendar |
setDate(java.util.Calendar date,
int curr)
This will be used by first/latest calendar 'getters' in gocomics |
void |
setGoComics(DailyGoComicsCom gcc)
set the gocomics instance for this object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int mCurrYr
public int mCurrMon
public int[] mValidDays
Constructor Detail |
---|
public DailyGoComicsCalendar()
Method Detail |
---|
public void setGoComics(DailyGoComicsCom gcc)
gcc
- gocomics instancepublic java.util.Calendar getCurrentCalendar()
public java.util.Calendar getPreviousDate()
public java.util.Calendar getNextDate()
public java.util.Calendar setDate(java.util.Calendar date, int curr)
date
- date of the first/latest calendarcurr
- >0 means first calendar, <0 means latest calendar, else the same date as in 'date'
public java.util.Calendar getRandomDate(java.util.Calendar first, java.util.Calendar latest)
public void findValidDays(int year, int mon, int increment)
year
- desired yearmon
- desired monthincrement
- whether to increment or decrement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |