|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.calendar.CalendarEntryList
public class CalendarEntryList
Allows to sort and filter several calendar entries easily
Copyright Enough Software 2010
| Constructor Summary | |
|---|---|
CalendarEntryList()
|
|
| Method Summary | |
|---|---|
void |
add(CalendarEntry entry)
Adds a CalendarEntry to this list |
void |
add(CalendarEntryList entryList)
Adds a list of entries. |
void |
clear()
Clears the complete list, i.e. |
int |
compare(Object o1,
Object o2)
Compares two objects. |
boolean |
containsEntryWithGuid(long guid)
Checks if this list contains at least one CalendaryEntry with the specified global unique ID |
CalendarEntry[] |
getEntries()
Retrieves all entries of this list sorted by their start date (and then their summary) |
CalendarEntry[] |
getEntriesForDay(TimePoint day)
Retrieves all entries for the specified day |
CalendarEntryList |
getEntriesForPeriod(TimePeriod period)
Retrieves all entries for the specified time period. |
Object[] |
getInternalArray()
Provides access to the internal array of this list. |
boolean |
remove(CalendarEntry entry)
Removes a CalendarEntry from this list |
boolean |
remove(long guid)
Removes a CalendarEntry from this list |
CalendarEntry[] |
searchEntries(String searchString,
boolean onlyAtStart)
Searches entries that start or include the specified search term in their summary. |
int |
size()
Retrieves the size of this list |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CalendarEntryList()
| Method Detail |
|---|
public void add(CalendarEntry entry)
entry - the entrypublic void add(CalendarEntryList entryList)
entryList - The list with the entries to add.public boolean remove(CalendarEntry entry)
entry - the entry
public boolean remove(long guid)
guid - the GUID of the entry that should be removed
public void clear()
public int size()
public CalendarEntry[] getEntries()
public CalendarEntry[] getEntriesForDay(TimePoint day)
day - the day
public CalendarEntryList getEntriesForPeriod(TimePeriod period)
period -
public CalendarEntry[] searchEntries(String searchString,
boolean onlyAtStart)
searchString - the search termonlyAtStart - true when the entry summary should start with the given search term
public int compare(Object o1,
Object o2)
Comparator
compare in interface Comparatoro1 - the first objecto2 - the object that is compared with o1
public Object[] getInternalArray()
public boolean containsEntryWithGuid(long guid)
guid - the global unique ID of the CalendarEntry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||