@Generated(value={"Generator: com.vaadin.generator.ComponentGenerator#1.1-SNAPSHOT","WebComponent: Vaadin.RadioButtonElement#1.1.2","Flow#1.1-SNAPSHOT"}) @Tag(value="vaadin-radio-button") @HtmlImport(value="frontend://bower_components/vaadin-radio-button/src/vaadin-radio-button.html") public abstract class GeneratedVaadinRadioButton<R extends GeneratedVaadinRadioButton<R>> extends Component implements HasStyle, Focusable<R>, ClickNotifier<R>
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>
The following shadow DOM parts are available for styling:
Part name | Description |
---|---|
radio |
The radio button element |
label |
The label content element |
The following state attributes are available for styling:
Attribute | Description | Part name |
---|---|---|
disabled |
Set when the radio button is disabled. | :host |
focus-ring |
Set when the radio button is focused using the keyboard. | :host |
focused |
Set when the radio button is focused. | :host |
checked |
Set when the radio button is checked. | :host |
Modifier and Type | Class and Description |
---|---|
static class |
GeneratedVaadinRadioButton.CheckedChangeEvent<R extends GeneratedVaadinRadioButton<R>> |
BlurNotifier.BlurEvent<C extends Component>
FocusNotifier.FocusEvent<C extends Component>
Constructor and Description |
---|
GeneratedVaadinRadioButton() |
Modifier and Type | Method and Description |
---|---|
protected Registration |
addCheckedChangeListener(ComponentEventListener<GeneratedVaadinRadioButton.CheckedChangeEvent<R>> listener)
Adds a listener for
checked-changed events fired by the
webcomponent. |
protected String |
getNameString()
This property is not synchronized automatically from the client side, so
the returned value may not be the same as in client side.
|
protected String |
getValueString()
Description copied from corresponding location in WebComponent:
|
protected boolean |
isAutofocusBoolean()
Description copied from corresponding location in WebComponent:
|
protected boolean |
isCheckedBoolean()
Description copied from corresponding location in WebComponent:
|
protected boolean |
isDisabledBoolean()
Description copied from corresponding location in WebComponent:
|
protected void |
setAutofocus(boolean autofocus)
Description copied from corresponding location in WebComponent:
|
protected void |
setChecked(boolean checked)
Description copied from corresponding location in WebComponent:
|
protected void |
setDisabled(boolean disabled)
Description copied from corresponding location in WebComponent:
|
protected void |
setName(String name) |
protected void |
setValue(String value)
Description copied from corresponding location in WebComponent:
|
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
blur, focus, getTabIndex, setTabIndex
addBlurListener
addFocusListener
isEnabled, setEnabled
getElement
addClickListener
addAttachListener
addDetachListener
protected boolean isAutofocusBoolean()
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.
autofocus
property from the webcomponentprotected void setAutofocus(boolean autofocus)
Description copied from corresponding location in WebComponent:
Specify that this control should have input focus when the page loads.
autofocus
- the boolean value to setprotected boolean isDisabledBoolean()
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.
disabled
property from the webcomponentprotected void setDisabled(boolean disabled)
Description copied from corresponding location in WebComponent:
If true, the user cannot interact with this element.
disabled
- the boolean value to setprotected String getNameString()
name
property from the webcomponentprotected void setName(String name)
name
- the String value to set@Synchronize(property="checked", value="checked-changed") protected boolean isCheckedBoolean()
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.
checked
property from the webcomponentprotected void setChecked(boolean checked)
Description copied from corresponding location in WebComponent:
True if the radio button is checked.
checked
- the boolean value to setprotected String getValueString()
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.
value
property from the webcomponentprotected void setValue(String value)
Description copied from corresponding location in WebComponent:
The value for this element.
value
- the String value to setprotected Registration addCheckedChangeListener(ComponentEventListener<GeneratedVaadinRadioButton.CheckedChangeEvent<R>> listener)
checked-changed
events fired by the
webcomponent.listener
- the listenerRegistration
for removing the event listenerCopyright © 2018. All rights reserved.