public class ERXDateGrouper extends WODisplayGroup
WODisplayGroup
.
See ERXMonthView
for an example on how to use it.WODisplayGroup.Delegate
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.DefaultImplementation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.Utility, NSKeyValueCoding.ValueAccessor
EOKeyValueArchiving._NullValueSupport, EOKeyValueArchiving._NumberSupport, EOKeyValueArchiving._TimestampSupport, EOKeyValueArchiving.Awaking, EOKeyValueArchiving.FinishInitialization, EOKeyValueArchiving.Support
Modifier and Type | Field and Description |
---|---|
protected NSTimestamp |
_currentDate |
protected int |
_currentDayOfMonth |
protected int |
_currentDayOfWeek |
protected int |
_currentMonth |
protected int |
_currentWeek |
protected String |
_dateKeyPath |
protected NSArray |
_datesForCurrentWeek |
protected NSMutableArray |
_datesForWeeksForCurrentMonth |
protected NSTimestamp |
_firstDateInNextMonth |
protected NSTimestamp |
_firstDateInSameMonth |
protected NSMutableDictionary |
_groupedObjects |
protected int |
_groupingMode |
protected NSArray |
_objects |
protected NSTimestamp |
_selectedDate |
protected NSTimestamp |
_today |
protected boolean |
_weekStartsMonday |
static int |
DAY |
static int |
MONTH |
static int |
WEEK |
static int |
YEAR |
DisplayGroupWillFetchNotification
_CLASS, NullValue
_CLASS
_CLASS
_CLASS
_CLASS
Constructor and Description |
---|
ERXDateGrouper() |
_beginObserverNotification, _deleteObject, _insertObjectAtIndex, _lastObserverNotified, allQualifierOperators, awakeFromKeyValueUnarchiver, batchCount, clearSelection, currentBatchIndex, dataSource, decodeWithKeyValueUnarchiver, defaultStringMatchFormat, defaultStringMatchOperator, delegate, delete, deleteObjectAtIndex, deleteSelection, detailKey, displayBatchContainingSelectedObject, displayNextBatch, displayPreviousBatch, dispose, editingContextPresentErrorMessage, encodeWithCoder, encodeWithKeyValueArchiver, endEditing, fetch, fetchesOnLoad, finishInitialization, globalDefaultForValidatesChangesImmediately, globalDefaultStringMatchFormat, globalDefaultStringMatchOperator, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasDetailDataSource, hasMultipleBatches, indexOfFirstDisplayedObject, indexOfLastDisplayedObject, initWithCoder, inQueryMode, insert, insertedObjectDefaultValues, insertNewObjectAtIndex, insertObjectAtIndex, localKeys, masterObject, numberOfObjectsPerBatch, objectsChangedInEditingContext, objectsInvalidatedInEditingContext, qualifier, qualifierFromQueryValues, qualifyDataSource, qualifyDisplayGroup, queryBindings, queryMatch, queryMax, queryMin, queryOperator, redisplay, relationalQualifierOperators, selectedObject, selectedObjects, selectionIndexes, selectNext, selectObject, selectObjectsIdenticalTo, selectObjectsIdenticalToSelectFirstOnNoMatch, selectPrevious, selectsFirstObjectAfterFetch, setCurrentBatchIndex, setDefaultStringMatchFormat, setDefaultStringMatchOperator, setDelegate, setDetailKey, setFetchesOnLoad, setGlobalDefaultForValidatesChangesImmediately, setGlobalDefaultStringMatchFormat, setGlobalDefaultStringMatchOperator, setInQueryMode, setInsertedObjectDefaultValues, setLocalKeys, setMasterObject, setNumberOfObjectsPerBatch, setQualifier, setSelectedObject, setSelectedObjects, setSelectionIndexes, setSelectsFirstObjectAfterFetch, setSortOrderings, setValidatesChangesImmediately, sortOrderings, stringQualifierOperators, takeValueForKey, toString, unableToSetNullForKey, undoManager, updateDisplayedObjects, validatesChangesImmediately, valueForKey, willChange
public static final int DAY
public static final int MONTH
public static final int WEEK
public static final int YEAR
protected NSArray _objects
protected String _dateKeyPath
protected NSTimestamp _selectedDate
protected NSTimestamp _currentDate
protected NSTimestamp _firstDateInSameMonth
protected NSTimestamp _firstDateInNextMonth
protected NSTimestamp _today
protected int _currentMonth
protected int _groupingMode
protected int _currentWeek
protected int _currentDayOfMonth
protected int _currentDayOfWeek
protected NSArray _datesForCurrentWeek
protected NSMutableDictionary _groupedObjects
protected NSMutableArray _datesForWeeksForCurrentMonth
protected boolean _weekStartsMonday
public boolean weekStartsMonday()
public void setWeekStartsMonday(boolean value)
public boolean hasNoObjectsForCurrentDate()
public boolean isToday()
public boolean isSelectedDate()
public boolean isInMonth()
public String dateKeyPath()
public void setDateKeyPath(String value)
public int groupingMode()
public void setGroupingMode(int value)
public NSArray allObjects()
allObjects
in class WODisplayGroup
public void setObjectArray(NSArray value)
setObjectArray
in class WODisplayGroup
public void setDataSource(EODataSource value)
setDataSource
in class WODisplayGroup
public NSTimestamp today()
protected void _reset()
public NSTimestamp selectedDate()
public void setSelectedDate(Date date)
public NSTimestamp currentDate()
public void setCurrentDate(NSTimestamp value)
protected Object _groupingKeyForDate(NSTimestamp date)
protected NSDictionary _groupedObjects()
public NSArray displayedObjects()
displayedObjects
in class WODisplayGroup
protected NSTimestamp _dateForDayInYear(int year, int day)
protected NSArray _datesForYearStartDays(int year, int startOffset, int count)
protected NSTimestamp _firstDateInSameWeek(NSTimestamp value)
protected NSTimestamp _firstDateInSameMonth(NSTimestamp value)
public NSTimestamp firstDateInSameMonth()
public NSTimestamp firstDateInNextMonth()
protected NSArray _weekDatesForDate(NSTimestamp week)
public NSTimestamp lastDateForMonth()
public NSTimestamp firstDateForMonth()
public NSArray datesForWeeksForCurrentMonth()
public void setDatesForCurrentWeek(NSArray value)
public NSArray datesForCurrentWeek()
public NSArray datesForCurrentMonth()
public void goToToday()
public void nextMonth()
public void previousMonth()
public void nextDay()
public void previousDay()
public void nextWeek()
public void previousWeek()
public void nextYear()
public void previousYear()
Copyright © 2002 – 2024 Project Wonder.