Interface IUITimeValueComponent

All Superinterfaces:
IComponent, ICustomDataProvider, IGProp<GProp<?>[]>, IMessageBox, IPropCnr, IUIComp, IUIDateTimeComponent, IUIValueComponent, IVSComponentListener, IVSComponentState, IVSFieldListener

public interface IUITimeValueComponent extends IUIDateTimeComponent
Interface implemented by Time value supporting components with a date/time value.
Author:
Christopher Mindus
  • Method Details

    • 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 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:
      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(LocalTime value) throws IllegalArgumentException
      Sets the time.
      Parameters:
      value - The LocalTime value.
      Returns:
      true for changed value, false otherwise.
      Throws:
      IllegalArgumentException - If the date value is out of range.
    • setValue

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

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

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

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

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