Class LocalDateField
- java.lang.Object
-
- org.teamapps.ux.component.AbstractComponent
-
- org.teamapps.ux.component.field.AbstractField<java.time.LocalDate>
-
- org.teamapps.ux.component.field.datetime.LocalDateField
-
- All Implemented Interfaces:
ClientObject,Component,TextInputHandlingField
public class LocalDateField extends AbstractField<java.time.LocalDate> implements TextInputHandlingField
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLocalDateField.DropDownMode
-
Field Summary
Fields Modifier and Type Field Description Event<SpecialKey>onSpecialKeyPressedEvent<java.lang.String>onTextInput-
Fields inherited from class org.teamapps.ux.component.field.AbstractField
onBlur, onFocus, onValueChanged, onVisibilityChanged
-
Fields inherited from class org.teamapps.ux.component.AbstractComponent
DELETED_ATTRIBUTE, onRendered
-
-
Constructor Summary
Constructors Constructor Description LocalDateField()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.LocalDateconvertUiValueToUxValue(java.lang.Object value)org.teamapps.dto.UiLocalDateconvertUxValueToUiValue(java.time.LocalDate localDate)Converts a server-side value to a client-side field-specific value.org.teamapps.dto.UiLocalDateFieldcreateUiComponent()DateTimeFormatDescriptorgetDateFormat()java.time.LocalDategetDefaultSuggestionDate()LocalDateField.DropDownModegetDropDownMode()java.lang.StringgetEmptyText()java.util.LocalegetLocale()com.ibm.icu.util.ULocalegetULocale()voidhandleUiEvent(org.teamapps.dto.UiEvent event)booleanisFavorPastDates()booleanisShowClearButton()booleanisShowDropDownButton()booleanisShuffledFormatSuggestionsEnabled()Event<SpecialKey>onSpecialKeyPressed()Event<java.lang.String>onTextInput()voidsetDateFormat(DateTimeFormatDescriptor dateFormat)voidsetDefaultSuggestionDate(java.time.LocalDate defaultSuggestionDate)voidsetDropDownMode(LocalDateField.DropDownMode dropDownMode)voidsetEmptyText(java.lang.String emptyText)voidsetFavorPastDates(boolean favorPastDates)voidsetLocale(java.util.Locale locale)voidsetShowClearButton(boolean showClearButton)voidsetShowDropDownButton(boolean showDropDownButton)voidsetShuffledFormatSuggestionsEnabled(boolean shuffledFormatSuggestionsEnabled)voidsetULocale(com.ibm.icu.util.ULocale locale)-
Methods inherited from class org.teamapps.ux.component.field.AbstractField
addCustomFieldMessage, addCustomFieldMessage, addValidator, applyValueFromUi, clearCustomFieldMessages, clearValidatorMessages, focus, getCustomFieldMessages, getDefaultMessagePosition, getDefaultMessageVisibility, getEditingMode, getFieldMessages, getMaxFieldMessageSeverity, getValidators, getValue, isEmpty, isEmptyValue, isRequired, isValid, isValueChangedByClient, isValueLocked, mapAbstractFieldAttributesToUiField, removeCustomFieldMessage, removeValidator, setAndLockValue, setCustomFieldMessages, setDefaultMessagePosition, setDefaultMessageVisibility, setEditingMode, setRequired, setRequiredIfVisibleAndEditable, setValue, setValueChangedByClient, setVisible, validate
-
Methods inherited from class org.teamapps.ux.component.AbstractComponent
createUiReference, getDebuggingId, getId, getParent, getSessionContext, isRendered, isVisible, mapAbstractUiComponentProperties, queueCommandIfRendered, render, reRenderIfRendered, setAttribute, setCssStyle, setDebuggingId, setParent, toggleCssClass, 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.ClientObject
handleUiQuery
-
Methods inherited from interface org.teamapps.ux.component.Component
setAriaLabel, setAttribute, setCssStyle, setHtmlTitle, setMargin, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setShadow, toggleCssClass
-
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
-
-
Method Detail
-
createUiComponent
public org.teamapps.dto.UiLocalDateField createUiComponent()
- Specified by:
createUiComponentin classAbstractComponent
-
convertUiValueToUxValue
public java.time.LocalDate convertUiValueToUxValue(java.lang.Object value)
- Overrides:
convertUiValueToUxValuein classAbstractField<java.time.LocalDate>
-
convertUxValueToUiValue
public org.teamapps.dto.UiLocalDate convertUxValueToUiValue(java.time.LocalDate localDate)
Description copied from class:AbstractFieldConverts a server-side value to a client-side field-specific value. Implementations must not have any side effects to the component!- Overrides:
convertUxValueToUiValuein classAbstractField<java.time.LocalDate>- Parameters:
localDate- the server-side value- Returns:
- the object to be sent to the ui
-
handleUiEvent
public void handleUiEvent(org.teamapps.dto.UiEvent event)
- Specified by:
handleUiEventin interfaceClientObject- Overrides:
handleUiEventin classAbstractField<java.time.LocalDate>
-
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
public DateTimeFormatDescriptor getDateFormat()
-
setDateFormat
public void setDateFormat(DateTimeFormatDescriptor 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
-
getDefaultSuggestionDate
public java.time.LocalDate getDefaultSuggestionDate()
-
setDefaultSuggestionDate
public void setDefaultSuggestionDate(java.time.LocalDate defaultSuggestionDate)
-
isShuffledFormatSuggestionsEnabled
public boolean isShuffledFormatSuggestionsEnabled()
-
setShuffledFormatSuggestionsEnabled
public void setShuffledFormatSuggestionsEnabled(boolean shuffledFormatSuggestionsEnabled)
-
getDropDownMode
public LocalDateField.DropDownMode getDropDownMode()
-
setDropDownMode
public void setDropDownMode(LocalDateField.DropDownMode dropDownMode)
-
getEmptyText
public java.lang.String getEmptyText()
-
setEmptyText
public void setEmptyText(java.lang.String emptyText)
-
-