com.vaadin.flow.component.radiobutton.

Class GeneratedVaadinRadioGroup<R extends GeneratedVaadinRadioGroup<R,T>,T>

    • Constructor Detail

      • GeneratedVaadinRadioGroup

        public GeneratedVaadinRadioGroup(T initialValue,
                                         T defaultValue,
                                         Class<P> elementPropertyType,
                                         SerializableFunction<P,T> presentationToModel,
                                         SerializableFunction<T,P> modelToPresentation)

        Constructs a new GeneratedVaadinRadioGroup component with the given arguments.

        Type Parameters:

        P - the property type

        Parameters:

        initialValue - the initial value to set to the value

        defaultValue - the default value to use if the value isn't defined

        elementPropertyType - the type of the element property

        presentationToModel - a function that converts a string value to a model value

        modelToPresentation - a function that converts a model value to a string value

      • GeneratedVaadinRadioGroup

        public GeneratedVaadinRadioGroup(T initialValue,
                                         T defaultValue,
                                         boolean acceptNullValues)

        Constructs a new GeneratedVaadinRadioGroup component with the given arguments.

        Parameters:

        initialValue - the initial value to set to the value

        defaultValue - the default value to use if the value isn't defined

        acceptNullValues - whether null is accepted as a model value

      • GeneratedVaadinRadioGroup

        public GeneratedVaadinRadioGroup(T initialValue,
                                         T defaultValue,
                                         Class<P> elementPropertyType,
                                         SerializableBiFunction<R,P,T> presentationToModel,
                                         SerializableBiFunction<R,T,P> modelToPresentation)

        Constructs a new GeneratedVaadinRadioGroup component with the given arguments.

        Type Parameters:

        P - the property type

        Parameters:

        initialValue - the initial value to set to the value

        defaultValue - the default value to use if the value isn't defined

        elementPropertyType - the type of the element property

        presentationToModel - a function that accepts this component and a property value and returns a model value

        modelToPresentation - a function that accepts this component and a model value and returns a property value

      • GeneratedVaadinRadioGroup

        public GeneratedVaadinRadioGroup()

        Default constructor.

    • Method Detail

      • isDisabledBoolean

        protected boolean isDisabledBoolean()

        Description copied from corresponding location in WebComponent:

        The current disabled state of the radio group. True if group and all internal radio buttons are disabled.

        This property is not synchronized automatically from the client side, so the returned value may not be the same as in client side.

        Returns:

        the disabled property from the webcomponent

      • setDisabled

        protected void setDisabled(boolean disabled)

        Description copied from corresponding location in WebComponent:

        The current disabled state of the radio group. True if group and all internal radio buttons are disabled.

        Parameters:

        disabled - the boolean value to set