Class AbstractDateField<FIELD extends AbstractDateField<FIELD,VALUE>,VALUE>
- java.lang.Object
-
- org.teamapps.ux.component.AbstractComponent
-
- org.teamapps.ux.component.field.AbstractField<VALUE>
-
- org.teamapps.ux.component.field.datetime.AbstractDateField<FIELD,VALUE>
-
- All Implemented Interfaces:
Component,TextInputHandlingField
- Direct Known Subclasses:
InstantDateField,LocalDateField
public abstract class AbstractDateField<FIELD extends AbstractDateField<FIELD,VALUE>,VALUE> extends AbstractField<VALUE> implements TextInputHandlingField
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringdateFormatprotected booleanfavorPastDatesEvent<SpecialKey>onSpecialKeyPressedEvent<java.lang.String>onTextInputprotected booleanshowClearButtonprotected booleanshowDropDownButton-
Fields inherited from class org.teamapps.ux.component.field.AbstractField
onValueChanged, onVisibilityChanged
-
Fields inherited from class org.teamapps.ux.component.AbstractComponent
onDestroyed, onRendered
-
-
Constructor Summary
Constructors Constructor Description AbstractDateField()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoDestroy()Override this method to release resources whenever this component gets destroyedjava.lang.StringgetDateFormat()voidhandleUiEvent(org.teamapps.dto.UiEvent event)booleanisFavorPastDates()booleanisShowClearButton()booleanisShowDropDownButton()protected voidmapAbstractDateFieldUiValues(org.teamapps.dto.AbstractUiDateField dateField)Event<SpecialKey>onSpecialKeyPressed()Event<java.lang.String>onTextInput()voidsetDateFormat(java.lang.String dateFormat)voidsetFavorPastDates(boolean favorPastDates)voidsetShowClearButton(boolean showClearButton)voidsetShowDropDownButton(boolean showDropDownButton)-
Methods inherited from class org.teamapps.ux.component.field.AbstractField
addCustomFieldMessage, addValidator, applyValueFromUi, clearCustomFieldMessages, convertUiValueToUxValue, convertUxValueToUiValue, focus, getCustomFieldMessages, getDefaultMessagePosition, getDefaultMessageVisibility, getEditingMode, getFieldMessages, getMaxFieldMessageSeverity, getValidators, getValue, isEmpty, isRequired, isValid, isVisible, mapAbstractFieldAttributesToUiField, removeCustomFieldMessage, removeValidator, setAndLockValue, setCustomFieldMessages, setDefaultMessagePosition, setDefaultMessageVisibility, setEditingMode, setRequired, setValue, setVisible, validate
-
Methods inherited from class org.teamapps.ux.component.AbstractComponent
createUiComponent, createUiComponentReference, destroy, getId, getParent, getSessionContext, isDestroyed, isEffectivelyVisible, isRendered, mapAbstractUiComponentProperties, onDestroyed, queueCommandIfRendered, render, reRenderIfRendered, setCssStyle, setMargin, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setParent, setShadow, toString, unrender
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.teamapps.ux.component.Component
setCssStyle
-
Methods inherited from interface org.teamapps.ux.component.field.TextInputHandlingField
defaultHandleTextInputEvent
-
-
-
-
Field Detail
-
onTextInput
public final Event<java.lang.String> onTextInput
-
onSpecialKeyPressed
public final Event<SpecialKey> onSpecialKeyPressed
-
showDropDownButton
protected boolean showDropDownButton
-
showClearButton
protected boolean showClearButton
-
favorPastDates
protected boolean favorPastDates
-
dateFormat
protected java.lang.String dateFormat
-
-
Method Detail
-
handleUiEvent
public void handleUiEvent(org.teamapps.dto.UiEvent event)
- Specified by:
handleUiEventin interfaceComponent- Overrides:
handleUiEventin classAbstractField<VALUE>
-
doDestroy
protected void doDestroy()
Description copied from class:AbstractComponentOverride this method to release resources whenever this component gets destroyed- Overrides:
doDestroyin classAbstractComponent
-
mapAbstractDateFieldUiValues
protected void mapAbstractDateFieldUiValues(org.teamapps.dto.AbstractUiDateField dateField)
-
isShowDropDownButton
public boolean isShowDropDownButton()
-
setShowDropDownButton
public void setShowDropDownButton(boolean showDropDownButton)
-
isFavorPastDates
public boolean isFavorPastDates()
-
setFavorPastDates
public void setFavorPastDates(boolean favorPastDates)
-
getDateFormat
public java.lang.String getDateFormat()
-
setDateFormat
public void setDateFormat(java.lang.String dateFormat)
-
isShowClearButton
public boolean isShowClearButton()
-
setShowClearButton
public void setShowClearButton(boolean showClearButton)
-
onTextInput
public Event<java.lang.String> onTextInput()
- Specified by:
onTextInputin interfaceTextInputHandlingField
-
onSpecialKeyPressed
public Event<SpecialKey> onSpecialKeyPressed()
- Specified by:
onSpecialKeyPressedin interfaceTextInputHandlingField
-
-