Package org.patternfly.component.form
Class Checkbox
- All Implemented Interfaces:
ElementAttributeMethods<HTMLElement,,Checkbox> ElementClassListMethods<HTMLElement,,Checkbox> ElementConsumerMethods<HTMLElement,,Checkbox> ElementContainerMethods<HTMLElement,,Checkbox> ElementEventMethods<HTMLElement,,Checkbox> ElementIdMethods<HTMLElement,,Checkbox> ElementQueryMethods<HTMLElement>,ElementTextDelegate<HTMLElement,,Checkbox> ElementTextMethods<HTMLElement,,Checkbox> HTMLElementAttributeMethods<HTMLElement,,Checkbox> HTMLElementDataMethods<HTMLElement,,Checkbox> HTMLElementStyleMethods<HTMLElement,,Checkbox> HTMLElementVisibilityMethods<HTMLElement,,Checkbox> IsElement<HTMLElement>,TypedBuilder<HTMLElement,,Checkbox> Component,HasValue<Boolean>,org.patternfly.style.Modifiers.Disabled<HTMLElement,,Checkbox> org.patternfly.style.Modifiers.Required<HTMLElement,Checkbox>
public class Checkbox
extends BaseComponent<HTMLElement,Checkbox>
implements org.patternfly.style.Modifiers.Disabled<HTMLElement,Checkbox>, ElementTextDelegate<HTMLElement,Checkbox>, HasValue<Boolean>, org.patternfly.style.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<HTMLInputElementBuilder<HTMLInputElement>> consumer) Provides access to the underlying checkbox element using a fluent API stylestatic Checkboxstatic Checkboxstatic CheckboxcheckboxWrapped(String id, String name) static CheckboxcheckboxWrapped(String id, String name, String label) disabled(boolean disabled) 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 thecheckedattribute of the input element.Methods inherited from class org.patternfly.component.BaseComponent
componentType, elementMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.elemento.ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface org.jboss.elemento.ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface org.jboss.elemento.ElementConsumerMethods
apply, runMethods inherited from interface org.jboss.elemento.ElementContainerMethods
add, add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface org.jboss.elemento.ElementEventMethods
on, on, onMethods inherited from interface org.jboss.elemento.ElementIdMethods
id, uniqueIdMethods inherited from interface org.jboss.elemento.ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface org.jboss.elemento.ElementTextDelegate
textMethods inherited from interface org.jboss.elemento.HTMLElementAttributeMethods
titleMethods inherited from interface org.jboss.elemento.HTMLElementDataMethods
dataMethods inherited from interface org.jboss.elemento.HTMLElementStyleMethods
style, style, style, style, style, styleMethods inherited from interface org.jboss.elemento.HTMLElementVisibilityMethods
hiddenMethods inherited from interface org.patternfly.style.Modifiers.Disabled
disabled, isDisabledMethods inherited from interface org.patternfly.style.Modifiers.Required
required
-
Method Details
-
checkbox
-
checkboxWrapped
-
checkbox
-
checkboxWrapped
-
textDelegate
- Specified by:
textDelegatein interfaceElementTextDelegate<HTMLElement,Checkbox>
-
addBody
-
addDescription
-
disabled
- Specified by:
disabledin interfaceorg.patternfly.style.Modifiers.Disabled<HTMLElement,Checkbox>
-
required
- Specified by:
requiredin interfaceorg.patternfly.style.Modifiers.Required<HTMLElement,Checkbox>
-
reversed
-
standalone
Same as standalone(true) -
standalone
-
text
- Specified by:
textin interfaceElementTextDelegate<HTMLElement,Checkbox> - Specified by:
textin interfaceElementTextMethods<HTMLElement,Checkbox>
-
value
Same as value(checked, false) -
value
Sets thecheckedattribute of the input element. -
applyTo
Provides access to the underlying checkbox element using a fluent API style -
that
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,Checkbox>
-
onChange
Defines a change handler that is called when thevalue()of this checkbox changes. -
value
-
inputElement
-