Class GeneratedVaadinRadioButton<R extends GeneratedVaadinRadioButton<R>>
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.radiobutton.GeneratedVaadinRadioButton<R>
-
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.BlurNotifier<R>,com.vaadin.flow.component.ClickNotifier<R>,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.Focusable<R>,com.vaadin.flow.component.FocusNotifier<R>,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasStyle,Serializable
@Deprecated @Tag("vaadin-radio-button") @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-button.js") public abstract class GeneratedVaadinRadioButton<R extends GeneratedVaadinRadioButton<R>> extends com.vaadin.flow.component.Component implements com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.Focusable<R>, com.vaadin.flow.component.ClickNotifier<R>
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
<vaadin-radio-button>is a Web Component for radio buttons.<vaadin-radio-button value="foo">Foo</vaadin-radio-button>
Styling
The following shadow DOM parts are available for styling:
Part name Description radioThe radio button element labelThe label content element The following state attributes are available for styling:
Attribute Description Part name disabledSet when the radio button is disabled. :host focus-ringSet when the radio button is focused using the keyboard. :host focusedSet when the radio button is focused. :host checkedSet when the radio button is checked. :host - See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGeneratedVaadinRadioButton.CheckedChangeEvent<R extends GeneratedVaadinRadioButton<R>>Deprecated.since v23.3, generated classes will be removed in v24.
-
Constructor Summary
Constructors Constructor Description GeneratedVaadinRadioButton()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected com.vaadin.flow.shared.RegistrationaddCheckedChangeListener(com.vaadin.flow.component.ComponentEventListener<GeneratedVaadinRadioButton.CheckedChangeEvent<R>> listener)Deprecated.since v23.3, generated classes will be removed in v24.protected StringgetNameString()Deprecated.since v23.3, generated classes will be removed in v24.protected StringgetValueString()Deprecated.since v23.3, generated classes will be removed in v24.protected booleanisAutofocusBoolean()Deprecated.since v23.3, generated classes will be removed in v24.protected booleanisCheckedBoolean()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 voidsetAutofocus(boolean autofocus)Deprecated.since v23.3, generated classes will be removed in v24.protected voidsetChecked(boolean checked)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 voidsetName(String name)Deprecated.since v23.3, generated classes will be removed in v24.protected voidsetValue(String value)Deprecated.since v23.3, generated classes will be removed in v24.-
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.ClickNotifier
addClickListener, addClickShortcut, addDoubleClickListener, addSingleClickListener
-
-
-
-
Method Detail
-
isAutofocusBoolean
@Deprecated protected boolean isAutofocusBoolean()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
Specify that this control should have input focus when the page loads.
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
autofocusproperty from the webcomponent
-
setAutofocus
@Deprecated protected void setAutofocus(boolean autofocus)
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
Specify that this control should have input focus when the page loads.
- Parameters:
autofocus- the boolean value to set
-
isDisabledBoolean
@Deprecated protected boolean isDisabledBoolean()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
If true, the user cannot interact with this 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
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:
If true, the user cannot interact with this element.
- Parameters:
disabled- the boolean value to set
-
getNameString
@Deprecated protected String getNameString()
Deprecated.since v23.3, generated classes will be removed in v24.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
nameproperty from the webcomponent
-
setName
@Deprecated protected void setName(String name)
Deprecated.since v23.3, generated classes will be removed in v24.- Parameters:
name- the String value to set
-
isCheckedBoolean
@Deprecated @Synchronize(property="checked", value="checked-changed") protected boolean isCheckedBoolean()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
True if the radio button is checked.
This property is synchronized automatically from client side when a 'checked-changed' event happens.
- Returns:
- the
checkedproperty from the webcomponent
-
setChecked
@Deprecated protected void setChecked(boolean checked)
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
True if the radio button is checked.
- Parameters:
checked- the boolean value to set
-
getValueString
@Deprecated protected String getValueString()
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
The value for this 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
valueproperty from the webcomponent
-
setValue
@Deprecated protected void setValue(String value)
Deprecated.since v23.3, generated classes will be removed in v24.Description copied from corresponding location in WebComponent:
The value for this element.
- Parameters:
value- the String value to set
-
addCheckedChangeListener
@Deprecated protected com.vaadin.flow.shared.Registration addCheckedChangeListener(com.vaadin.flow.component.ComponentEventListener<GeneratedVaadinRadioButton.CheckedChangeEvent<R>> listener)
Deprecated.since v23.3, generated classes will be removed in v24.Adds a listener forchecked-changedevents fired by the webcomponent.- Parameters:
listener- the listener- Returns:
- a
Registrationfor removing the event listener
-
-