Interface IUIDateValueComponent

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

public interface IUIDateValueComponent extends IUIDateTimeComponent
Interface implemented by Date 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:
      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 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:
      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(LocalDate value) throws IllegalArgumentException
      Sets the date.
      Parameters:
      value - The LocalDate 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 date.
      Parameters:
      value - The Date value.
      Returns:
      true for changed value, false otherwise.
      Throws:
      IllegalArgumentException - If the date value is out of range.
    • getLocalDate

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