|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFlowPanel
com.vaadin.client.ui.VDateField
com.vaadin.client.ui.VTextualDate
public class VTextualDate
| Field Summary | |
|---|---|
static java.lang.String |
ATTR_INPUTPROMPT
For internal use only. |
java.lang.String |
formatStr
For internal use only. |
java.lang.String |
inputPrompt
For internal use only. |
boolean |
lenient
For internal use only. |
TextBox |
text
For internal use only. |
| Fields inherited from class com.vaadin.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 | |
|---|---|
VTextualDate()
|
|
| Method Summary | |
|---|---|
void |
bindAriaCaption(com.google.gwt.user.client.Element captionElement)
Called to bind the provided caption (label in HTML speak) element to the main input element of the Widget. |
void |
buildDate()
Updates the text field according to the current date (provided by VDateField.getDate()). |
void |
focus()
Sets focus to this widget. |
protected java.lang.String |
getFormatString()
|
com.google.gwt.user.client.Element |
getSubPartElement(java.lang.String subPart)
Locates an element inside a component using the identifier provided in subPart. |
java.lang.String |
getSubPartName(com.google.gwt.user.client.Element subElement)
Provides an identifier that identifies the element within the component. |
protected java.lang.String |
getText()
|
void |
onChange(ChangeEvent event)
|
void |
onKeyDown(KeyDownEvent event)
|
void |
setAriaInvalid(boolean invalid)
Called to set the element, typically an input element, as invalid. |
void |
setAriaRequired(boolean required)
Called to set the element, typically an input element, as required. |
void |
setEnabled(boolean enabled)
|
protected void |
setPrompting(boolean prompting)
|
protected void |
setText(java.lang.String text)
|
protected void |
updateStyleNames()
|
| Methods inherited from class com.vaadin.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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final TextBox text
public java.lang.String formatStr
public boolean lenient
public static final java.lang.String ATTR_INPUTPROMPT
public java.lang.String inputPrompt
| Constructor Detail |
|---|
public VTextualDate()
| Method Detail |
|---|
protected void updateStyleNames()
protected java.lang.String getFormatString()
public void bindAriaCaption(com.google.gwt.user.client.Element captionElement)
HandlesAriaCaption
bindAriaCaption in interface HandlesAriaCaptioncaptionElement - Element of the captionpublic void setAriaRequired(boolean required)
HandlesAriaRequired
setAriaRequired in interface HandlesAriaRequiredrequired - boolean true when the element needs to be set as requiredpublic void setAriaInvalid(boolean invalid)
HandlesAriaInvalid
setAriaInvalid in interface HandlesAriaInvalidinvalid - boolean, true when the element should be marked invalid, false
otherwisepublic 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 class VDateFieldprotected void setPrompting(boolean prompting)
public void onChange(ChangeEvent event)
public void focus()
Focusable
focus in interface Focusableprotected java.lang.String getText()
protected void setText(java.lang.String text)
public com.google.gwt.user.client.Element getSubPartElement(java.lang.String subPart)
SubPartAwaresubPart. The subPart identifier is component specific and
may be any string of characters, numbers, space characters and brackets.
getSubPartElement in interface SubPartAwaresubPart - The identifier for the element inside the component
public java.lang.String getSubPartName(com.google.gwt.user.client.Element subElement)
SubPartAwaresubElement is a part of the component and must never be null.
Note!
getSubPartElement(getSubPartName(element)) == element is not
always true. A component can choose to provide a more generic
identifier for any given element if the results of all interactions with
subElement are the same as interactions with the element
identified by the return value. For example a button can return an
identifier for the root element even though a DIV inside the button was
passed as subElement because interactions with the DIV and the
root button element produce the same result.
getSubPartName in interface SubPartAwaresubElement - The element the identifier string should uniquely identify
subElement or null
if no identifier could be provided.public void onKeyDown(KeyDownEvent event)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||