Class AbstractDateField<VALUE>
java.lang.Object
org.teamapps.ux.component.AbstractComponent
org.teamapps.ux.component.field.AbstractField<VALUE>
org.teamapps.ux.component.field.datetime.AbstractDateField<VALUE>
- All Implemented Interfaces:
ClientObject,Component,TextInputHandlingField
- Direct Known Subclasses:
LocalDateField
public abstract class AbstractDateField<VALUE> extends AbstractField<VALUE> implements TextInputHandlingField
-
Field Summary
Fields Modifier and Type Field Description protected DateTimeFormatDescriptordateFormatprotected booleanfavorPastDatesprotected com.ibm.icu.util.ULocalelocaleEvent<SpecialKey>onSpecialKeyPressedEvent<java.lang.String>onTextInputprotected booleanshowClearButtonprotected booleanshowDropDownButtonFields inherited from class org.teamapps.ux.component.field.AbstractField
onValueChanged, onVisibilityChangedFields inherited from class org.teamapps.ux.component.AbstractComponent
DELETED_ATTRIBUTE, onRendered -
Constructor Summary
Constructors Constructor Description AbstractDateField() -
Method Summary
Modifier and Type Method Description DateTimeFormatDescriptorgetDateFormat()java.util.LocalegetLocale()com.ibm.icu.util.ULocalegetULocale()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(DateTimeFormatDescriptor dateFormat)voidsetFavorPastDates(boolean favorPastDates)voidsetLocale(java.util.Locale locale)voidsetShowClearButton(boolean showClearButton)voidsetShowDropDownButton(boolean showDropDownButton)voidsetULocale(com.ibm.icu.util.ULocale locale)Methods inherited from class org.teamapps.ux.component.field.AbstractField
addCustomFieldMessage, addValidator, applyValueFromUi, clearCustomFieldMessages, clearValidatorMessages, convertUiValueToUxValue, convertUxValueToUiValue, focus, getCustomFieldMessages, getDefaultMessagePosition, getDefaultMessageVisibility, getEditingMode, getFieldMessages, getMaxFieldMessageSeverity, getValidators, getValue, isEmpty, isRequired, isValid, isValueChangedByClient, mapAbstractFieldAttributesToUiField, removeCustomFieldMessage, removeValidator, setAndLockValue, setCustomFieldMessages, setDefaultMessagePosition, setDefaultMessageVisibility, setEditingMode, setRequired, setRequiredIfVisibleAndEditable, setValue, setVisible, validateMethods inherited from class org.teamapps.ux.component.AbstractComponent
createUiComponent, createUiReference, getDebuggingId, getId, getParent, getSessionContext, isRendered, isVisible, mapAbstractUiComponentProperties, queueCommandIfRendered, render, reRenderIfRendered, setAttribute, setCssStyle, setDebuggingId, setParent, toggleCssClass, toString, unrenderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.teamapps.ux.component.Component
setAttribute, setCssStyle, setMargin, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setShadow, toggleCssClassMethods inherited from interface org.teamapps.ux.component.field.TextInputHandlingField
defaultHandleTextInputEvent
-
Field Details
-
onTextInput
-
onSpecialKeyPressed
-
showDropDownButton
protected boolean showDropDownButton -
showClearButton
protected boolean showClearButton -
favorPastDates
protected boolean favorPastDates -
locale
protected com.ibm.icu.util.ULocale locale -
dateFormat
-
-
Constructor Details
-
AbstractDateField
public AbstractDateField()
-
-
Method Details
-
handleUiEvent
public void handleUiEvent(org.teamapps.dto.UiEvent event)- Specified by:
handleUiEventin interfaceClientObject- Overrides:
handleUiEventin classAbstractField<VALUE>
-
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) -
getLocale
public java.util.Locale getLocale() -
getULocale
public com.ibm.icu.util.ULocale getULocale() -
setLocale
public void setLocale(java.util.Locale locale) -
setULocale
public void setULocale(com.ibm.icu.util.ULocale locale) -
getDateFormat
-
setDateFormat
-
isShowClearButton
public boolean isShowClearButton() -
setShowClearButton
public void setShowClearButton(boolean showClearButton) -
onTextInput
- Specified by:
onTextInputin interfaceTextInputHandlingField
-
onSpecialKeyPressed
- Specified by:
onSpecialKeyPressedin interfaceTextInputHandlingField
-