Package org.patternfly.component.form
Class 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.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionaddBody
(CheckboxBody body) addDescription
(CheckboxDescription description) applyTo
(Consumer<InputElementBuilder<HTMLInputElement>> consumer) Provides access to the underlying checkbox element using a fluent API stylestatic Checkbox
static Checkbox
static Checkbox
static Checkbox
disabled
(boolean disabled) onChange
(ChangeHandler<Checkbox, Boolean> changeHandler) Defines a change handler that is called when thevalue()
of this checkbox changes.required
(boolean required) reversed()
Same as standalone(true)standalone
(boolean removeLabel) that()
value()
value
(boolean checked) Same as value(checked, false)value
(boolean checked, boolean fireEvent) Sets thechecked
attribute of the input element.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
-
Method Details
-
checkbox
-
checkbox
-
checkbox
-
checkbox
-
addBody
-
addDescription
-
disabled
- Specified by:
disabled
in interfaceModifiers.Disabled<HTMLElement,
Checkbox>
-
required
- Specified by:
required
in interfaceModifiers.Required<HTMLElement,
Checkbox>
-
reversed
-
standalone
Same as standalone(true) -
standalone
-
value
Same as value(checked, false) -
value
Sets thechecked
attribute of the input element. -
applyTo
Provides access to the underlying checkbox element using a fluent API style -
that
- Specified by:
that
in interfaceTypedBuilder<HTMLElement,
Checkbox>
-
onChange
Defines a change handler that is called when thevalue()
of this checkbox changes. -
value
-
inputElement
-