Class ToggleGroup
- java.lang.Object
-
- org.patternfly.component.BaseComponent<HTMLElement,ToggleGroup>
-
- org.patternfly.component.togglegroup.ToggleGroup
-
- All Implemented Interfaces:
Container<HTMLElement,ToggleGroup>,Finder<HTMLElement>,HasElement<HTMLElement,ToggleGroup>,HasHTMLElement<HTMLElement,ToggleGroup>,IsElement<HTMLElement>,TypedBuilder<HTMLElement,ToggleGroup>,Component,Modifiers.Compact<HTMLElement,ToggleGroup>,Modifiers.Disabled<HTMLElement,ToggleGroup>
public class ToggleGroup extends BaseComponent<HTMLElement,ToggleGroup> implements Modifiers.Compact<HTMLElement,ToggleGroup>, Modifiers.Disabled<HTMLElement,ToggleGroup>
A toggle group is a group of controls that can be used to quickly switch between actions or states.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ToggleGroupadd(ToggleGroupItem item)ToggleGroupaddItem(ToggleGroupItem item)<T> ToggleGroupaddItems(Iterable<T> items, Function<T,ToggleGroupItem> display)ToggleGroupariaLabel(String label)ToggleGroupdisabled(boolean disabled)booleanisDisabled()ToggleGrouponMultiSelect(MultiSelectHandler<ToggleGroup,ToggleGroupItem> selectHandler)ToggleGrouponSingleSelect(SelectHandler<ToggleGroupItem> selectHandler)voidselect(String itemId)voidselect(String itemId, boolean fireEvent)voidselect(ToggleGroupItem item)voidselect(ToggleGroupItem item, boolean fireEvent)voidselect(ToggleGroupItem item, boolean selected, boolean fireEvent)ToggleGroupthat()static ToggleGrouptoggleGroup(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, id, innerHtml, 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 org.patternfly.style.Modifiers.Compact
compact, compact
-
Methods inherited from interface org.patternfly.style.Modifiers.Disabled
disabled
-
-
-
-
Method Detail
-
toggleGroup
public static ToggleGroup toggleGroup(SelectionMode selectionMode)
-
addItems
public <T> ToggleGroup addItems(Iterable<T> items, Function<T,ToggleGroupItem> display)
-
addItem
public ToggleGroup addItem(ToggleGroupItem item)
-
add
public ToggleGroup add(ToggleGroupItem item)
-
disabled
public ToggleGroup disabled(boolean disabled)
- Specified by:
disabledin interfaceModifiers.Disabled<HTMLElement,ToggleGroup>
-
that
public ToggleGroup that()
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,ToggleGroup>
-
ariaLabel
public ToggleGroup ariaLabel(String label)
-
onSingleSelect
public ToggleGroup onSingleSelect(SelectHandler<ToggleGroupItem> selectHandler)
-
onMultiSelect
public ToggleGroup onMultiSelect(MultiSelectHandler<ToggleGroup,ToggleGroupItem> selectHandler)
-
isDisabled
public boolean isDisabled()
- Specified by:
isDisabledin interfaceModifiers.Disabled<HTMLElement,ToggleGroup>
-
select
public void select(String itemId)
-
select
public void select(String itemId, boolean fireEvent)
-
select
public void select(ToggleGroupItem item)
-
select
public void select(ToggleGroupItem item, boolean fireEvent)
-
select
public void select(ToggleGroupItem item, boolean selected, boolean fireEvent)
-
-