Package org.zkoss.stateless.sul

## Interface IDisable<I extends IComponent>

- All Known Subinterfaces:
    `ICascader`, `IComboitem`, `IMenu`, `IMenuitem`, `IMultislider`, `INavitem`, `IOrgitem`, `IPaging`, `IRadiogroup<I>`, `IRangeslider`, `IRangesliderBase<I>`, `IRating`, `ISearchbox`, `ISelectbox`, `ITreeitem`

      public interface IDisable<I extends IComponent>

  Immutable `Disable` interface

  Implemented with `IComponent` to indicate that a component can be disabled.

  Author:
    katherine

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `default boolean` | `isDisabled()` | Returns whether to disable the `IDisable`'s control.
    `I` | `withDisabled​(boolean disabled)` | Returns a copy of `this` immutable component with the specified `disabled`.

- - ### Method Detail

    - #### isDisabled

          default boolean isDisabled()

      Returns whether to disable the `IDisable`'s control.

      Default: `false`

    - #### withDisabled

          I withDisabled​(boolean disabled)

      Returns a copy of `this` immutable component with the specified `disabled`.

      Sets whether to disable the `IDisable`'s control or not.

      Parameters:
        `disabled` - Whether to disable the `IDisable`'s control or not.

        Default: `false`.

      Returns:
        A modified copy of the `this` object