Interface IReadonly<I extends IComponent>

All Known Subinterfaces:
IBandbox, ICodeeditor, ICombobox, IDatebox, IDaterangebox, IDateTimeFormatInputElement<I>, IDecimalbox, IDoublebox, IDoublespinner, IFormatInputElement<I,ValueTypeT>, IInputElement<I,ValueTypeT>, IIntbox, ILongbox, INumberInputElement<I,ValueTypeT>, IRating, ISpinner, ITextbox, ITextboxBase<I>, ITimebox, ITimepicker

public interface IReadonly<I extends IComponent>
Immutable Readonly interface.

Indicate a component can be set to readonly

Author:
katherine
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    Returns whether it is readonly.
    withReadonly(boolean readonly)
    Returns a copy of this immutable component with the specified readonly.
  • Method Details

    • isReadonly

      default boolean isReadonly()
      Returns whether it is readonly.

      Default: false.

    • withReadonly

      I withReadonly(boolean readonly)
      Returns a copy of this immutable component with the specified readonly.

      Sets whether it's readonly.

      Parameters:
      readonly - true means readonly.

      Default: false.

      Returns:
      A modified copy of the this object