Interface IUIDateValueComponent

    • Method Detail

      • isDateValueSupported

        default boolean isDateValueSupported()
        Returns if the implementation supports date.
        Specified by:
        isDateValueSupported in interface IUIDateTimeComponent
        Returns:
        true as date is supported.
      • isDateValueRequired

        default boolean isDateValueRequired()
        Returns if the implementation requires a date in the value component.
        Specified by:
        isDateValueRequired in interface IUIDateTimeComponent
        Returns:
        true as date is required.
      • isTimeValueSupported

        default boolean isTimeValueSupported()
        Returns if the implementation supports time.
        Specified by:
        isTimeValueSupported in interface IUIDateTimeComponent
        Returns:
        false as time is not supported.
      • isTimeValueRequired

        default boolean isTimeValueRequired()
        Returns if the implementation requires a time in the value component.
        Specified by:
        isTimeValueRequired in interface IUIDateTimeComponent
        Returns:
        false as time is not required.
      • setValue

        default boolean setValue​(GDateTime value)
                          throws java.lang.IllegalArgumentException
        Sets the date value of the component as a date/time value.
        Specified by:
        setValue in interface IUIDateTimeComponent
        Parameters:
        value - The date/time value.
        Returns:
        true for value changed, false for no change.
        Throws:
        java.lang.IllegalArgumentException - If the value is out of range or if the date/time value does not contain the date part required by the component.
      • setValue

        default boolean setValue​(java.time.LocalDate value)
                          throws java.lang.IllegalArgumentException
        Sets the date.
        Parameters:
        value - The LocalDate value.
        Returns:
        true for changed value, false otherwise.
        Throws:
        java.lang.IllegalArgumentException - If the date value is out of range.
      • setValue

        default boolean setValue​(java.util.Date value)
                          throws java.lang.IllegalArgumentException
        Sets the date.
        Parameters:
        value - The Date value.
        Returns:
        true for changed value, false otherwise.
        Throws:
        java.lang.IllegalArgumentException - If the date value is out of range.
      • getLocalDate

        default java.time.LocalDate getLocalDate()
        Gets the date as a LocalDate.
        Returns:
        The local date.
        Throws:
        NotFoundException - If the value is undefined.