Package org.patternfly.component.form
Class Radio
- java.lang.Object
-
- org.patternfly.component.BaseComponent<HTMLElement,Radio>
-
- org.patternfly.component.form.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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RadioaddBody(RadioBody body)RadioaddDescription(RadioDescription description)RadioapplyTo(Consumer<InputElementBuilder<HTMLInputElement>> consumer)Provides access to the underlying radio element using a fluent API styleRadiodisabled(boolean disabled)InputElementBuilder<HTMLInputElement>inputElement()RadioonChange(ChangeHandler<Radio,Boolean> changeHandler)Defines a change handler that is called when thevalue()of this radio changes.static Radioradio(String id, String name)static Radioradio(String id, String name, boolean checked)static Radioradio(String id, String name, String label)static Radioradio(String id, String name, String label, boolean checked)Radioreversed()Radiostandalone()Same as standalone(true)Radiostandalone(boolean removeLabel)Radiothat()Booleanvalue()Radiovalue(boolean checked)Same as value(checked, false)Radiovalue(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, id, innerHtml, 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 Detail
-
addDescription
public Radio addDescription(RadioDescription description)
-
disabled
public Radio disabled(boolean disabled)
- Specified by:
disabledin interfaceModifiers.Disabled<HTMLElement,Radio>
-
reversed
public Radio reversed()
-
standalone
public Radio standalone()
Same as standalone(true)
-
standalone
public Radio standalone(boolean removeLabel)
-
value
public Radio value(boolean checked)
Same as value(checked, false)
-
value
public Radio value(boolean checked, boolean fireEvent)
-
applyTo
public Radio applyTo(Consumer<InputElementBuilder<HTMLInputElement>> consumer)
Provides access to the underlying radio element using a fluent API style
-
that
public Radio that()
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,Radio>
-
onChange
public Radio onChange(ChangeHandler<Radio,Boolean> changeHandler)
Defines a change handler that is called when thevalue()of this radio changes.
-
inputElement
public InputElementBuilder<HTMLInputElement> inputElement()
-
-