public class VTextualDate extends VDateField implements com.google.gwt.event.dom.client.ChangeHandler, Focusable, SubPartAware, HandlesAriaCaption, HandlesAriaInvalid, HandlesAriaRequired, com.google.gwt.event.dom.client.KeyDownHandler
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_INPUTPROMPT
For internal use only.
|
String |
formatStr
For internal use only.
|
String |
inputPrompt
For internal use only.
|
boolean |
lenient
For internal use only.
|
com.google.gwt.user.client.ui.TextBox |
text
For internal use only.
|
CLASSNAME, client, currentLocale, currentResolution, dts, enabled, immediate, paintableId, readonly, RESOLUTION_DAY, RESOLUTION_HOUR, RESOLUTION_MIN, RESOLUTION_MONTH, RESOLUTION_SEC, RESOLUTION_YEAR, showISOWeekNumbers| Constructor and Description |
|---|
VTextualDate() |
| Modifier and Type | Method and Description |
|---|---|
void |
bindAriaCaption(com.google.gwt.user.client.Element captionElement) |
void |
buildDate()
Updates the text field according to the current date (provided by
VDateField.getDate()). |
void |
focus() |
protected String |
getFormatString() |
com.google.gwt.user.client.Element |
getSubPartElement(String subPart) |
String |
getSubPartName(com.google.gwt.user.client.Element subElement) |
protected String |
getText() |
void |
onChange(com.google.gwt.event.dom.client.ChangeEvent event) |
void |
onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event) |
void |
setAriaInvalid(boolean invalid) |
void |
setAriaRequired(boolean required) |
void |
setEnabled(boolean enabled) |
protected void |
setPrompting(boolean prompting) |
protected void |
setText(String text) |
protected void |
updateStyleNames() |
getClient, getCurrentDate, getCurrentLocale, getCurrentResolution, getDate, getDateTimeService, getId, getMilliseconds, getTime, isEnabled, isImmediate, isReadonly, isShowISOWeekNumbers, resolutionToString, setCurrentDate, setCurrentLocale, setCurrentResolution, setDate, setImmediate, setMilliseconds, setReadonly, setShowISOWeekNumbersadd, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, removeadd, adopt, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetWidgetIndexgetWidget, getWidgetCount, getWidgetIndex, removeforEach, spliteratorpublic final com.google.gwt.user.client.ui.TextBox text
public String formatStr
public boolean lenient
public static final String ATTR_INPUTPROMPT
public String inputPrompt
protected void updateStyleNames()
protected String getFormatString()
public void bindAriaCaption(com.google.gwt.user.client.Element captionElement)
bindAriaCaption in interface HandlesAriaCaptionpublic void setAriaRequired(boolean required)
setAriaRequired in interface HandlesAriaRequiredpublic void setAriaInvalid(boolean invalid)
setAriaInvalid in interface HandlesAriaInvalidpublic void buildDate()
VDateField.getDate()). Takes care of updating text, enabling and disabling
the field, setting/removing readonly status and updating readonly styles.
For internal use only. May be removed or replaced in the future.
TODO: Split part of this into a method that only updates the text as this is what usually is needed except for updateFromUIDL.
public void setEnabled(boolean enabled)
setEnabled in interface com.google.gwt.user.client.ui.HasEnabledsetEnabled in class VDateFieldprotected void setPrompting(boolean prompting)
public void onChange(com.google.gwt.event.dom.client.ChangeEvent event)
onChange in interface com.google.gwt.event.dom.client.ChangeHandlerprotected String getText()
protected void setText(String text)
public com.google.gwt.user.client.Element getSubPartElement(String subPart)
getSubPartElement in interface SubPartAwarepublic String getSubPartName(com.google.gwt.user.client.Element subElement)
getSubPartName in interface SubPartAwarepublic void onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event)
onKeyDown in interface com.google.gwt.event.dom.client.KeyDownHandlerCopyright © 2021 Vaadin Ltd. All rights reserved.