public class CCDatePicker extends ERXStatelessComponent
| 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) |
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 java.lang.String |
CSS_FILENAME |
static java.lang.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.
|
java.lang.String |
dateformat() |
java.lang.String |
dateFormatString() |
java.lang.String |
datePickerCreateScript() |
java.lang.String |
datePickerOpenScript() |
java.lang.String |
elementID() |
java.lang.String |
name() |
static java.lang.String |
optionsStringForTimestamp(NSTimestamp ts) |
void |
reset()
このメソッドは、指定されているコンテクストのオブジェクトに対する、
ステートレス・コンポーネントの一時的リファレンスをリセットもしくは削除します。
あるコンポーネントの共有化されたインスタンスが、他のセッションによって再利用されるとき、
このメソッドを利用し、各コンポーネントのインスタンス変数を解放します。
|
void |
setDateformat(java.lang.String value) |
void |
setValue(NSTimestamp newDateIn) |
void |
validationFailedWithException(java.lang.Throwable t,
java.lang.Object value,
java.lang.String keyPath)
Overridden so that parent will handle in the same manner as if this were a dynamic element.
|
NSTimestamp |
value() |
isStateless, valueForBooleanBinding, valueForBooleanBinding, valueForBooleanBinding, valueForIntBinding, valueForObjectBinding, valueForObjectBindinginvokeAction, 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, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithNamepublic static final java.lang.String FRAMEWORK_NAME
public static final java.lang.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 java.lang.String dateformat()
public java.lang.String name()
name in class WOComponentpublic void setDateformat(java.lang.String value)
public java.lang.String dateFormatString()
public java.lang.String datePickerCreateScript()
public java.lang.String datePickerOpenScript()
public java.lang.String elementID()
public static java.lang.String optionsStringForTimestamp(NSTimestamp ts)
public void validationFailedWithException(java.lang.Throwable t,
java.lang.Object value,
java.lang.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 – 2022 Project Wonder.