com.sap.ui.commons.client
Class DatePickerWidget

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.sap.ui.core.client.ControlWidget
              extended by com.sap.ui.commons.client.TextFieldWidget
                  extended by com.sap.ui.commons.client.DatePickerWidget
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.IsWidget

public class DatePickerWidget
extends TextFieldWidget

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 AG)

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
  DatePickerWidget()
          constructs the class DatePickerWidget
protected DatePickerWidget(DatePicker control)
          constructs the class DatePickerWidget
  DatePickerWidget(String id)
          constructs the class DatePickerWidget
 
Method Summary
 DatePicker getControl()
          returns the reference to the Phoenix Control
 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.
 void setLocale(String value)
          Setter for property locale
 void setYyyymmdd(String value)
          Setter for property yyyymmdd
 
Methods inherited from class com.sap.ui.commons.client.TextFieldWidget
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.ControlWidget
destroy, doAttachChildren, doDetachChildren, isDesignTime, wrap
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatePickerWidget

public DatePickerWidget()
constructs the class DatePickerWidget


DatePickerWidget

public DatePickerWidget(String id)
constructs the class DatePickerWidget

Parameters:
id - id of the DatePickerWidget

DatePickerWidget

protected DatePickerWidget(DatePicker control)
constructs the class DatePickerWidget

Parameters:
control - reference to an existing DatePicker
Method Detail

getControl

public DatePicker getControl()
returns the reference to the Phoenix Control

Overrides:
getControl in class TextFieldWidget
Returns:
reference to the Phoenix Control

getLocale

public 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 void setLocale(String value)
Setter for property locale

Parameters:
value - String

getYyyymmdd

public 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 void setYyyymmdd(String value)
Setter for property yyyymmdd

Parameters:
value - String


Copyright © 2011 SAP. All Rights Reserved.