public class DateField extends TriggerField<DateField,Date> implements HasChangeHandlers<DateField>, HasInputHandlers<DateField>
autocorrect, autofill, editRenderer, editTextAlign, parser, placeholder, renderer, required, textAlign
contextMenu, 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) |
fireValueInputEvent
addValueInputHandler, allowNullRender, getAutocorrect, getAutofill, getEditRenderer, getParser, getPlaceHolder, getRenderer, isRequired, setAllowBlank, setAllowNullRender, setEditRenderer, setParser, setRenderer
addFieldChangeHandler, fireFieldChangeEvent, getValidators, isReadOnly, setValue, validate, validate
focusNext, focusPrevious
add, 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, setWidth
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChangeHandler, addChangeHandler
addInputHandler, addInputHandler
addEventHandler, addEventHandler
blur, click, getElement
addBlurHandler, addBlurHandler
addFocusHandler, addFocusHandler
cancelMeasure, cancelMutation, measureAsSoonAsPossible, mutateAsSoonAsPossible, mutateAsSoonAsPossible, scheduleMeasure, scheduleMutation
addAttachHandler
addDetachHandler
addTransitionEndHandler, addTransitionEndHandler
addMouseDownHandler, addMouseDownHandler
addMouseMoveHandler, addMouseMoveHandler
addMouseOutHandler, addMouseOutHandler
addMouseOverHandler, addMouseOverHandler
addMouseUpHandler, addMouseUpHandler
addWheelHandler, addWheelHandler
addClickHandler, addClickHandler
addDoubleClickHandler, addDoubleClickHandler
addContextMenuHandler, addContextMenuHandler
addTouchStartHandler, addTouchStartHandler
addTouchMoveHandler, addTouchMoveHandler
addTouchForceChangeHandler, addTouchForceChangeHandler
addTouchEndHandler, addTouchEndHandler
addTouchCancelHandler, addTouchCancelHandler
addTouchHoldHandler
addTapHandler
addDoubleTapHandler
addKeyDownHandler, addKeyDownHandler
addKeyUpHandler, addKeyUpHandler
addKeyPressHandler, addKeyPressHandler
addScrollHandler, addScrollHandler
addAnimationStartHandler, addAnimationStartHandler
addAnimationIterationHandler, addAnimationIterationHandler
addAnimationEndHandler, addAnimationEndHandler
addActionHandler
addDoubleActionHandler
public 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()
Field
validate
.isValid
in class Field<HTMLDivElement,DateField,Date>
public DateField reset()
reset
in class Field<HTMLDivElement,DateField,Date>
public DateField addValidator(Validator<Date> validator)
Field
addValidator
in class Field<HTMLDivElement,DateField,Date>
public DateField removeValidator(Validator<Date> validator)
Field
removeValidator
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)
Widget
Widget.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()
IsFocusable
focus
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.