Class ToggleGroup
java.lang.Object
org.patternfly.component.BaseComponent<HTMLElement, ToggleGroup>
org.patternfly.component.togglegroup.ToggleGroup
- All Implemented Interfaces:
Iterable<ToggleGroupItem>,ElementAttributeMethods<HTMLElement, ToggleGroup>,ElementClassListMethods<HTMLElement, ToggleGroup>,ElementConsumerMethods<HTMLElement, ToggleGroup>,ElementContainerMethods<HTMLElement, ToggleGroup>,ElementEventMethods<HTMLElement, ToggleGroup>,ElementIdMethods<HTMLElement, ToggleGroup>,ElementQueryMethods<HTMLElement>,HTMLElementAttributeMethods<HTMLElement, ToggleGroup>,HTMLElementDataMethods<HTMLElement, ToggleGroup>,HTMLElementStyleMethods<HTMLElement, ToggleGroup>,HTMLElementVisibilityMethods<HTMLElement, ToggleGroup>,IsElement<HTMLElement>,TypedBuilder<HTMLElement, ToggleGroup>,Component,HasItems<HTMLElement, ToggleGroup, ToggleGroupItem>,Modifiers.Compact<HTMLElement, ToggleGroup>,Modifiers.Disabled<HTMLElement, ToggleGroup>
public class ToggleGroup
extends BaseComponent<HTMLElement, ToggleGroup>
implements Modifiers.Compact<HTMLElement, ToggleGroup>, Modifiers.Disabled<HTMLElement, ToggleGroup>, HasItems<HTMLElement, ToggleGroup, ToggleGroupItem>
A toggle group is a group of controls that can be used to quickly switch between actions or states.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionadd(ToggleGroupItem item) voidclear()booleandisabled(boolean disabled) Adds/removes modifier(disabled)booleanbooleanisEmpty()iterator()onAdd(BiConsumer<ToggleGroup, ToggleGroupItem> onAdd) onMultiSelect(MultiSelectHandler<ToggleGroup, ToggleGroupItem> selectHandler) onRemove(BiConsumer<ToggleGroup, ToggleGroupItem> onRemove) onSingleSelect(SelectHandler<ToggleGroupItem> selectHandler) voidremoveItem(String identifier) voidvoidvoidvoidselect(ToggleGroupItem item) voidselect(ToggleGroupItem item, boolean selected) voidselect(ToggleGroupItem item, boolean selected, boolean fireEvent) intsize()that()static ToggleGrouptoggleGroup(SelectionMode selectionMode) Methods inherited from class org.patternfly.component.BaseComponent
componentType, element, registerComponentMethods 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.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 java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.patternfly.style.Modifiers.Compact
compact, compactMethods inherited from interface org.patternfly.style.Modifiers.Disabled
disabled
-
Method Details
-
toggleGroup
-
add
- Specified by:
addin interfaceHasItems<HTMLElement, ToggleGroup, ToggleGroupItem>
-
disabled
Description copied from interface:Modifiers.DisabledAdds/removes modifier(disabled)- Specified by:
disabledin interfaceModifiers.Disabled<HTMLElement, ToggleGroup>
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLElement, ToggleGroup>
-
ariaLabel
-
onAdd
- Specified by:
onAddin interfaceHasItems<HTMLElement, ToggleGroup, ToggleGroupItem>
-
onMultiSelect
-
onRemove
- Specified by:
onRemovein interfaceHasItems<HTMLElement, ToggleGroup, ToggleGroupItem>
-
onSingleSelect
-
isDisabled
public boolean isDisabled()- Specified by:
isDisabledin interfaceModifiers.Disabled<HTMLElement, ToggleGroup>
-
select
-
select
-
select
-
select
-
select
-
select
-
iterator
- Specified by:
iteratorin interfaceIterable<ToggleGroupItem>
-
size
public int size()- Specified by:
sizein interfaceHasItems<HTMLElement, ToggleGroup, ToggleGroupItem>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceHasItems<HTMLElement, ToggleGroup, ToggleGroupItem>
-
contains
- Specified by:
containsin interfaceHasItems<HTMLElement, ToggleGroup, ToggleGroupItem>
-
item
- Specified by:
itemin interfaceHasItems<HTMLElement, ToggleGroup, ToggleGroupItem>
-
removeItem
- Specified by:
removeItemin interfaceHasItems<HTMLElement, ToggleGroup, ToggleGroupItem>
-
clear
public void clear()- Specified by:
clearin interfaceHasItems<HTMLElement, ToggleGroup, ToggleGroupItem>
-