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
  • Field Details

    • onTextInput

      public final Event<java.lang.String> onTextInput
    • onSpecialKeyPressed

      public final Event<SpecialKey> onSpecialKeyPressed
  • Constructor Details

    • LocalDateField

      public LocalDateField()
  • Method Details

    • createUiComponent

      public org.teamapps.dto.UiLocalDateField createUiComponent()
      Specified by:
      createUiComponent in class AbstractComponent
    • convertUiValueToUxValue

      public java.time.LocalDate convertUiValueToUxValue​(java.lang.Object value)
      Overrides:
      convertUiValueToUxValue in class AbstractField<java.time.LocalDate>
    • convertUxValueToUiValue

      public org.teamapps.dto.UiLocalDate convertUxValueToUiValue​(java.time.LocalDate localDate)
      Description copied from class: AbstractField
      Converts a server-side value to a client-side field-specific value. Implementations must not have any side effects to the component!
      Overrides:
      convertUxValueToUiValue in class AbstractField<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:
      handleUiEvent in interface ClientObject
      Overrides:
      handleUiEvent in class AbstractField<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:
      onTextInput in interface TextInputHandlingField
    • onSpecialKeyPressed

      public Event<SpecialKey> onSpecialKeyPressed()
      Specified by:
      onSpecialKeyPressed in interface TextInputHandlingField
    • 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)