@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>
The following state attributes are available for styling:
Attribute | Description | Part name |
---|---|---|
disabled |
Set when the radio group and its children are disabled. | :host |
AbstractField.ComponentValueChangeEvent<C extends Component,V>
HasValue.ValueChangeEvent<V>, HasValue.ValueChangeListener<E extends HasValue.ValueChangeEvent<?>>
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.
|
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:
|
hasValidValue, setPresentationValue, setSynchronizedEvent
addValueChangeListener, getEmptyValue, getValue, isEmpty, setModelValue, setValue, valueEquals
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
getElement
isReadOnly, isRequiredIndicatorVisible, setReadOnly, setRequiredIndicatorVisible
clear, getOptionalValue
isEnabled, setEnabled
addAttachListener
addDetachListener
public GeneratedVaadinRadioGroup(T initialValue, T defaultValue, Class<P> elementPropertyType, SerializableFunction<P,T> presentationToModel, SerializableFunction<T,P> modelToPresentation)
P
- the property typeinitialValue
- 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 valuepublic GeneratedVaadinRadioGroup(T initialValue, T defaultValue, boolean acceptNullValues)
initialValue
- the initial value to set to the valuedefaultValue
- the default value to use if the value isn't definedacceptNullValues
- whether null
is accepted as a model valuepublic GeneratedVaadinRadioGroup(T initialValue, T defaultValue, Class<P> elementPropertyType, SerializableBiFunction<R,P,T> presentationToModel, SerializableBiFunction<R,T,P> modelToPresentation)
P
- the property typeinitialValue
- 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 valuepublic GeneratedVaadinRadioGroup()
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.
disabled
property from the webcomponentprotected 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.
disabled
- the boolean value to setCopyright © 2018. All rights reserved.