public class CCDatePicker extends ERXStatelessComponent
| Name | Description |
|---|---|
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) |
WOComponent._EventLoggingEnabler, WOComponent.EventNSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.UtilityNSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessorNSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException| Modifier and Type | Field and Description |
|---|---|
static String |
CSS_FILENAME |
static String |
FRAMEWORK_NAME |
_dynamicBindings_Extension, _IsEventLoggingEnabled, _keyAssociations_CLASS_CLASS, _KeyPathSeparatorChar, KeyPathSeparatorNullValue_CLASS| Constructor and Description |
|---|
CCDatePicker(WOContext context) |
| Modifier and Type | Method and Description |
|---|---|
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) |
void |
validationFailedWithException(Throwable t,
Object value,
String keyPath)
Overridden so that parent will handle in the same manner as if this were a dynamic element.
|
NSTimestamp |
value() |
isStatelessinvokeAction, resetCachedBindingsInStatefulComponent, synchronizesVariablesWithBindings, takeValuesFromRequest_awakeInContext, _checkAccess, _frameworkName, _includeCSSResources, _includeJavascriptResources, additionalCSSFiles, additionalJavascriptFiles, arrayValueForBinding, arrayValueForBinding, booleanValueForBinding, booleanValueForBinding, booleanValueForBinding, browser, checkAccess, clickToOpenEnabled, componentName, defaultCSSPath, defaultJavascriptPath, dynamicBindings, floatValueForBinding, intValueForBinding, isPageAccessAllowed, localizer, objectValueForBinding, objectValueForBinding, pageWithName, postAppendToResponse, preAppendToResponse, primaryCSSFile, primaryJavascriptFile, shouldCheckAccess, stringValueForBinding, stringValueForBinding, useDefaultComponentCSS, useDefaultComponentJavascript__valueForBinding, _associationWithName, _childTemplate, _cleanUpStatelessComponent, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, application, awake, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, isCachingEnabled, isEventLoggingEnabled, logString, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, setVariableValueForName, sleep, takeValueForKey, takeValueForKeyPath, template, templateWithHTMLString, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithNamepublic static final String FRAMEWORK_NAME
public static final String CSS_FILENAME
public CCDatePicker(WOContext context)
public void reset()
ERXComponentreset 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)
public void validationFailedWithException(Throwable t, Object value, String keyPath)
validationFailedWithException in class WOComponentt - the exception thrown during validationvalue - the given value to be validatedkeyPath - the key path associated with this value, identifies the property of an objectCopyright © 2002 – 2025 Project Wonder.