Class MenuList
java.lang.Object
org.patternfly.component.SubComponent<HTMLUListElement, MenuList>
org.patternfly.component.menu.MenuList
- All Implemented Interfaces:
Iterable<MenuItem>,Attachable,ElementAttributeMethods<HTMLUListElement, MenuList>,ElementClassListMethods<HTMLUListElement, MenuList>,ElementConsumerMethods<HTMLUListElement, MenuList>,ElementContainerMethods<HTMLUListElement, MenuList>,ElementEventMethods<HTMLUListElement, MenuList>,ElementIdMethods<HTMLUListElement, MenuList>,ElementQueryMethods<HTMLUListElement>,HTMLElementAttributeMethods<HTMLUListElement, MenuList>,HTMLElementDataMethods<HTMLUListElement, MenuList>,HTMLElementStyleMethods<HTMLUListElement, MenuList>,HTMLElementVisibilityMethods<HTMLUListElement, MenuList>,IsElement<HTMLUListElement>,TypedBuilder<HTMLUListElement, MenuList>,HasItems<HTMLUListElement, MenuList, MenuItem>,Ordered<HTMLUListElement, MenuList, MenuItem>
public class MenuList
extends SubComponent<HTMLUListElement, MenuList>
implements Ordered<HTMLUListElement, MenuList, MenuItem>, Attachable
-
Field Summary
FieldsFields inherited from interface org.patternfly.component.Ordered
DATA_ORDER -
Method Summary
Modifier and TypeMethodDescriptionadd(AsyncItems<MenuList, MenuItem> items) addItems(AsyncItems<MenuList, MenuItem> items) voidattach(MutationRecord mutationRecord) voidclear()Retrieves the comparator used for ordering elements in a component.booleanbooleanisEmpty()iterator()load()static MenuListmenuList()Creates a new menu list component.onAdd(BiConsumer<MenuList, MenuItem> onAdd) onRemove(BiConsumer<MenuList, MenuItem> onRemove) ordered(Comparator<MenuItem> comparator) Orders the elements contained in the component using the specified comparator.reload()voidremoveItem(String identifier) voidreset()intsize()status()that()Methods inherited from class org.patternfly.component.SubComponent
element, registerSubComponentMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.elemento.Attachable
detachMethods 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.component.Ordered
addOrdered, defaultOrder, ordered
-
Field Details
-
SUB_COMPONENT_NAME
- See Also:
-
-
Method Details
-
attach
- Specified by:
attachin interfaceAttachable
-
addItems
-
add
-
addDivider
-
ordered
Description copied from interface:OrderedOrders the elements contained in the component using the specified comparator. The comparator determines the order in which the elements are arranged.- Specified by:
orderedin interfaceOrdered<HTMLUListElement, MenuList, MenuItem>- Parameters:
comparator- the comparator used to define the ordering of the elements- Returns:
- the builder instance with the elements ordered
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLUListElement, MenuList>
-
onAdd
- Specified by:
onAddin interfaceHasItems<HTMLUListElement, MenuList, MenuItem>
-
onRemove
- Specified by:
onRemovein interfaceHasItems<HTMLUListElement, MenuList, MenuItem>
-
comparator
Description copied from interface:OrderedRetrieves the comparator used for ordering elements in a component.- Specified by:
comparatorin interfaceOrdered<HTMLUListElement, MenuList, MenuItem>- Returns:
- the comparator that determines the order of elements
-
load
-
reset
public void reset() -
reload
-
status
-
iterator
-
size
public int size()- Specified by:
sizein interfaceHasItems<HTMLUListElement, MenuList, MenuItem>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceHasItems<HTMLUListElement, MenuList, MenuItem>
-
contains
-
item
-
removeItem
- Specified by:
removeItemin interfaceHasItems<HTMLUListElement, MenuList, MenuItem>
-
clear
public void clear()- Specified by:
clearin interfaceHasItems<HTMLUListElement, MenuList, MenuItem>