com.github.fluorumlabs.disconnect.vaadin.elements.RadioButtonElement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of disconnect-vaadin Show documentation
Show all versions of disconnect-vaadin Show documentation
Vaadin components bindings for Disconnect Zero
The newest version!
package com.github.fluorumlabs.disconnect.vaadin.elements;
import com.github.fluorumlabs.disconnect.core.annotations.Import;
import com.github.fluorumlabs.disconnect.core.annotations.NpmPackage;
import com.github.fluorumlabs.disconnect.polymer.elements.mixins.GestureEventListeners;
import com.github.fluorumlabs.disconnect.vaadin.Vaadin;
import com.github.fluorumlabs.disconnect.vaadin.elements.mixins.ControlStateMixin;
import com.github.fluorumlabs.disconnect.vaadin.elements.mixins.ElementMixin;
import com.github.fluorumlabs.disconnect.vaadin.elements.mixins.ThemableMixin;
import js.web.dom.HTMLElement;
import org.teavm.jso.JSProperty;
import javax.annotation.Nullable;
/**
* <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
*
*
* 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
* empty
Set when there is no label provided. label
*
*
* See
* ThemableMixin – how to apply styles for shadow parts
*/
@NpmPackage(
name = "@vaadin/vaadin",
version = Vaadin.VERSION
)
@Import(
module = "@vaadin/vaadin-radio-button/theme/lumo/vaadin-radio-button.js"
)
public interface RadioButtonElement
extends HTMLElement, ElementMixin, ControlStateMixin, ThemableMixin, GestureEventListeners {
static String TAGNAME() {
return "vaadin-radio-button";
}
/**
* Name of the element.
*/
@Nullable
@JSProperty
String getName();
/**
* Name of the element.
*/
@JSProperty
void setName(String name);
/**
* True if the radio button is checked.
*/
@JSProperty
boolean isChecked();
/**
* True if the radio button is checked.
*/
@JSProperty
void setChecked(boolean checked);
/**
* The value for this element.
*/
@Nullable
@JSProperty
String getValue();
/**
* The value for this element.
*/
@JSProperty
void setValue(String value);
}