Class GeneratedVaadinRadioGroup<R extends GeneratedVaadinRadioGroup<R,T>,T>
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.AbstractField<C,T>
-
- com.vaadin.flow.component.AbstractSinglePropertyField<R,T>
-
- com.vaadin.flow.component.radiobutton.GeneratedVaadinRadioGroup<R,T>
-
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasStyle,com.vaadin.flow.component.HasTheme,com.vaadin.flow.component.HasValue<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<R,T>,T>,com.vaadin.flow.component.HasValueAndElement<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<R,T>,T>,Serializable
- Direct Known Subclasses:
RadioButtonGroup
@Deprecated @Tag("vaadin-radio-group") @NpmPackage(value="@vaadin/polymer-legacy-adapter", version="23.6.1") @JsModule("@vaadin/polymer-legacy-adapter/style-modules.js") @JsModule("@vaadin/radio-group/src/vaadin-radio-group.js") public abstract class GeneratedVaadinRadioGroup<R extends GeneratedVaadinRadioGroup<R,T>,T> extends com.vaadin.flow.component.AbstractSinglePropertyField<R,T> implements com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.HasTheme
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
<vaadin-radio-group>is a Web Component for grouping vaadin-radio-buttons.<vaadin-radio-group> <vaadin-radio-button name="foo">Foo</vaadin-radio-button> <vaadin-radio-button name="bar">Bar</vaadin-radio-button> <vaadin-radio-button name="baz">Baz</vaadin-radio-button> </vaadin-radio-group>
Styling
The following shadow DOM parts are available for styling:
Part name Description labelThe label element group-fieldThe element that wraps radio-buttons The following state attributes are available for styling:
Attribute Description Part name disabledSet when the radio group and its children are disabled. :host readonlySet to a readonly text field :host invalidSet when the element is invalid :host has-labelSet when the element has a label :host has-valueSet when the element has a value :host - See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGeneratedVaadinRadioGroup.InvalidChangeEvent<R extends GeneratedVaadinRadioGroup<R,?>>Deprecated.since v23.3, generated classes will be removed in v24.-
Nested classes/interfaces inherited from class com.vaadin.flow.component.AbstractField
com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<C extends com.vaadin.flow.component.Component,V extends Object>
-
Nested classes/interfaces inherited from interface com.vaadin.flow.component.HasValue
com.vaadin.flow.component.HasValue.ValueChangeEvent<V extends Object>, com.vaadin.flow.component.HasValue.ValueChangeListener<E extends com.vaadin.flow.component.HasValue.ValueChangeEvent<?>>
-
-
Constructor Summary
Constructors Constructor Description GeneratedVaadinRadioGroup()Deprecated.since v23.3, generated classes will be removed in v24.GeneratedVaadinRadioGroup(T initialValue, T defaultValue, boolean acceptNullValues)Deprecated.since v23.3, generated classes will be removed in v24.GeneratedVaadinRadioGroup(T initialValue, T defaultValue, Class<P> elementPropertyType, com.vaadin.flow.function.SerializableBiFunction<R,P,T> presentationToModel, com.vaadin.flow.function.SerializableBiFunction<R,T,P> modelToPresentation)Deprecated.since v23.3, generated classes will be removed in v24.GeneratedVaadinRadioGroup(T initialValue, T defaultValue, Class<P> elementPropertyType, com.vaadin.flow.function.SerializableBiFunction<R,P,T> presentationToModel, com.vaadin.flow.function.SerializableBiFunction<R,T,P> modelToPresentation, boolean isInitialValueOptional)Deprecated.since v23.3, generated classes will be removed in v24.GeneratedVaadinRadioGroup(T initialValue, T defaultValue, Class<P> elementPropertyType, com.vaadin.flow.function.SerializableFunction<P,T> presentationToModel, com.vaadin.flow.function.SerializableFunction<T,P> modelToPresentation)Deprecated.since v23.3, generated classes will be removed in v24.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected com.vaadin.flow.shared.RegistrationaddInvalidChangeListener(com.vaadin.flow.component.ComponentEventListener<GeneratedVaadinRadioGroup.InvalidChangeEvent<R>> listener)Deprecated.since v23.3, generated classes will be removed in v24.voidaddThemeVariants(RadioGroupVariant... variants)Deprecated.since v23.3, generated classes will be removed in v24.protected voidcheckValidity()Deprecated.since v23.3, generated classes will be removed in v24.protected StringgetErrorMessageString()Deprecated.since v23.3, generated classes will be removed in v24.protected StringgetLabelString()Deprecated.since v23.3, generated classes will be removed in v24.protected booleanisDisabledBoolean()Deprecated.since v23.3, generated classes will be removed in v24.protected booleanisInvalidBoolean()Deprecated.since v23.3, generated classes will be removed in v24.protected booleanisReadonlyBoolean()Deprecated.since v23.3, generated classes will be removed in v24.protected booleanisRequiredBoolean()Deprecated.since v23.3, generated classes will be removed in v24.voidremoveThemeVariants(RadioGroupVariant... variants)Deprecated.since v23.3, generated classes will be removed in v24.protected voidsetDisabled(boolean disabled)Deprecated.since v23.3, generated classes will be removed in v24.protected voidsetErrorMessage(String errorMessage)Deprecated.since v23.3, generated classes will be removed in v24.protected voidsetInvalid(boolean invalid)Deprecated.since v23.3, generated classes will be removed in v24.protected voidsetLabel(String label)Deprecated.since v23.3, generated classes will be removed in v24.protected voidsetReadonly(boolean readonly)Deprecated.since v23.3, generated classes will be removed in v24.protected voidsetRequired(boolean required)Deprecated.since v23.3, generated classes will be removed in v24.protected voidvalidate()Deprecated.since v23.3, generated classes will be removed in v24.-
Methods inherited from class com.vaadin.flow.component.AbstractSinglePropertyField
getSynchronizationRegistration, hasValidValue, setPresentationValue, setSynchronizedEvent
-
Methods inherited from class com.vaadin.flow.component.AbstractField
addValueChangeListener, getEmptyValue, getValue, isEmpty, setModelValue, setValue, valueEquals
-
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, scrollIntoView, set, setElement, setId, setVisible
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
-
-
-
Constructor Detail
-
GeneratedVaadinRadioGroup
@Deprecated public GeneratedVaadinRadioGroup(T initialValue, T defaultValue, Class<P> elementPropertyType, com.vaadin.flow.function.SerializableFunction<P,T> presentationToModel, com.vaadin.flow.function.SerializableFunction<T,P> modelToPresentation)
Deprecated.since v23.3, generated classes will be removed in v24.Constructs a new GeneratedVaadinRadioGroup component with the given arguments.- Type Parameters:
P- the property type- Parameters:
initialValue- the initial value to set to the valuedefaultValue- the default value to use if the value isn't definedelementPropertyType- the type of the element propertypresentationToModel- a function that converts a string value to a model valuemodelToPresentation- a function that converts a model value to a string value
-
GeneratedVaadinRadioGroup
@Deprecated public GeneratedVaadinRadioGroup(T initialValue, T defaultValue, boolean acceptNullValues)
Deprecated.since v23.3, generated classes will be removed in v24.Constructs a new GeneratedVaadinRadioGroup component with the given arguments.- Parameters:
initialValue- the initial value to set to the valuedefaultValue- the default value to use if the value isn't definedacceptNullValues- whethernullis accepted as a model value
-
GeneratedVaadinRadioGroup
@Deprecated public GeneratedVaadinRadioGroup(T initialValue, T defaultValue, Class<P> elementPropertyType, com.vaadin.flow.function.SerializableBiFunction<R,P,T> presentationToModel, com.vaadin.flow.function.SerializableBiFunction<R,T,P> modelToPresentation, boolean isInitialValueOptional)
Deprecated.since v23.3, generated classes will be removed in v24.Constructs a new GeneratedVaadinRadioGroup component with the given arguments.If
isInitialValueOptionalistruethen the initial value is used only if element has no"value"property value, otherwise element"value"property is ignored and the initial value is set.- Type Parameters:
P- the property type- Parameters:
initialValue- the initial value to set to the valuedefaultValue- the default value to use if the value isn't definedelementPropertyType- the type of the element propertypresentationToModel- a function that accepts this component and a property value and returns a model valuemodelToPresentation- a function that accepts this component and a model value and returns a property valueisInitialValueOptional- ifisInitialValueOptionalistruethen the initial value is used only if element has no"value"property value, otherwise element"value"property is ignored and the initial value is set
-
GeneratedVaadinRadioGroup
@Deprecated public GeneratedVaadinRadioGroup(T initialValue, T defaultValue, Class<P> elementPropertyType, com.vaadin.flow.function.SerializableBiFunction<R,P,T> presentationToModel, com.vaadin.flow.function.SerializableBiFunction<R,T,P> modelToPresentation)
Deprecated.since v23.3, generated classes will be removed in v24.Constructs a new GeneratedVaadinRadioGroup component with the given arguments.- Type Parameters:
P- the property type- Parameters:
initialValue- the initial value to set to the valuedefaultValue- the default value to use if the value isn't definedelementPropertyType- the type of the element propertypresentationToModel- a function that accepts this component and a property value and returns a model valuemodelToPresentation- a function that accepts this component and a model value and returns a property value
-
GeneratedVaadinRadioGroup
@Deprecated public GeneratedVaadinRadioGroup()
Deprecated.since v23.3, generated classes will be removed in v24.Default constructor.
-
-
Method Detail
-
addThemeVariants
@Deprecated public void addThemeVariants(RadioGroupVariant... variants)
Deprecated.since v23.3, generated classes will be removed in v24. UseRadioButtonGroup.addThemeVariants(com.vaadin.flow.component.radiobutton.RadioGroupVariant...)instead.Adds theme variants to the component.- Parameters:
variants- theme variants to add
-
removeThemeVariants
@Deprecated public void removeThemeVariants(RadioGroupVariant... variants)
Deprecated.since v23.3, generated classes will be removed in v24. UseRadioButtonGroup.removeThemeVariants(com.vaadin.flow.component.radiobutton.RadioGroupVariant...)instead.Removes theme variants from the component.- Parameters:
variants- theme variants to remove
-
isDisabledBoolean
@Deprecated protected boolean isDisabledBoolean()
Deprecated.since v23.3, generated classes will be removed in v24.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
disabledproperty from the webcomponent
-
setDisabled
@Deprecated protected void setDisabled(boolean disabled)
Deprecated.since v23.3, generated classes will be removed in v24.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
-
isReadonlyBoolean
@Deprecated protected boolean isReadonlyBoolean()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
This attribute indicates that the user cannot modify the value of the control.
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
readonlyproperty from the webcomponent
-
setReadonly
@Deprecated protected void setReadonly(boolean readonly)
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
This attribute indicates that the user cannot modify the value of the control.
- Parameters:
readonly- the boolean value to set
-
isInvalidBoolean
@Deprecated protected boolean isInvalidBoolean()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
This property is set to true when the value is invalid.
- Returns:
- the
invalidproperty from the webcomponent
-
setInvalid
@Deprecated protected void setInvalid(boolean invalid)
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
This property is set to true when the value is invalid.
- Parameters:
invalid- the boolean value to set
-
isRequiredBoolean
@Deprecated protected boolean isRequiredBoolean()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
Specifies that the user must fill in a value.
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
requiredproperty from the webcomponent
-
setRequired
@Deprecated protected void setRequired(boolean required)
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
Specifies that the user must fill in a value.
- Parameters:
required- the boolean value to set
-
getErrorMessageString
@Deprecated protected String getErrorMessageString()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
Error to show when the input value is invalid.
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
errorMessageproperty from the webcomponent
-
setErrorMessage
@Deprecated protected void setErrorMessage(String errorMessage)
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
Error to show when the input value is invalid.
- Parameters:
errorMessage- the String value to set
-
getLabelString
@Deprecated protected String getLabelString()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
String used for the label element.
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
labelproperty from the webcomponent
-
setLabel
@Deprecated protected void setLabel(String label)
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
String used for the label element.
- Parameters:
label- the String value to set
-
validate
@Deprecated @NotSupported protected void validate()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
Returns true if
valueis valid.<iron-form>uses this to check the validity or all its elements.This function is not supported by Flow because it returns a
boolean. Functions with return types different than void are not supported at this moment.
-
checkValidity
@Deprecated @NotSupported protected void checkValidity()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
Returns true if the current input value satisfies all constraints (if any)
This function is not supported by Flow because it returns a
boolean. Functions with return types different than void are not supported at this moment.
-
addInvalidChangeListener
@Deprecated protected com.vaadin.flow.shared.Registration addInvalidChangeListener(com.vaadin.flow.component.ComponentEventListener<GeneratedVaadinRadioGroup.InvalidChangeEvent<R>> listener)
Deprecated.since v23.3, generated classes will be removed in v24.Adds a listener forinvalid-changedevents fired by the webcomponent.- Parameters:
listener- the listener- Returns:
- a
Registrationfor removing the event listener
-
-