Package org.patternfly.component.form
Class Radio
- All Implemented Interfaces:
Container<HTMLElement,
,Radio> Finder<HTMLElement>
,HasElement<HTMLElement,
,Radio> HasHTMLElement<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 HasValue<Boolean>, Modifiers.Disabled<HTMLElement,Radio>, 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<InputElementBuilder<HTMLInputElement>> consumer) Provides access to the underlying radio element using a fluent API styledisabled
(boolean disabled) onChange
(ChangeHandler<Radio, Boolean> changeHandler) Defines a change handler that is called when thevalue()
of this radio changes.static Radio
static Radio
static Radio
static Radio
reversed()
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 org.patternfly.component.BaseComponent
componentType, element
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jboss.elemento.Container
add, add, add, addAll, addAll, addAll, addAll, addAll, addAll
Methods inherited from interface org.jboss.elemento.HasElement
add, apply, aria, aria, aria, attr, attr, attr, classList, classList, css, id, innerHtml, on, on, on, run, textContent, textNode, toggle, toggle, toggle, uniqueId
Methods inherited from interface org.jboss.elemento.HasHTMLElement
data, hidden, style, style, style, style, style, style, title
Methods inherited from interface org.patternfly.style.Modifiers.Disabled
disabled, isDisabled
Methods inherited from interface org.patternfly.style.Modifiers.Required
required, required
-
Method Details
-
radio
-
radio
-
radio
-
radio
-
addBody
-
addDescription
-
disabled
- Specified by:
disabled
in interfaceModifiers.Disabled<HTMLElement,
Radio>
-
reversed
-
standalone
Same as standalone(true) -
standalone
-
value
Same as value(checked, false) -
value
-
applyTo
Provides access to the underlying radio element using a fluent API style -
that
- Specified by:
that
in interfaceTypedBuilder<HTMLElement,
Radio>
-
onChange
Defines a change handler that is called when thevalue()
of this radio changes. -
value
-
inputElement
-