com.vaadin.flow.component.radiobutton.
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:
AttachNotifier, DetachNotifier, HasElement, HasEnabled, HasStyle, HasValue<AbstractField.ComponentValueChangeEvent<R,T>,T>, HasValueAndElement<AbstractField.ComponentValueChangeEvent<R,T>,T>, Serializable
Direct Known Subclasses:
@Generated(value={"Generator: com.vaadin.generator.ComponentGenerator#1.0-SNAPSHOT","WebComponent: Vaadin.RadioGroupElement#1.0.1","Flow#1.0-SNAPSHOT"}) @Tag(value="vaadin-radio-group") @HtmlImport(value="frontend://bower_components/vaadin-radio-button/src/vaadin-radio-group.html") public abstract class GeneratedVaadinRadioGroup<R extends GeneratedVaadinRadioGroup<R,T>,T> extends AbstractSinglePropertyField<R,T> implements HasStyle
Description copied from corresponding location in WebComponent:
<vaadin-radio-group>
is a Polymer element 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 state attributes are available for styling:
Attribute Description Part name disabled
Set when the radio group and its children are disabled. :host See ThemableMixin ? how to apply styles for shadow parts
See Also:
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vaadin.flow.component.AbstractField
AbstractField.ComponentValueChangeEvent<C extends Component,V>
-
Nested classes/interfaces inherited from interface com.vaadin.flow.component.HasValue
HasValue.ValueChangeEvent<V>, HasValue.ValueChangeListener<E extends HasValue.ValueChangeEvent<?>>
-
-
Constructor Summary
Constructors Constructor and Description GeneratedVaadinRadioGroup()
Default constructor.
GeneratedVaadinRadioGroup(T initialValue, T defaultValue, boolean acceptNullValues)
Constructs a new GeneratedVaadinRadioGroup component with the given arguments.
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.
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.
-
Method Summary
All Methods Modifier and Type Method and Description protected boolean
isDisabledBoolean()
Description copied from corresponding location in WebComponent:
protected void
setDisabled(boolean disabled)
Description copied from corresponding location in WebComponent:
-
Methods inherited from class com.vaadin.flow.component.AbstractSinglePropertyField
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, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, 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
-
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
-
Methods inherited from interface com.vaadin.flow.component.HasValueAndElement
isReadOnly, isRequiredIndicatorVisible, setReadOnly, setRequiredIndicatorVisible
-
Methods inherited from interface com.vaadin.flow.component.HasValue
clear, getOptionalValue
-
Methods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabled
-
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
-
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
-
-
-
-
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 typeParameters:
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
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 valuedefaultValue
- the default value to use if the value isn't definedacceptNullValues
- whethernull
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 typeParameters:
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
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
-
-