|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.monad.homerun.base.DataObject
com.monad.homerun.action.Month
public class Month
The Month class holds an ordered list of entries for a calendar month. These entries currently include only date bindings, viz. actions set to start, run, or stop at a designated date/time.
Constructor Summary | |
---|---|
Month()
|
|
Month(int year,
int month)
|
Method Summary | |
---|---|
void |
addEntry(DateBinding entry)
Adds a DateBinding entry to the month |
DateBinding[] |
getEntries()
Returns all the month entries in a time-ordered array |
DateBinding[] |
getEntries(short day)
Returns all the month entries for a given day in a time-ordered array |
DateBinding[] |
getEntriesAfter(short day,
short minutes)
Returns all the month entries for a minute after a given day and time in a time-ordered array |
DateBinding |
getEntry(int index)
Returns a month entry at the passed index |
java.lang.Integer[] |
getEntryDays()
Returns all the days of the month containing entries in an ordered array |
int |
getMonth()
|
int |
getNumEntries()
Returns the number of entries in the month |
int |
getYear()
|
void |
loadEntries(DateBinding[] entries)
|
void |
removeEntry(DateBinding entry)
Removes a time binding entry from the month |
void |
removeEntry(int index)
|
Methods inherited from class com.monad.homerun.base.DataObject |
---|
getCategory, getModificationTime, getName, getNote, setCategory, setModificationTime, setName, setNote |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Month()
public Month(int year, int month)
Method Detail |
---|
public void loadEntries(DateBinding[] entries)
public void removeEntry(DateBinding entry)
entry
- the date binding to removepublic void addEntry(DateBinding entry)
entry
- the date binding to addpublic DateBinding[] getEntries()
public DateBinding[] getEntries(short day)
day
- the day of the month
public DateBinding[] getEntriesAfter(short day, short minutes)
day
- the day of the monthminutes
- the minutes of the day
public java.lang.Integer[] getEntryDays()
public DateBinding getEntry(int index)
index
- the index in the month
public void removeEntry(int index)
public int getNumEntries()
public int getYear()
public int getMonth()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |