|
Project Wonder 5.0 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.webobjects.appserver.WOElement
com.webobjects.appserver.WOComponent
er.extensions.components.ERXComponent
er.extensions.components.ERXNonSynchronizingComponent
er.extensions.components.ERXStatelessComponent
er.coolcomponents.CCDatePicker
public class CCDatePicker
Wrapper around http://www.frequency-decoder.com/2009/09/09/unobtrusive-date-picker-widget-v5/ Because many options take a date with the format of YYYYMMDD there is a utility method: ERMDatePicker.optionsStringForTimestamp(NSTimestamp ts) that will return a correctly formatted string for a given NSTimestamp.
| Bindings | |
dateIn | an NSTimestamp supplying the value for the field (required) |
cssFile | name of the css file (defaults to datepicker.css) |
cssFramework | name of the framework containing the css file (defaults to ERModernDirectToWeb) |
dateformat | string containing the date format for the field |
injectStylesheet | choose whether to dynamically inject the datepicker.css at component load.
if used in a ajax loaded component, it may be safer to load this manually.
See date-picker documentation for following optional values: |
hightlightDays | string - identifies days to highlight on the calendar (format: [0,0,0,0,0,1,1]) |
rangeLow | string - date in format YYYYMMDD defining the lowest selectable date |
rangeHigh | string - date in format YYYYMMDD defining the highest selectable date |
disabledDays | string - identifies days on calendar that are disabled (format: [1,0,1,0,1,0,1]) |
disabledDates | string - date range of disabled dates (format: YYYYMMDD:YYYYMMDD or YYYYMMDD if single date) |
enabledDates | string - date range of enabled dates (format: YYYYMMDD:YYYYMMDD or YYYYMMDD if single date) |
noFadeEffect | boolean - disables fade in/out effect |
finalOpacity | number - sets final opacity (20 - 100) |
showWeeks | boolean - show week numbers |
noTodayButton | boolean - hide the "Today" button |
cursorDate | string - date in format YYYYMMDD that sets the default cursor date |
dragDisabled | boolean - disable dragging of calendar |
fillGrid | boolean - fill all dates, not just those in current month |
constrainSelection | boolean - if fillGrid is yes, constrain selection to current month (defaults to true) |
hideInput | boolean - hide the input field (don't use if hideControl is specified) |
hideControl | boolean - hide the calendar button (don't use if hideInput is specified) |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.webobjects.appserver.WOComponent |
|---|
WOComponent._EventLoggingEnabler, WOComponent.Event |
| Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
|---|
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility |
| Nested classes/interfaces inherited from interface com.webobjects.foundation.NSValidation |
|---|
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException |
| Field Summary | |
|---|---|
static String |
CSS_FILENAME
|
static String |
FRAMEWORK_NAME
|
| Fields inherited from class er.extensions.components.ERXComponent |
|---|
_dynamicBindings |
| Fields inherited from class com.webobjects.appserver.WOComponent |
|---|
_Extension, _IsEventLoggingEnabled, _keyAssociations |
| Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling |
|---|
_CLASS |
| Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
|---|
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator |
| Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding |
|---|
NullValue |
| Fields inherited from interface com.webobjects.foundation.NSValidation |
|---|
_CLASS |
| Constructor Summary | |
|---|---|
CCDatePicker(WOContext context)
|
|
| Method Summary | |
|---|---|
void |
appendToResponse(WOResponse response,
WOContext context)
Adds date-picker.js to the header or includes it in an Ajax friendly manner. |
String |
dateformat()
|
String |
dateFormatString()
|
String |
datePickerCreateScript()
|
String |
datePickerOpenScript()
|
String |
elementID()
|
String |
name()
|
static String |
optionsStringForTimestamp(NSTimestamp ts)
|
void |
reset()
|
void |
setDateformat(String value)
|
void |
setValue(NSTimestamp newDateIn)
|
NSTimestamp |
value()
|
| Methods inherited from class er.extensions.components.ERXStatelessComponent |
|---|
isStateless, valueForBooleanBinding, valueForBooleanBinding, valueForBooleanBinding, valueForIntBinding, valueForObjectBinding, valueForObjectBinding |
| Methods inherited from class er.extensions.components.ERXNonSynchronizingComponent |
|---|
invokeAction, resetCachedBindingsInStatefulComponent, synchronizesVariablesWithBindings, takeValuesFromRequest |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String FRAMEWORK_NAME
public static final String CSS_FILENAME
| Constructor Detail |
|---|
public CCDatePicker(WOContext context)
| Method Detail |
|---|
public void reset()
reset in class ERXStatelessComponentpublic NSTimestamp value()
public void setValue(NSTimestamp newDateIn)
public void appendToResponse(WOResponse response,
WOContext context)
appendToResponse in class ERXNonSynchronizingComponentresponse - to which we are appendingcontext - context of the responseERXNonSynchronizingComponent.appendToResponse(com.webobjects.appserver.WOResponse, com.webobjects.appserver.WOContext),
ERXResponseRewriter#addScriptResourceInHead(WOResponse, WOContext, String, String)public String dateformat()
public String name()
name in class WOComponentpublic void setDateformat(String value)
public String dateFormatString()
public String datePickerCreateScript()
public String datePickerOpenScript()
public String elementID()
public static String optionsStringForTimestamp(NSTimestamp ts)
|
Last updated: Wed, Feb 22, 2012 07:00 AM EST | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||