com.sap.ui.commons.client
Class DatePicker

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.sap.ui.core.client.Element
          extended by com.sap.ui.core.client.Control
              extended by com.sap.ui.commons.client.TextField
                  extended by com.sap.ui.commons.client.DatePicker
All Implemented Interfaces:
ToolbarItem

public class DatePicker
extends TextField

The class DatePicker is the GWT wrapper for the Phoenix control: sap.ui.commons.DatePicker.

Allows end users to interact with dates. Entries can directly be written in, or selected from a calendar pad. Note: Dates can always be manually entered in the fix YYYYMMDD format, on top of the flexible "locale" format.

For further parameters see {@link com.sap.ui.commons.client.TextField

Version:
0.18.0-SNAPSHOT
Author:
GENERATOR (JavaScript control: sap.ui.commons.DatePicker)

Constructor Summary
protected DatePicker()
          constructs the class DatePicker
hidden due to JavaScriptObject restriction
 
Method Summary
static DatePicker create()
          creates a new instance of the class DatePicker
static DatePicker create(String idOrConfig)
          creates a new instance of the class DatePicker
static DatePicker create(String id, String config)
          creates a new instance of the class DatePicker
 String getLocale()
          Getter for property locale Defines the locale (language and country), e.g.
 String getYyyymmdd()
          Getter for property yyyymmdd Defines the date as a "yyyymmdd" string, independent from the format used.
 DatePicker setLocale(String value)
          Setter for property locale
 DatePicker setYyyymmdd(String value)
          Setter for property yyyymmdd
 
Methods inherited from class com.sap.ui.commons.client.TextField
attachChangeEvent, bindValue, bindValue, detachChangeEvent, focus, getAccessibleDescription, getAccessibleName, getAccessibleRole, getDesign, getHelpId, getImeMode, getMaxLength, getTextAlign, getTextDirection, getValue, getValueState, getWidth, isEditable, isEnabled, isRequired, isVisible, setAccessibleDescription, setAccessibleName, setAccessibleRole, setDesign, setEditable, setEnabled, setHelpId, setImeMode, setMaxLength, setRequired, setTextAlign, setTextDirection, setValue, setValueState, setVisible, setWidth, unbindValue
 
Methods inherited from class com.sap.ui.core.client.Control
addStyleClass, hasStyleClass, invalidate, placeAt, placeAt, removeStyleClass, rerender
 
Methods inherited from class com.sap.ui.core.client.Element
_convertArray, _convertArray, _convertArray, _convertArray, _convertArray, attachBrowserEvent, attachEvent, bindAggregation, bindContext, bindProperty, bindProperty, destroy, detachBrowserEvent, detachEvent, getDomRef, getElementName, getId, getLibraryName, getModel, getParent, getProperty, getTooltip_AsString, getTooltip_Text, getTooltip, isActive, setModel, setProperty, setTooltip, setTooltip, unbindAggregation, unbindContext, unbindProperty
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatePicker

protected DatePicker()
constructs the class DatePicker
hidden due to JavaScriptObject restriction

Method Detail

create

public static DatePicker create()
creates a new instance of the class DatePicker


create

public static DatePicker create(String idOrConfig)
creates a new instance of the class DatePicker

Parameters:
id - id of the DatePicker or configuration JSON string

create

public static DatePicker create(String id,
                                String config)
creates a new instance of the class DatePicker

Parameters:
id - id of the DatePicker
config - configuration JSON string

getLocale

public final String getLocale()
Getter for property locale Defines the locale (language and country), e.g. "en-US", whose translations should be used to render the DatePicker.

Returns:
the value of property locale

setLocale

public final DatePicker setLocale(String value)
Setter for property locale

Parameters:
value - String
Returns:
this to allow method chaining

getYyyymmdd

public final String getYyyymmdd()
Getter for property yyyymmdd Defines the date as a "yyyymmdd" string, independent from the format used. The inherited textField "value" attribute uses the date format as configured via the locale.

Returns:
the value of property yyyymmdd

setYyyymmdd

public final DatePicker setYyyymmdd(String value)
Setter for property yyyymmdd

Parameters:
value - String
Returns:
this to allow method chaining


Copyright © 2011 SAP. All Rights Reserved.