er.extensions.components
Class ERXDateGrouper
java.lang.Object
com.webobjects.appserver.WODisplayGroup
er.extensions.components.ERXDateGrouper
- All Implemented Interfaces:
- com.webobjects.eocontrol.EOKeyValueArchiving, com.webobjects.eocontrol.EOKeyValueArchiving.Awaking, com.webobjects.foundation.NSDisposable, com.webobjects.foundation.NSKeyValueCoding, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, java.io.Serializable
public class ERXDateGrouper
- extends com.webobjects.appserver.WODisplayGroup
Works much the same as a WODisplayGroup
.
See ERXMonthView
for an example on how to use it.
- See Also:
- Serialized Form
- Author:
- ak on Mon Nov 04 2002
Nested classes/interfaces inherited from class com.webobjects.appserver.WODisplayGroup |
com.webobjects.appserver.WODisplayGroup.Delegate |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCoding |
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.Null, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.Utility, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor |
Nested classes/interfaces inherited from interface com.webobjects.eocontrol.EOKeyValueArchiving |
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 |
Fields inherited from class com.webobjects.appserver.WODisplayGroup |
DisplayGroupWillFetchNotification |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding |
_CLASS, NullValue |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling |
_CLASS |
Fields inherited from interface com.webobjects.foundation.NSDisposable |
_CLASS |
Fields inherited from interface com.webobjects.eocontrol.EOKeyValueArchiving |
_CLASS |
Fields inherited from interface com.webobjects.eocontrol.EOKeyValueArchiving.Awaking |
_CLASS |
Methods inherited from class com.webobjects.appserver.WODisplayGroup |
_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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DAY
public static final int DAY
- See Also:
- Constant Field Values
MONTH
public static final int MONTH
- See Also:
- Constant Field Values
WEEK
public static final int WEEK
- See Also:
- Constant Field Values
YEAR
public static final int YEAR
- See Also:
- Constant Field Values
_objects
protected com.webobjects.foundation.NSArray _objects
_dateKeyPath
protected java.lang.String _dateKeyPath
_selectedDate
protected com.webobjects.foundation.NSTimestamp _selectedDate
_currentDate
protected com.webobjects.foundation.NSTimestamp _currentDate
_firstDateInSameMonth
protected com.webobjects.foundation.NSTimestamp _firstDateInSameMonth
_firstDateInNextMonth
protected com.webobjects.foundation.NSTimestamp _firstDateInNextMonth
_today
protected com.webobjects.foundation.NSTimestamp _today
_currentMonth
protected int _currentMonth
_groupingMode
protected int _groupingMode
_currentWeek
protected int _currentWeek
_currentDayOfMonth
protected int _currentDayOfMonth
_currentDayOfWeek
protected int _currentDayOfWeek
_datesForCurrentWeek
protected com.webobjects.foundation.NSArray _datesForCurrentWeek
_groupedObjects
protected com.webobjects.foundation.NSMutableDictionary _groupedObjects
_datesForWeeksForCurrentMonth
protected com.webobjects.foundation.NSMutableArray _datesForWeeksForCurrentMonth
_weekStartsMonday
protected boolean _weekStartsMonday
ERXDateGrouper
public ERXDateGrouper()
weekStartsMonday
public boolean weekStartsMonday()
setWeekStartsMonday
public void setWeekStartsMonday(boolean value)
hasNoObjectsForCurrentDate
public boolean hasNoObjectsForCurrentDate()
isToday
public boolean isToday()
isSelectedDate
public boolean isSelectedDate()
isInMonth
public boolean isInMonth()
dateKeyPath
public java.lang.String dateKeyPath()
setDateKeyPath
public void setDateKeyPath(java.lang.String value)
groupingMode
public int groupingMode()
setGroupingMode
public void setGroupingMode(int value)
allObjects
public com.webobjects.foundation.NSArray allObjects()
- Overrides:
allObjects
in class com.webobjects.appserver.WODisplayGroup
setObjectArray
public void setObjectArray(com.webobjects.foundation.NSArray value)
- Overrides:
setObjectArray
in class com.webobjects.appserver.WODisplayGroup
setDataSource
public void setDataSource(com.webobjects.eocontrol.EODataSource value)
- Overrides:
setDataSource
in class com.webobjects.appserver.WODisplayGroup
today
public com.webobjects.foundation.NSTimestamp today()
_reset
protected void _reset()
selectedDate
public com.webobjects.foundation.NSTimestamp selectedDate()
setSelectedDate
public void setSelectedDate(java.util.Date date)
currentDate
public com.webobjects.foundation.NSTimestamp currentDate()
setCurrentDate
public void setCurrentDate(com.webobjects.foundation.NSTimestamp value)
_groupingKeyForDate
protected java.lang.Object _groupingKeyForDate(com.webobjects.foundation.NSTimestamp date)
_groupedObjects
protected com.webobjects.foundation.NSDictionary _groupedObjects()
displayedObjects
public com.webobjects.foundation.NSArray displayedObjects()
- Overrides:
displayedObjects
in class com.webobjects.appserver.WODisplayGroup
_dateForDayInYear
protected com.webobjects.foundation.NSTimestamp _dateForDayInYear(int year,
int day)
_datesForYearStartDays
protected com.webobjects.foundation.NSArray _datesForYearStartDays(int year,
int startOffset,
int count)
_firstDateInSameWeek
protected com.webobjects.foundation.NSTimestamp _firstDateInSameWeek(com.webobjects.foundation.NSTimestamp value)
_firstDateInSameMonth
protected com.webobjects.foundation.NSTimestamp _firstDateInSameMonth(com.webobjects.foundation.NSTimestamp value)
firstDateInSameMonth
public com.webobjects.foundation.NSTimestamp firstDateInSameMonth()
firstDateInNextMonth
public com.webobjects.foundation.NSTimestamp firstDateInNextMonth()
_weekDatesForDate
protected com.webobjects.foundation.NSArray _weekDatesForDate(com.webobjects.foundation.NSTimestamp week)
lastDateForMonth
public com.webobjects.foundation.NSTimestamp lastDateForMonth()
firstDateForMonth
public com.webobjects.foundation.NSTimestamp firstDateForMonth()
datesForWeeksForCurrentMonth
public com.webobjects.foundation.NSArray datesForWeeksForCurrentMonth()
setDatesForCurrentWeek
public void setDatesForCurrentWeek(com.webobjects.foundation.NSArray value)
datesForCurrentWeek
public com.webobjects.foundation.NSArray datesForCurrentWeek()
datesForCurrentMonth
public com.webobjects.foundation.NSArray datesForCurrentMonth()
nextMonth
public void nextMonth()
previousMonth
public void previousMonth()
nextDay
public void nextDay()
previousDay
public void previousDay()
nextWeek
public void nextWeek()
previousWeek
public void previousWeek()
nextYear
public void nextYear()
previousYear
public void previousYear()
Copyright © 2002 – 2007 Project Wonder.