Class sap.ca.ui.DatePickerModule: sap/ca/ui/DatePicker

extends InputBase

Allows end users to interact with dates. Entries can directly be written in, or selected from a calendar pad.

Deprecated API:Since version 1.22. This control has been made available in sap.m. Please use the sap.m.DatePicker instead! This control will not be supported anymore.

Constructor Summary
new sap.ca.ui.DatePicker(sId?, mSettings?)Constructor for a new DatePicker.
Fields borrowed from class sap.m.InputBase
Events borrowed from class sap.m.InputBase
Events borrowed from class sap.ui.core.Control
Method Summary
sap.ca.ui.DatePicker.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ca.ui.DatePicker with name sClassName and enriches it with the information contained in oClassInfo.
sap.ca.ui.DatePicker.getMetadata()Returns a metadata object for class sap.ca.ui.DatePicker.
getDate()returns selected date as a Date object
getDateValue()Getter for property dateValue.
getFirstDayOffset()Getter for property firstDayOffset.
setDateValue(sDateValue)Setter for property dateValue.
setFirstDayOffset(iFirstDayOffset)Setter for property firstDayOffset.
Constructor Detail
new sap.ca.ui.DatePicker(sId?, mSettings?)
Constructor for a new DatePicker.

Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers.

If the name of a setting is ambiguous (e.g. a property has the same name as an event), then the framework assumes property, aggregation, association, event in that order. To override this automatic resolution, one of the prefixes "aggregation:", "association:" or "event:" can be added to the name of the setting (such a prefixed name must be enclosed in single or double quotes).

The supported settings are:

In addition, all settings applicable to the base type sap.m.InputBase can be used as well.

Parameters:
{string}sId? id for the new control, generated automatically if no id is given
{object}mSettings? initial settings for the new control
Deprecated:
Since version 1.22. This control has been made available in sap.m. Please use the sap.m.DatePicker instead! This control will not be supported anymore.
Method Detail
sap.ca.ui.DatePicker.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ca.ui.DatePicker with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of informations as described in Element.extend.

Parameters:
{string}sClassName name of the class to be created
{object}oClassInfo? object literal with informations about the class
{function}FNMetaImpl? constructor function for the metadata object. If not given, it defaults to sap.ui.core.ElementMetadata.
Returns:
{function} the created class / constructor function
sap.ca.ui.DatePicker.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ca.ui.DatePicker.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
getDate(): object
returns selected date as a Date object
Returns:
{object}
getDateValue(): string
Getter for property dateValue. This is a date string formatted as per the format for the control. If there is no valid input for the control, this value will be null.

Default value is empty/undefined

Returns:
{string} the value of property dateValue
getFirstDayOffset(): int
Getter for property firstDayOffset. This property is used to offset the first day of the week (0 = sunday). Returns int, default 0

Default value is 0

Returns:
{int} the value of property firstDayOffset
setDateValue(sDateValue): sap.ca.ui.DatePicker
Setter for property dateValue.

Default value is empty/undefined

Parameters:
{string}sDateValue new value for property dateValue
Returns:
{sap.ca.ui.DatePicker}this to allow method chaining
setFirstDayOffset(iFirstDayOffset): sap.ca.ui.DatePicker
Setter for property firstDayOffset.

Default value is 0

Parameters:
{int}iFirstDayOffset new value for property firstDayOffset
Returns:
{sap.ca.ui.DatePicker}this to allow method chaining