Package org.patternfly.component.form
Class Checkbox
- java.lang.Object
-
- org.patternfly.component.BaseComponent<HTMLElement,Checkbox>
-
- org.patternfly.component.form.Checkbox
-
- All Implemented Interfaces:
Container<HTMLElement,Checkbox>,Finder<HTMLElement>,HasElement<HTMLElement,Checkbox>,HasHTMLElement<HTMLElement,Checkbox>,IsElement<HTMLElement>,TypedBuilder<HTMLElement,Checkbox>,Component,HasValue<Boolean>,Modifiers.Disabled<HTMLElement,Checkbox>,Modifiers.Required<HTMLElement,Checkbox>
public class Checkbox extends BaseComponent<HTMLElement,Checkbox> implements HasValue<Boolean>, Modifiers.Disabled<HTMLElement,Checkbox>, Modifiers.Required<HTMLElement,Checkbox>
A checkbox is used to select a single item or multiple items, typically to choose elements to perform an action or to reflect a binary setting.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CheckboxaddBody(CheckboxBody body)CheckboxaddDescription(CheckboxDescription description)static Checkboxcheckbox(String id)static Checkboxcheckbox(String id, boolean checked)static Checkboxcheckbox(String id, String label)static Checkboxcheckbox(String id, String label, boolean checked)Checkboxdisabled(boolean disabled)Adds/removes modifier(disabled)CheckboxonChange(ChangeHandler<Checkbox,Boolean> handler)Checkboxrequired(boolean required)Adds/removes modifier(required)Checkboxreversed()Checkboxthat()Booleanvalue()Checkboxvalue(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, toggle, toggle, toggle
-
Methods inherited from interface org.jboss.elemento.HasHTMLElement
data, hidden, style, title
-
Methods inherited from interface org.patternfly.core.Modifiers.Disabled
disabled
-
Methods inherited from interface org.patternfly.core.Modifiers.Required
required
-
-
-
-
Method Detail
-
that
public Checkbox that()
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,Checkbox>
-
value
public Checkbox value(boolean checked)
-
onChange
public Checkbox onChange(ChangeHandler<Checkbox,Boolean> handler)
-
addBody
public Checkbox addBody(CheckboxBody body)
-
addDescription
public Checkbox addDescription(CheckboxDescription description)
-
disabled
public Checkbox disabled(boolean disabled)
Description copied from interface:Modifiers.DisabledAdds/removes modifier(disabled)- Specified by:
disabledin interfaceModifiers.Disabled<HTMLElement,Checkbox>
-
required
public Checkbox required(boolean required)
Description copied from interface:Modifiers.RequiredAdds/removes modifier(required)- Specified by:
requiredin interfaceModifiers.Required<HTMLElement,Checkbox>
-
reversed
public Checkbox reversed()
-
-