Class MultiSelect
- All Implemented Interfaces:
Attachable,ElementAttributeMethods<HTMLElement, MultiSelect>,ElementClassListMethods<HTMLElement, MultiSelect>,ElementConsumerMethods<HTMLElement, MultiSelect>,ElementContainerMethods<HTMLElement, MultiSelect>,ElementEventMethods<HTMLElement, MultiSelect>,ElementIdMethods<HTMLElement, MultiSelect>,ElementQueryMethods<HTMLElement>,HTMLElementAttributeMethods<HTMLElement, MultiSelect>,HTMLElementDataMethods<HTMLElement, MultiSelect>,HTMLElementStyleMethods<HTMLElement, MultiSelect>,HTMLElementVisibilityMethods<HTMLElement, MultiSelect>,IsElement<HTMLElement>,TypedBuilder<HTMLElement, MultiSelect>,Component,Expandable<HTMLElement, MultiSelect>,Modifiers.Disabled<HTMLElement, MultiSelect>
A select component to select multiple items from a list.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidclear(boolean fireEvent) static MultiSelectmultiSelect(String text) Creates a new instance of MultiSelect with a toggle menu initialized using the provided text.static MultiSelectmultiSelect(MenuToggle menuToggle) Creates a new instance ofMultiSelectinitialized with the specifiedMenuToggle.voidselectIdentifiers(List<String> identifiers) voidselectIdentifiers(List<String> identifiers, boolean fireEvent) voidselectItems(List<MenuItem> items) voidselectItems(List<MenuItem> items, boolean fireEvent) that()Methods inherited from class org.patternfly.component.menu.MenuToggleMenu
addMenu, applyTo, ariaLabel, attach, collapse, detach, disabled, expand, flip, isDisabled, menu, menuToggle, onLoaded, onToggle, placement, stayOpen, stayOpen, zIndexMethods inherited from class org.patternfly.component.ComponentDelegate
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.patternfly.component.Expandable
collapse, expand, expanded, toggle, toggleMethods 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 org.patternfly.style.Modifiers.Disabled
disabled
-
Method Details
-
multiSelect
Creates a new instance of MultiSelect with a toggle menu initialized using the provided text. The toggle menu includes a badge initialized with a count of zero in the read state.- Parameters:
text- the text to be displayed on the toggle menu- Returns:
- a new instance of MultiSelect initialized with the specified text
-
that
-
clear
public void clear() -
clear
public void clear(boolean fireEvent) -
selectIdentifiers
-
selectIdentifiers
-
selectItems
-
selectItems
-