Project Wonder 2.0

er.extensions
Class ERXDateGrouper

java.lang.Object
  extended bycom.webobjects.appserver.WODisplayGroup
      extended byer.extensions.ERXDateGrouper
All Implemented Interfaces:
EOKeyValueArchiving, EOKeyValueArchiving.Awaking, NSDisposable, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, Serializable

public class ERXDateGrouper
extends WODisplayGroup

Works much the same as a WODisplayGroup. See ERXMonthView and ERXWeekDisplay for examples on how to use it.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class com.webobjects.appserver.WODisplayGroup
WODisplayGroup.Delegate
 
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCoding
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.Null, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.Utility, NSKeyValueCoding.ValueAccessor
 
Nested classes inherited from class com.webobjects.eocontrol.EOKeyValueArchiving
EOKeyValueArchiving._NullValueSupport, EOKeyValueArchiving._NumberSupport, EOKeyValueArchiving._TimestampSupport, EOKeyValueArchiving.Awaking, EOKeyValueArchiving.FinishInitialization, EOKeyValueArchiving.Support
 
Field Summary
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
           
 
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
 
Constructor Summary
ERXDateGrouper()
           
 
Method Summary
protected  NSTimestamp _dateForDayInYear(int year, int day)
           
protected  NSArray _datesForYearStartDays(int year, int startOffset, int count)
           
protected  NSTimestamp _firstDateInSameMonth(NSTimestamp value)
           
protected  NSTimestamp _firstDateInSameWeek(NSTimestamp value)
           
protected  NSDictionary _groupedObjects()
           
protected  Object _groupingKeyForDate(NSTimestamp date)
           
protected  void _reset()
           
protected  NSArray _weekDatesForDate(NSTimestamp week)
           
 NSArray allObjects()
           
 NSTimestamp currentDate()
           
 String dateKeyPath()
           
 NSArray datesForCurrentMonth()
           
 NSArray datesForCurrentWeek()
           
 NSArray datesForWeeksForCurrentMonth()
           
 NSArray displayedObjects()
           
 NSTimestamp firstDateForMonth()
           
 NSTimestamp firstDateInNextMonth()
           
 NSTimestamp firstDateInSameMonth()
           
 int groupingMode()
           
 boolean hasNoObjectsForCurrentDate()
           
 boolean isInMonth()
           
 boolean isSelectedDate()
           
 boolean isToday()
           
 NSTimestamp lastDateForMonth()
           
 void nextDay()
           
 void nextMonth()
           
 void nextWeek()
           
 void nextYear()
           
 void previousDay()
           
 void previousMonth()
           
 void previousWeek()
           
 void previousYear()
           
 NSTimestamp selectedDate()
           
 void setCurrentDate(NSTimestamp value)
           
 void setDataSource(EODataSource value)
           
 void setDateKeyPath(String value)
           
 void setDatesForCurrentWeek(NSArray value)
           
 void setGroupingMode(int value)
           
 void setObjectArray(NSArray value)
           
 void setSelectedDate(NSTimestamp value)
           
 void setWeekStartsMonday(boolean value)
           
 NSTimestamp today()
           
 boolean weekStartsMonday()
           
 
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
 

Field Detail

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 NSArray _objects

_dateKeyPath

protected String _dateKeyPath

_selectedDate

protected NSTimestamp _selectedDate

_currentDate

protected NSTimestamp _currentDate

_firstDateInSameMonth

protected NSTimestamp _firstDateInSameMonth

_firstDateInNextMonth

protected NSTimestamp _firstDateInNextMonth

_today

protected NSTimestamp _today

_currentMonth

protected int _currentMonth

_groupingMode

protected int _groupingMode

_currentWeek

protected int _currentWeek

_currentDayOfMonth

protected int _currentDayOfMonth

_currentDayOfWeek

protected int _currentDayOfWeek

_datesForCurrentWeek

protected NSArray _datesForCurrentWeek

_groupedObjects

protected NSMutableDictionary _groupedObjects

_datesForWeeksForCurrentMonth

protected NSMutableArray _datesForWeeksForCurrentMonth

_weekStartsMonday

protected boolean _weekStartsMonday
Constructor Detail

ERXDateGrouper

public ERXDateGrouper()
Method Detail

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 String dateKeyPath()

setDateKeyPath

public void setDateKeyPath(String value)

groupingMode

public int groupingMode()

setGroupingMode

public void setGroupingMode(int value)

allObjects

public NSArray allObjects()

setObjectArray

public void setObjectArray(NSArray value)

setDataSource

public void setDataSource(EODataSource value)

today

public NSTimestamp today()

_reset

protected void _reset()

selectedDate

public NSTimestamp selectedDate()

setSelectedDate

public void setSelectedDate(NSTimestamp value)

currentDate

public NSTimestamp currentDate()

setCurrentDate

public void setCurrentDate(NSTimestamp value)

_groupingKeyForDate

protected Object _groupingKeyForDate(NSTimestamp date)

_groupedObjects

protected NSDictionary _groupedObjects()

displayedObjects

public NSArray displayedObjects()

_dateForDayInYear

protected NSTimestamp _dateForDayInYear(int year,
                                        int day)

_datesForYearStartDays

protected NSArray _datesForYearStartDays(int year,
                                         int startOffset,
                                         int count)

_firstDateInSameWeek

protected NSTimestamp _firstDateInSameWeek(NSTimestamp value)

_firstDateInSameMonth

protected NSTimestamp _firstDateInSameMonth(NSTimestamp value)

firstDateInSameMonth

public NSTimestamp firstDateInSameMonth()

firstDateInNextMonth

public NSTimestamp firstDateInNextMonth()

_weekDatesForDate

protected NSArray _weekDatesForDate(NSTimestamp week)

lastDateForMonth

public NSTimestamp lastDateForMonth()

firstDateForMonth

public NSTimestamp firstDateForMonth()

datesForWeeksForCurrentMonth

public NSArray datesForWeeksForCurrentMonth()

setDatesForCurrentWeek

public void setDatesForCurrentWeek(NSArray value)

datesForCurrentWeek

public NSArray datesForCurrentWeek()

datesForCurrentMonth

public 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()

Last updated: Do, Dez 9, 2004 • 12:46 PM CET

Copyright © 2002 – 2004 Project Wonder.