Interface IUITimeValueComponent

    • Method Detail

      • isDateValueSupported

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

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

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

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

        default boolean setValue​(GDateTime value)
                          throws java.lang.IllegalArgumentException
        Sets the time 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 time part required by the component.
      • setValue

        default boolean setValue​(java.time.LocalTime value)
                          throws java.lang.IllegalArgumentException
        Sets the time.
        Parameters:
        value - The LocalTime 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 time.
        Parameters:
        value - The Time value part of a Date.
        Returns:
        true for changed value, false otherwise.
        Throws:
        java.lang.IllegalArgumentException - If the time value is out of range.
      • setValue

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

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

        default java.time.LocalTime getLocalTime()
        Gets the time as a LocalTime.
        Returns:
        The local time.
        Throws:
        NotFoundException - If the value is undefined.
      • getSQLTime

        default java.sql.Time getSQLTime()
        Gets the time as an SQL Time.
        Returns:
        The SQL time.
        Throws:
        NotFoundException - If the value is undefined.