public class DateField extends TriggerField<DateField,Date> implements HasChangeHandlers<DateField>, HasInputHandlers<DateField>
autocorrect, autofill, editRenderer, editTextAlign, parser, placeholder, renderer, required, textAligncontextMenu, contextMenuHandlerRegistration, currentHeight, currentWidth, enabled, NATIVE_CONTEXT_MENU_HANDLER| Constructor and Description |
|---|
DateField() |
DateField(HTMLDivElement element) |
| Modifier and Type | Method and Description |
|---|---|
DateField |
addValidator(Validator<Date> validator)
Add a new validator.
|
DateField |
edit() |
DateField |
focus()
WARNING: On IOS, only work when a touch/click/event is fired.
|
Date |
getMax() |
Date |
getMin() |
String |
getTextValue() |
Date |
getValue() |
boolean |
isAllowNumpadPlusMinusIncrement() |
boolean |
isEditing() |
boolean |
isValid()
Returns whether the field is currently marked as valid or not.
|
protected Date |
parseValue() |
DateField |
removeValidator(Validator<Date> validator)
Remove a validator.
|
protected void |
renderEditValue(Date value) |
protected void |
renderValue(Date value) |
DateField |
reset() |
DateField |
setAllowNumpadPlusMinusIncrement(boolean allowNumpadPlusMinusIncrement) |
DateField |
setAutocorrect(Autocorrect autocorrect) |
DateField |
setAutofill(Autofill autofill) |
DateField |
setBackgroundColor(Color backgroundColor)
Set the background color.
|
DateField |
setEnabled(boolean enabled) |
DateField |
setMax(Date max) |
DateField |
setMin(Date min) |
DateField |
setPlaceHolder(String placeholder) |
DateField |
setReadOnly(boolean readOnly)
Sets the read only status
|
DateField |
setRequired(boolean required) |
DateField |
setValue(Date value) |
fireValueInputEventaddValueInputHandler, allowNullRender, getAutocorrect, getAutofill, getEditRenderer, getParser, getPlaceHolder, getRenderer, isRequired, setAllowBlank, setAllowNullRender, setEditRenderer, setParser, setRendereraddFieldChangeHandler, fireFieldChangeEvent, getValidators, isReadOnly, setValue, validate, validatefocusNext, focusPreviousadd, addActionHandler, addClassName, addDoubleActionHandler, addDoubleTapHandler, addDropTarget, addEventHandler, addEventHandler, addResizeHandler, addStyleName, addTapHandler, addTouchHoldHandler, canDropTargetAccept, cast, clear, clearBackgroundColor, clearDropTargets, clearTextColor, ensureHandlers, fireEvent, fireEvent, fireResizeEvent, getAbsoluteLeft, getAbsoluteTop, getAncestor, getChildren, getChildrenCount, getComputedStyle, getContextMenu, getContextMenuHandler, getDeepestWidget, getDragSource, getDropTargetList, getElement, getFirstChild, getId, getLastChild, getNextSibling, getNextSibling, getOffsetHeight, getOffsetWidth, getParent, getScrollLeft, getScrollTop, getStyle, hasClassName, hasFocus, insert, isAttached, isDropTarget, isEnabled, isInEventThread, onAttach, onDetach, remove, removeClassName, removeDropTarget, removeStyleName, setClassName, setContextMenu, setDragSource, setDropTarget, setHeight, setHeight, setHeight, setId, setLeft, setLeftAndTop, setMaxHeight, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setMinWidth, setParent, setPixelSize, setScrollLeft, setScrollTop, setSize, setTextAlign, setTextColor, setTop, setWidth, setWidth, setWidthclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChangeHandler, addChangeHandleraddInputHandler, addInputHandleraddEventHandler, addEventHandlerblur, click, getElementaddBlurHandler, addBlurHandleraddFocusHandler, addFocusHandlercancelMeasure, cancelMutation, measureAsSoonAsPossible, mutateAsSoonAsPossible, mutateAsSoonAsPossible, scheduleMeasure, scheduleMutationaddAttachHandleraddDetachHandleraddTransitionEndHandler, addTransitionEndHandleraddMouseDownHandler, addMouseDownHandleraddMouseMoveHandler, addMouseMoveHandleraddMouseOutHandler, addMouseOutHandleraddMouseOverHandler, addMouseOverHandleraddMouseUpHandler, addMouseUpHandleraddWheelHandler, addWheelHandleraddClickHandler, addClickHandleraddDoubleClickHandler, addDoubleClickHandleraddContextMenuHandler, addContextMenuHandleraddTouchStartHandler, addTouchStartHandleraddTouchMoveHandler, addTouchMoveHandleraddTouchForceChangeHandler, addTouchForceChangeHandleraddTouchEndHandler, addTouchEndHandleraddTouchCancelHandler, addTouchCancelHandleraddTouchHoldHandleraddTapHandleraddDoubleTapHandleraddKeyDownHandler, addKeyDownHandleraddKeyUpHandler, addKeyUpHandleraddKeyPressHandler, addKeyPressHandleraddScrollHandler, addScrollHandleraddAnimationStartHandler, addAnimationStartHandleraddAnimationIterationHandler, addAnimationIterationHandleraddAnimationEndHandler, addAnimationEndHandleraddActionHandleraddDoubleActionHandlerpublic DateField()
public DateField(HTMLDivElement element)
element - the wrapped element by this widgetpublic DateField setPlaceHolder(String placeholder)
setPlaceHolder in class ValueField<HTMLDivElement,DateField,Date>public DateField setValue(Date value)
setValue in class ValueField<HTMLDivElement,DateField,Date>Field.setValue(java.lang.Object)public Date getValue()
getValue in class Field<HTMLDivElement,DateField,Date>public boolean isValid()
Fieldvalidate.isValid in class Field<HTMLDivElement,DateField,Date>public DateField reset()
reset in class Field<HTMLDivElement,DateField,Date>public DateField addValidator(Validator<Date> validator)
FieldaddValidator in class Field<HTMLDivElement,DateField,Date>public DateField removeValidator(Validator<Date> validator)
FieldremoveValidator in class Field<HTMLDivElement,DateField,Date>protected Date parseValue()
parseValue in class ValueField<HTMLDivElement,DateField,Date>protected void renderValue(Date value)
renderValue in class ValueField<HTMLDivElement,DateField,Date>protected void renderEditValue(Date value)
renderEditValue in class ValueField<HTMLDivElement,DateField,Date>public DateField setRequired(boolean required)
setRequired in class ValueField<HTMLDivElement,DateField,Date>required - public DateField setBackgroundColor(Color backgroundColor)
WidgetWidget.clearBackgroundColor(), the theme's background color will be used.setBackgroundColor in class TriggerField<DateField,Date>backgroundColor - the background color to setpublic DateField setReadOnly(boolean readOnly)
setReadOnly in class Field<HTMLDivElement,DateField,Date>readOnly - the read only status to setpublic DateField focus()
IsFocusablefocus in interface IsFocusable<HTMLDivElement,DateField>public DateField setEnabled(boolean enabled)
setEnabled in class Widget<HTMLDivElement,DateField>public boolean isEditing()
isEditing in class ValueField<HTMLDivElement,DateField,Date>public DateField edit()
edit in class ValueField<HTMLDivElement,DateField,Date>public Date getMin()
public Date getMax()
public DateField setAllowNumpadPlusMinusIncrement(boolean allowNumpadPlusMinusIncrement)
allowNumpadPlusMinusIncrement - the allowNumpadPlusMinusIncrement to setpublic boolean isAllowNumpadPlusMinusIncrement()
@WillMutate public DateField setAutofill(Autofill autofill)
setAutofill in class ValueField<HTMLDivElement,DateField,Date>public DateField setAutocorrect(Autocorrect autocorrect)
setAutocorrect in class ValueField<HTMLDivElement,DateField,Date>public String getTextValue()
getTextValue in class ValueField<HTMLDivElement,DateField,Date>Copyright © 2018 Xalys. All rights reserved.