public class ERXDateGrouper extends WODisplayGroup
WODisplayGroup
.
See ERXMonthView
for an example on how to use it.WODisplayGroup.Delegate
com.webobjects.foundation.NSKeyValueCoding._BooleanFieldBinding, com.webobjects.foundation.NSKeyValueCoding._BooleanMethodBinding, com.webobjects.foundation.NSKeyValueCoding._FieldBinding, com.webobjects.foundation.NSKeyValueCoding._ForwardingBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding._MethodBinding, com.webobjects.foundation.NSKeyValueCoding._NumberFieldBinding, com.webobjects.foundation.NSKeyValueCoding._NumberMethodBinding, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding.DefaultImplementation, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.MapImplementation, com.webobjects.foundation.NSKeyValueCoding.Null<T>, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.Utility, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor
com.webobjects.eocontrol.EOKeyValueArchiving._NullValueSupport, com.webobjects.eocontrol.EOKeyValueArchiving._NumberSupport, com.webobjects.eocontrol.EOKeyValueArchiving._TimestampSupport, com.webobjects.eocontrol.EOKeyValueArchiving.Awaking, com.webobjects.eocontrol.EOKeyValueArchiving.FinishInitialization, com.webobjects.eocontrol.EOKeyValueArchiving.Support
Modifier and Type | Field and Description |
---|---|
protected com.webobjects.foundation.NSTimestamp |
_currentDate |
protected int |
_currentDayOfMonth |
protected int |
_currentDayOfWeek |
protected int |
_currentMonth |
protected int |
_currentWeek |
protected String |
_dateKeyPath |
protected NSArray |
_datesForCurrentWeek |
protected NSMutableArray |
_datesForWeeksForCurrentMonth |
protected com.webobjects.foundation.NSTimestamp |
_firstDateInNextMonth |
protected com.webobjects.foundation.NSTimestamp |
_firstDateInSameMonth |
protected NSMutableDictionary |
_groupedObjects |
protected int |
_groupingMode |
protected NSArray |
_objects |
protected com.webobjects.foundation.NSTimestamp |
_selectedDate |
protected com.webobjects.foundation.NSTimestamp |
_today |
protected boolean |
_weekStartsMonday |
static int |
DAY |
static int |
MONTH |
static int |
WEEK |
static int |
YEAR |
DisplayGroupWillFetchNotification
Constructor and Description |
---|
ERXDateGrouper() |
Modifier and Type | Method and Description |
---|---|
protected com.webobjects.foundation.NSTimestamp |
_dateForDayInYear(int year,
int day) |
protected NSArray |
_datesForYearStartDays(int year,
int startOffset,
int count) |
protected com.webobjects.foundation.NSTimestamp |
_firstDateInSameMonth(com.webobjects.foundation.NSTimestamp value) |
protected com.webobjects.foundation.NSTimestamp |
_firstDateInSameWeek(com.webobjects.foundation.NSTimestamp value) |
protected NSDictionary |
_groupedObjects() |
protected Object |
_groupingKeyForDate(com.webobjects.foundation.NSTimestamp date) |
protected void |
_reset() |
protected NSArray |
_weekDatesForDate(com.webobjects.foundation.NSTimestamp week) |
NSArray |
allObjects() |
com.webobjects.foundation.NSTimestamp |
currentDate() |
String |
dateKeyPath() |
NSArray |
datesForCurrentMonth() |
NSArray |
datesForCurrentWeek() |
NSArray |
datesForWeeksForCurrentMonth() |
NSArray |
displayedObjects() |
com.webobjects.foundation.NSTimestamp |
firstDateForMonth() |
com.webobjects.foundation.NSTimestamp |
firstDateInNextMonth() |
com.webobjects.foundation.NSTimestamp |
firstDateInSameMonth() |
void |
goToToday() |
int |
groupingMode() |
boolean |
hasNoObjectsForCurrentDate() |
boolean |
isInMonth() |
boolean |
isSelectedDate() |
boolean |
isToday() |
com.webobjects.foundation.NSTimestamp |
lastDateForMonth() |
void |
nextDay() |
void |
nextMonth() |
void |
nextWeek() |
void |
nextYear() |
void |
previousDay() |
void |
previousMonth() |
void |
previousWeek() |
void |
previousYear() |
com.webobjects.foundation.NSTimestamp |
selectedDate() |
void |
setCurrentDate(com.webobjects.foundation.NSTimestamp value) |
void |
setDataSource(com.webobjects.eocontrol.EODataSource value) |
void |
setDateKeyPath(String value) |
void |
setDatesForCurrentWeek(NSArray value) |
void |
setGroupingMode(int value) |
void |
setObjectArray(NSArray value) |
void |
setSelectedDate(Date date) |
void |
setWeekStartsMonday(boolean value) |
com.webobjects.foundation.NSTimestamp |
today() |
boolean |
weekStartsMonday() |
_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 com.webobjects.foundation.NSTimestamp _selectedDate
protected com.webobjects.foundation.NSTimestamp _currentDate
protected com.webobjects.foundation.NSTimestamp _firstDateInSameMonth
protected com.webobjects.foundation.NSTimestamp _firstDateInNextMonth
protected com.webobjects.foundation.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(com.webobjects.eocontrol.EODataSource value)
setDataSource
in class WODisplayGroup
public com.webobjects.foundation.NSTimestamp today()
protected void _reset()
public com.webobjects.foundation.NSTimestamp selectedDate()
public void setSelectedDate(Date date)
public com.webobjects.foundation.NSTimestamp currentDate()
public void setCurrentDate(com.webobjects.foundation.NSTimestamp value)
protected Object _groupingKeyForDate(com.webobjects.foundation.NSTimestamp date)
protected NSDictionary _groupedObjects()
public NSArray displayedObjects()
displayedObjects
in class WODisplayGroup
protected com.webobjects.foundation.NSTimestamp _dateForDayInYear(int year, int day)
protected NSArray _datesForYearStartDays(int year, int startOffset, int count)
protected com.webobjects.foundation.NSTimestamp _firstDateInSameWeek(com.webobjects.foundation.NSTimestamp value)
protected com.webobjects.foundation.NSTimestamp _firstDateInSameMonth(com.webobjects.foundation.NSTimestamp value)
public com.webobjects.foundation.NSTimestamp firstDateInSameMonth()
public com.webobjects.foundation.NSTimestamp firstDateInNextMonth()
protected NSArray _weekDatesForDate(com.webobjects.foundation.NSTimestamp week)
public com.webobjects.foundation.NSTimestamp lastDateForMonth()
public com.webobjects.foundation.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 – 2020 Project Wonder.