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)Radiodisabled(boolean disabled)Adds/removes modifier(disabled)HTMLInputElementinputElement()RadioonChange(ChangeHandler<Radio,Boolean> handler)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)-
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, addAll, addAll, addAll, addAll, addAll
-
Methods inherited from interface org.jboss.elemento.HasElement
add, apply, aria, aria, aria, attr, attr, attr, css, id, id, innerHtml, on, textContent, textNode, toggle, toggle, toggle
-
Methods inherited from interface org.jboss.elemento.HasHTMLElement
data, hidden, style, style, style, style, style, style, title
-
Methods inherited from interface org.patternfly.core.Modifiers.Disabled
disabled
-
Methods inherited from interface org.patternfly.core.Modifiers.Required
required, required
-
-
-
-
Method Detail
-
addDescription
public Radio addDescription(RadioDescription description)
-
disabled
public Radio disabled(boolean disabled)
Description copied from interface:Modifiers.DisabledAdds/removes modifier(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)
-
that
public Radio that()
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,Radio>
-
onChange
public Radio onChange(ChangeHandler<Radio,Boolean> handler)
-
inputElement
public HTMLInputElement inputElement()
-
-