Class Radio
- All Implemented Interfaces:
ElementAttributeMethods<HTMLElement, Radio>, ElementClassListMethods<HTMLElement, Radio>, ElementConsumerMethods<HTMLElement, Radio>, ElementContainerMethods<HTMLElement, Radio>, ElementEventMethods<HTMLElement, Radio>, ElementIdMethods<HTMLElement, Radio>, ElementQueryMethods<HTMLElement>, ElementTextDelegate<HTMLElement, Radio>, ElementTextMethods<HTMLElement, Radio>, HTMLElementAttributeMethods<HTMLElement, Radio>, HTMLElementDataMethods<HTMLElement, Radio>, HTMLElementStyleMethods<HTMLElement, Radio>, HTMLElementVisibilityMethods<HTMLElement, Radio>, IsElement<HTMLElement>, TypedBuilder<HTMLElement, Radio>, Component, HasValue<Boolean>, Modifiers.Disabled<HTMLElement, Radio>, Modifiers.Required<HTMLElement, Radio>
public class Radio
extends BaseComponent<HTMLElement, Radio>
implements Modifiers.Disabled<HTMLElement, Radio>, ElementTextDelegate<HTMLElement, Radio>, HasValue<Boolean>, Modifiers.Required<HTMLElement, Radio>
A radio button is used to present the user with mutually exclusive choices. Always present radio buttons in groups of 2 or
more.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionaddDescription(RadioDescription description) applyTo(Consumer<HTMLInputElementBuilder<HTMLInputElement>> consumer) Provides access to the underlying radio element using a fluent API styledisabled(boolean disabled) Adds/removes modifier(disabled)onChange(ChangeHandler<Radio, Boolean> changeHandler) Defines a change handler that is called when thevalue()of this radio changes.static Radiostatic Radioreversed()Same as standalone(true)standalone(boolean removeLabel) that()value()value(boolean checked) Same as value(checked, false)value(boolean checked, boolean fireEvent) Methods inherited from class BaseComponent
componentType, element, registerComponentMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface ElementConsumerMethods
apply, runMethods inherited from interface ElementContainerMethods
add, add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface ElementEventMethods
on, on, onMethods inherited from interface ElementIdMethods
id, uniqueIdMethods inherited from interface ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface ElementTextDelegate
text, textMethods inherited from interface HTMLElementAttributeMethods
titleMethods inherited from interface HTMLElementDataMethods
data, dataMethods inherited from interface HTMLElementVisibilityMethods
hiddenMethods inherited from interface Modifiers.Disabled
disabled, isDisabledMethods inherited from interface Modifiers.Required
required, required
-
Method Details
-
radio
-
radio
-
textDelegate
- Specified by:
textDelegatein interfaceElementTextDelegate<HTMLElement, Radio>
-
addBody
-
addDescription
-
applyTo
Provides access to the underlying radio element using a fluent API style -
disabled
Description copied from interface:Modifiers.DisabledAdds/removes modifier(disabled)- Specified by:
disabledin interfaceModifiers.Disabled<HTMLElement, Radio>
-
reversed
-
standalone
Same as standalone(true) -
standalone
-
value
Same as value(checked, false) -
value
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLElement, Radio>
-
onChange
Defines a change handler that is called when thevalue()of this radio changes. -
value
-
inputElement
-