Class Checkbox
java.lang.Object
org.patternfly.component.BaseComponent<HTMLElement, Checkbox>
org.patternfly.component.form.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>, Modifiers.Disabled<HTMLElement, Checkbox>, Modifiers.Required<HTMLElement, Checkbox>
public class Checkbox
extends BaseComponent<HTMLElement, Checkbox>
implements Modifiers.Disabled<HTMLElement, Checkbox>, ElementTextDelegate<HTMLElement, Checkbox>, HasValue<Boolean>, 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) Adds/removes modifier(disabled)onChange(ChangeHandler<Checkbox, Boolean> changeHandler) Defines a change handler that is called when thevalue()of this checkbox changes.required(boolean required) Adds/removes modifier(required)reversed()Same as standalone(true)standalone(boolean standalone) 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 BaseComponent
componentType, element, registerComponentMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface ElementConsumerMethods
apply, runMethods inherited from interface ElementContainerMethods
add, add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface ElementEventMethods
on, on, onMethods inherited from interface ElementIdMethods
id, uniqueIdMethods inherited from interface ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface ElementTextDelegate
textMethods inherited from interface HTMLElementAttributeMethods
titleMethods inherited from interface HTMLElementDataMethods
data, dataMethods inherited from interface HTMLElementVisibilityMethods
hiddenMethods inherited from interface Modifiers.Disabled
disabled, isDisabledMethods inherited from interface Modifiers.Required
required
-
Method Details
-
checkbox
-
checkboxWrapped
-
checkbox
-
checkboxWrapped
-
textDelegate
- Specified by:
textDelegatein interfaceElementTextDelegate<HTMLElement, Checkbox>
-
addBody
-
addDescription
-
disabled
Description copied from interface:Modifiers.DisabledAdds/removes modifier(disabled)- Specified by:
disabledin interfaceModifiers.Disabled<HTMLElement, Checkbox>
-
required
Description copied from interface:Modifiers.RequiredAdds/removes modifier(required)- Specified by:
requiredin interfaceModifiers.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
-