Class ToggleGroup
java.lang.Object
org.patternfly.component.BaseComponent<HTMLElement,ToggleGroup>
org.patternfly.component.togglegroup.ToggleGroup
- All Implemented Interfaces:
Iterable<ToggleGroupItem>
,Container<HTMLElement,
,ToggleGroup> Finder<HTMLElement>
,HasElement<HTMLElement,
,ToggleGroup> HasHTMLElement<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) void
clear()
disabled
(boolean disabled) boolean
boolean
isEmpty()
iterator()
onMultiSelect
(MultiSelectHandler<ToggleGroup, ToggleGroupItem> selectHandler) onSingleSelect
(SelectHandler<ToggleGroupItem> selectHandler) void
void
void
void
select
(ToggleGroupItem item) void
select
(ToggleGroupItem item, boolean selected) void
select
(ToggleGroupItem item, boolean selected, boolean fireEvent) int
size()
that()
static ToggleGroup
toggleGroup
(SelectionMode selectionMode) 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 java.lang.Iterable
forEach, spliterator
Methods inherited from interface org.patternfly.style.Modifiers.Compact
compact, compact
Methods inherited from interface org.patternfly.style.Modifiers.Disabled
disabled
-
Method Details
-
toggleGroup
-
add
- Specified by:
add
in interfaceHasItems<HTMLElement,
ToggleGroup, ToggleGroupItem>
-
disabled
- Specified by:
disabled
in interfaceModifiers.Disabled<HTMLElement,
ToggleGroup>
-
that
- Specified by:
that
in interfaceTypedBuilder<HTMLElement,
ToggleGroup>
-
ariaLabel
-
onSingleSelect
-
onMultiSelect
-
isDisabled
public boolean isDisabled()- Specified by:
isDisabled
in interfaceModifiers.Disabled<HTMLElement,
ToggleGroup>
-
select
-
select
-
select
-
select
-
select
-
select
-
iterator
- Specified by:
iterator
in interfaceIterable<ToggleGroupItem>
-
size
public int size()- Specified by:
size
in interfaceHasItems<HTMLElement,
ToggleGroup, ToggleGroupItem>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceHasItems<HTMLElement,
ToggleGroup, ToggleGroupItem>
-
clear
public void clear()- Specified by:
clear
in interfaceHasItems<HTMLElement,
ToggleGroup, ToggleGroupItem>
-