Package org.zkoss.stateless.sul

## Interface IReadonly<I extends IComponent>

- All Known Subinterfaces:
    `IBandbox`, `ICombobox`, `IDatebox`, `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

    All Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `default boolean` | `isReadonly()` | Returns whether it is readonly.
    `I` | `withReadonly​(boolean readonly)` | Returns a copy of `this` immutable component with the specified `readonly`.

- - ### Method Detail

    - #### 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