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> org.patternfly.style.Modifiers.Compact<HTMLElement,,ToggleGroup> org.patternfly.style.Modifiers.Disabled<HTMLElement,ToggleGroup>
public class ToggleGroup
extends BaseComponent<HTMLElement,ToggleGroup>
implements org.patternfly.style.Modifiers.Compact<HTMLElement,ToggleGroup>, org.patternfly.style.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) booleanbooleanisEmpty()iterator()onMultiSelect(org.patternfly.handler.MultiSelectHandler<ToggleGroup, ToggleGroupItem> selectHandler) onSingleSelect(org.patternfly.handler.SelectHandler<ToggleGroupItem> selectHandler) 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, 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.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
- Specified by:
disabledin interfaceorg.patternfly.style.Modifiers.Disabled<HTMLElement,ToggleGroup>
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,ToggleGroup>
-
ariaLabel
-
onSingleSelect
public ToggleGroup onSingleSelect(org.patternfly.handler.SelectHandler<ToggleGroupItem> selectHandler) -
onMultiSelect
public ToggleGroup onMultiSelect(org.patternfly.handler.MultiSelectHandler<ToggleGroup, ToggleGroupItem> selectHandler) -
isDisabled
public boolean isDisabled()- Specified by:
isDisabledin interfaceorg.patternfly.style.Modifiers.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>
-
clear
public void clear()- Specified by:
clearin interfaceHasItems<HTMLElement,ToggleGroup, ToggleGroupItem>
-