Interface IRadio

    • Field Detail

      • DEFAULT

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

      • getWidgetClass

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

        Default: "zul.wgt.Radio"

        Specified by:
        getWidgetClass in interface IComponent<IRadio>
      • getRadiogroup

        @Nullable
        java.lang.String getRadiogroup()
        Returns the id of the IRadiogroup that groups this radio

        Default: null

      • withRadiogroup

        IRadio withRadiogroup​(@Nullable
                              java.lang.String radiogroupId)
        Returns a copy of this immutable component with the specified radiogroupId.

        Sets the id of the IRadiogroup that groups this radio

        Parameters:
        radiogroupId - The id of IRadiogroup.

        Default: null.

        Returns:
        A modified copy of the this object
      • isSelected

        @Lazy
        default boolean isSelected()
        Returns whether it is selected.

        Default: false.

      • withSelected

        default IRadio withSelected​(boolean selected)
        Returns a copy of this immutable component with the specified selected.

        Sets to select the radio or not.

        Parameters:
        selected - Whether to select the radio.

        Default: false.

        Returns:
        A modified copy of the this object
      • of

        static IRadio of​(java.lang.String label)
        Returns the instance with the given label.
        Parameters:
        label - The label of the component
      • of

        static IRadio of​(java.lang.String label,
                         java.lang.String image)
        Returns the instance with the given label and image.
        Parameters:
        label - The label of the component
        image - The image of the component
      • ofImage

        static IRadio ofImage​(java.lang.String image)
        Returns the instance with the given image.
        Parameters:
        image - The image of the component
      • ofId

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