Interface ITimepicker

    • Field Detail

      • DEFAULT

        static final ITimepicker DEFAULT
        Constant for default attributes of this immutable component.
    • Method Detail

      • getWidgetClass

        default java.lang.String getWidgetClass()
        Returns the client widget class.

        Default: "zkmax.inp.Timepicker"

        Specified by:
        getWidgetClass in interface IComponent<ITimepicker>
      • getMin

        @Nullable
        java.util.Date getMin()
        Returns the minimum time used to generate the options in Timepicker, or null if the default minimum time is used.(00:00:00 AM)
      • withMin

        ITimepicker withMin​(@Nullable
                            java.util.Date min)
        Returns a copy of this immutable component with the specified min.

        Sets the minimum time used to generate the options in Timepicker

        Parameters:
        min - The minimum time used to generate the options in Timepicker

        Default: null.

        Returns:
        A modified copy of the this object
      • withMin

        default ITimepicker withMin​(@Nullable
                                    java.time.LocalTime min)
        Returns a copy of this immutable component with the specified min.

        Sets the minimum time used to generate the options in Timepicker

        Parameters:
        min - The minimum time used to generate the options in Timepicker

        Default: null.

        Returns:
        A modified copy of the this object
      • getMax

        @Nullable
        java.util.Date getMax()
        Returns the maximum time used to generate the options in Timepicker, or null if the default maximum time is used.
      • withMax

        ITimepicker withMax​(@Nullable
                            java.util.Date max)
        Returns a copy of this immutable component with the specified max.

        Sets the maximum time used to generate the options in Timepicker

        Parameters:
        max - The maximum time used to generate the options in Timepicker

        Default: null.

        Returns:
        A modified copy of the this object
      • withMax

        default ITimepicker withMax​(@Nullable
                                    java.time.LocalTime max)
        Returns a copy of this immutable component with the specified max.

        Sets the maximum time used to generate the options in Timepicker

        Parameters:
        max - The maximum time used to generate the options in Timepicker

        Default: null.

        Returns:
        A modified copy of the this object
      • getCols

        default int getCols()
        Returns the cols which determines the visible width, in characters.

        Default: 5 (non-positive means the same as browser's default).

        Specified by:
        getCols in interface IInputElement<ITimepicker,​java.util.Date>
      • getInterval

        default int getInterval()
        Returns the interval time used to generate the options in Timepicker

        Unit: second

        Default: 3600, i.e. 1hr

      • withInterval

        ITimepicker withInterval​(int interval)
        Returns a copy of this immutable component with the specified interval. Sets the interval time used to generate the options in Timepicker

        Unit: 1 second

        Parameters:
        interval - The time used to generate the options
        Returns:
        A modified copy of the this object
      • isReadonly

        default boolean isReadonly()
        Returns whether it is readonly.

        Default: true.

        Specified by:
        isReadonly in interface IReadonly<ITimepicker>
      • of

        static ITimepicker of​(java.util.Date date)
        Return the instance of the given date.
        Parameters:
        date - The date to indicate the time for the timepicker.
      • of

        static ITimepicker of​(java.time.temporal.Temporal date)
        Return the instance of the given date.
        Parameters:
        date - The date to indicate the time for the timepicker.
      • of

        static ITimepicker of​(java.lang.String format,
                              java.util.Date date)
        Return the instance of the given format and date.
        Parameters:
        format - The format of the timepicker
        date - The date to indicate the value for timepicker.
      • of

        static ITimepicker of​(java.lang.String format,
                              java.time.temporal.Temporal date)
        Return the instance of the given format and date.
        Parameters:
        format - The format of the timepicker
        date - The date to indicate the value for timepicker.
      • ofCols

        static ITimepicker ofCols​(int cols)
        Returns the instance with the given cols.
        Parameters:
        cols - The cols which determines the visible width
      • ofConstraint

        static ITimepicker ofConstraint​(java.lang.String constraint)
        Returns the instance with the given constraint.
        Parameters:
        constraint - The timepicker constraint
      • ofFormat

        static ITimepicker ofFormat​(java.lang.String format)
        Returns the instance with the given format.
        Parameters:
        format - The timepicker format
      • ofLocale

        static ITimepicker ofLocale​(java.lang.String locale)
        Returns the instance with the given locale.
        Parameters:
        locale - The timepicker locale
      • ofLocale

        static ITimepicker ofLocale​(java.util.Locale locale)
        Returns the instance with the given locale.
        Parameters:
        locale - The timepicker locale
      • ofId

        static ITimepicker ofId​(java.lang.String id)
        Returns the instance with the given id.
        Parameters:
        id - The id to identify this component