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) |
com.webobjects.appserver.WOComponent._EventLoggingEnabler, com.webobjects.appserver.WOComponent.Event
com.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utility
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.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.MapImplementation, com.webobjects.foundation.NSKeyValueCoding.Null<T>, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor
com.webobjects.foundation.NSValidation._MethodBinding, com.webobjects.foundation.NSValidation._ValidationBinding, com.webobjects.foundation.NSValidation.DefaultImplementation, com.webobjects.foundation.NSValidation.Utility, com.webobjects.foundation.NSValidation.ValidationException
Modifier and Type | Field and Description |
---|---|
static String |
CSS_FILENAME |
static String |
FRAMEWORK_NAME |
_dynamicBindings
_Extension, _IsEventLoggingEnabled, _keyAssociations
Constructor and Description |
---|
CCDatePicker(com.webobjects.appserver.WOContext context) |
Modifier and Type | Method and Description |
---|---|
void |
appendToResponse(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.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(com.webobjects.foundation.NSTimestamp ts) |
void |
reset()
このメソッドは、指定されているコンテクストのオブジェクトに対する、
ステートレス・コンポーネントの一時的リファレンスをリセットもしくは削除します。
あるコンポーネントの共有化されたインスタンスが、他のセッションによって再利用されるとき、
このメソッドを利用し、各コンポーネントのインスタンス変数を解放します。
|
void |
setDateformat(String value) |
void |
setValue(com.webobjects.foundation.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.
|
com.webobjects.foundation.NSTimestamp |
value() |
isStateless
invokeAction, 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, variableWithName
public static final String FRAMEWORK_NAME
public static final String CSS_FILENAME
public void reset()
ERXComponent
reset
in class ERXStatelessComponent
public com.webobjects.foundation.NSTimestamp value()
public void setValue(com.webobjects.foundation.NSTimestamp newDateIn)
public void appendToResponse(com.webobjects.appserver.WOResponse response, com.webobjects.appserver.WOContext context)
appendToResponse
in class ERXNonSynchronizingComponent
response
- 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 com.webobjects.appserver.WOComponent
public void setDateformat(String value)
public String dateFormatString()
public String datePickerCreateScript()
public String datePickerOpenScript()
public String elementID()
public static String optionsStringForTimestamp(com.webobjects.foundation.NSTimestamp ts)
public void validationFailedWithException(Throwable t, Object value, String keyPath)
validationFailedWithException
in class com.webobjects.appserver.WOComponent
t
- 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 – 2020 Project Wonder.