Project Wonder 5.0

er.extensions.components
Class ERXDateGrouper

java.lang.Object
  extended by com.webobjects.appserver.WODisplayGroup
      extended by 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 Class Summary
 
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
 
Field Summary
protected  com.webobjects.foundation.NSTimestamp _currentDate
           
protected  int _currentDayOfMonth
           
protected  int _currentDayOfWeek
           
protected  int _currentMonth
           
protected  int _currentWeek
           
protected  java.lang.String _dateKeyPath
           
protected  com.webobjects.foundation.NSArray _datesForCurrentWeek
           
protected  com.webobjects.foundation.NSMutableArray _datesForWeeksForCurrentMonth
           
protected  com.webobjects.foundation.NSTimestamp _firstDateInNextMonth
           
protected  com.webobjects.foundation.NSTimestamp _firstDateInSameMonth
           
protected  com.webobjects.foundation.NSMutableDictionary _groupedObjects
           
protected  int _groupingMode
           
protected  com.webobjects.foundation.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
           
 
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  com.webobjects.foundation.NSTimestamp _dateForDayInYear(int year, int day)
           
protected  com.webobjects.foundation.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  com.webobjects.foundation.NSDictionary _groupedObjects()
           
protected  java.lang.Object _groupingKeyForDate(com.webobjects.foundation.NSTimestamp date)
           
protected  void _reset()
           
protected  com.webobjects.foundation.NSArray _weekDatesForDate(com.webobjects.foundation.NSTimestamp week)
           
 com.webobjects.foundation.NSArray allObjects()
           
 com.webobjects.foundation.NSTimestamp currentDate()
           
 java.lang.String dateKeyPath()
           
 com.webobjects.foundation.NSArray datesForCurrentMonth()
           
 com.webobjects.foundation.NSArray datesForCurrentWeek()
           
 com.webobjects.foundation.NSArray datesForWeeksForCurrentMonth()
           
 com.webobjects.foundation.NSArray displayedObjects()
           
 com.webobjects.foundation.NSTimestamp firstDateForMonth()
           
 com.webobjects.foundation.NSTimestamp firstDateInNextMonth()
           
 com.webobjects.foundation.NSTimestamp firstDateInSameMonth()
           
 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(java.lang.String value)
           
 void setDatesForCurrentWeek(com.webobjects.foundation.NSArray value)
           
 void setGroupingMode(int value)
           
 void setObjectArray(com.webobjects.foundation.NSArray value)
           
 void setSelectedDate(java.util.Date date)
           
 void setWeekStartsMonday(boolean value)
           
 com.webobjects.foundation.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 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
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 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()

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.