Package com.vaadin.v7.client.ui
Class VTextualDate
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Panel
-
- com.google.gwt.user.client.ui.ComplexPanel
-
- com.google.gwt.user.client.ui.FlowPanel
-
- com.vaadin.v7.client.ui.VDateField
-
- com.vaadin.v7.client.ui.VTextualDate
-
- All Implemented Interfaces:
com.google.gwt.event.dom.client.ChangeHandler,com.google.gwt.event.dom.client.KeyDownHandler,com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.shared.EventHandler,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.ui.HasEnabled,com.google.gwt.user.client.ui.HasVisibility,com.google.gwt.user.client.ui.HasWidgets,com.google.gwt.user.client.ui.HasWidgets.ForIsWidget,com.google.gwt.user.client.ui.IndexedPanel,com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget,com.google.gwt.user.client.ui.InsertPanel,com.google.gwt.user.client.ui.InsertPanel.ForIsWidget,com.google.gwt.user.client.ui.IsWidget,Focusable,HandlesAriaCaption,HandlesAriaInvalid,HandlesAriaRequired,Field,SubPartAware,Iterable<com.google.gwt.user.client.ui.Widget>
- Direct Known Subclasses:
VPopupCalendar
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
-
-
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
-
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_INPUTPROMPTFor internal use only.StringformatStrFor internal use only.StringinputPromptFor internal use only.booleanlenientFor internal use only.com.google.gwt.user.client.ui.TextBoxtextFor internal use only.-
Fields inherited from class com.vaadin.v7.client.ui.VDateField
CLASSNAME, client, currentLocale, currentResolution, dts, enabled, immediate, paintableId, readonly, RESOLUTION_DAY, RESOLUTION_HOUR, RESOLUTION_MIN, RESOLUTION_MONTH, RESOLUTION_SEC, RESOLUTION_YEAR, showISOWeekNumbers
-
-
Constructor Summary
Constructors Constructor Description VTextualDate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbindAriaCaption(com.google.gwt.user.client.Element captionElement)voidbuildDate()Updates the text field according to the current date (provided byVDateField.getDate()).voidfocus()protected StringgetFormatString()com.google.gwt.user.client.ElementgetSubPartElement(String subPart)StringgetSubPartName(com.google.gwt.user.client.Element subElement)protected StringgetText()voidonChange(com.google.gwt.event.dom.client.ChangeEvent event)voidonKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event)voidsetAriaInvalid(boolean invalid)voidsetAriaRequired(boolean required)voidsetEnabled(boolean enabled)protected voidsetPrompting(boolean prompting)protected voidsetText(String text)protected voidupdateStyleNames()-
Methods inherited from class com.vaadin.v7.client.ui.VDateField
getClient, getCurrentDate, getCurrentLocale, getCurrentResolution, getDate, getDateTimeService, getId, getMilliseconds, getTime, isEnabled, isImmediate, isReadonly, isShowISOWeekNumbers, resolutionToString, setCurrentDate, setCurrentLocale, setCurrentResolution, setDate, setImmediate, setMilliseconds, setReadonly, setShowISOWeekNumbers
-
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
-
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, doAttachChildren, doDetachChildren, orphan, remove
-
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, unsinkEvents
-
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, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel
getWidget, getWidgetCount, getWidgetIndex, remove
-
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
getWidgetIndex
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
text
public final com.google.gwt.user.client.ui.TextBox text
For internal use only. May be removed or replaced in the future.
-
formatStr
public String formatStr
For internal use only. May be removed or replaced in the future.
-
lenient
public boolean lenient
For internal use only. May be removed or replaced in the future.
-
ATTR_INPUTPROMPT
public static final String ATTR_INPUTPROMPT
For internal use only. May be removed or replaced in the future.- See Also:
- Constant Field Values
-
inputPrompt
public String inputPrompt
For internal use only. May be removed or replaced in the future.
-
-
Method Detail
-
updateStyleNames
protected void updateStyleNames()
-
getFormatString
protected String getFormatString()
-
bindAriaCaption
public void bindAriaCaption(com.google.gwt.user.client.Element captionElement)
- Specified by:
bindAriaCaptionin interfaceHandlesAriaCaption
-
setAriaRequired
public void setAriaRequired(boolean required)
- Specified by:
setAriaRequiredin interfaceHandlesAriaRequired
-
setAriaInvalid
public void setAriaInvalid(boolean invalid)
- Specified by:
setAriaInvalidin interfaceHandlesAriaInvalid
-
buildDate
public void buildDate()
Updates the text field according to the current date (provided byVDateField.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.
-
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabledin interfacecom.google.gwt.user.client.ui.HasEnabled- Overrides:
setEnabledin classVDateField
-
setPrompting
protected void setPrompting(boolean prompting)
-
onChange
public void onChange(com.google.gwt.event.dom.client.ChangeEvent event)
- Specified by:
onChangein interfacecom.google.gwt.event.dom.client.ChangeHandler
-
getText
protected String getText()
-
setText
protected void setText(String text)
-
getSubPartElement
public com.google.gwt.user.client.Element getSubPartElement(String subPart)
- Specified by:
getSubPartElementin interfaceSubPartAware
-
getSubPartName
public String getSubPartName(com.google.gwt.user.client.Element subElement)
- Specified by:
getSubPartNamein interfaceSubPartAware
-
onKeyDown
public void onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event)
- Specified by:
onKeyDownin interfacecom.google.gwt.event.dom.client.KeyDownHandler
-
-