Class MenuToggleMenu<B extends TypedBuilder<HTMLElement, B>>
java.lang.Object
org.patternfly.component.ComponentDelegate<HTMLElement, B>
org.patternfly.component.menu.MenuToggleMenu<B>
- All Implemented Interfaces:
Attachable, ElementAttributeMethods<HTMLElement, B>, ElementClassListMethods<HTMLElement, B>, ElementConsumerMethods<HTMLElement, B>, ElementContainerMethods<HTMLElement, B>, ElementEventMethods<HTMLElement, B>, ElementIdMethods<HTMLElement, B>, ElementQueryMethods<HTMLElement>, HTMLElementAttributeMethods<HTMLElement, B>, HTMLElementDataMethods<HTMLElement, B>, HTMLElementStyleMethods<HTMLElement, B>, HTMLElementVisibilityMethods<HTMLElement, B>, IsElement<HTMLElement>, TypedBuilder<HTMLElement, B>, Component, Expandable<HTMLElement, B>, Modifiers.Disabled<HTMLElement, B>
- Direct Known Subclasses:
Dropdown, MultiSelect, MultiTypeahead, SingleSelect, SingleTypeahead
public abstract class MenuToggleMenu<B extends TypedBuilder<HTMLElement, B>>
extends ComponentDelegate<HTMLElement, B>
implements Modifiers.Disabled<HTMLElement, B>, Expandable<HTMLElement, B>, Attachable
Abstract base component for components that combine a
MenuToggle and a Menu, such as Dropdown,
SingleSelect, SingleTypeahead, or MultiSelect.
The component delegates to the MenuToggle component. The Menu is managed by a Popper instance.
-
Method Summary
Modifier and TypeMethodDescriptionapplyTo(Consumer<MenuToggle> consumer) Provides access to the underlying menu toggle using a fluent API stylevoidattach(MutationRecord mutationRecord) voidcollapse(boolean fireEvent) voiddetach(MutationRecord mutationRecord) disabled(boolean disabled) Adds/removes modifier(disabled)voidexpand(boolean fireEvent) flip(boolean flip) booleanmenu()onLoaded(ComponentHandler<B> loadedHandler) onToggle(ToggleHandler<B> toggleHandler) stayOpen()Specifies a condition that determines whether the menu should remain open when an event occurs.zIndex(int zIndex) Methods inherited from class ComponentDelegate
componentType, elementMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface ElementConsumerMethods
apply, runMethods inherited from interface ElementContainerMethods
add, add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface ElementEventMethods
on, on, onMethods inherited from interface ElementIdMethods
id, uniqueIdMethods inherited from interface ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface HTMLElementAttributeMethods
titleMethods inherited from interface HTMLElementDataMethods
data, dataMethods inherited from interface HTMLElementVisibilityMethods
hiddenMethods inherited from interface Modifiers.Disabled
disabledMethods inherited from interface TypedBuilder
that
-
Method Details
-
attach
- Specified by:
attachin interfaceAttachable
-
detach
- Specified by:
detachin interfaceAttachable
-
applyTo
Provides access to the underlying menu toggle using a fluent API style -
disabled
Description copied from interface:Modifiers.DisabledAdds/removes modifier(disabled)- Specified by:
disabledin interfaceModifiers.Disabled<HTMLElement, B extends TypedBuilder<HTMLElement, B>>
-
isDisabled
public boolean isDisabled()- Specified by:
isDisabledin interfaceModifiers.Disabled<HTMLElement, B extends TypedBuilder<HTMLElement, B>>
-
flip
-
placement
-
stayOpen
-
stayOpen
Specifies a condition that determines whether the menu should remain open when an event occurs. -
zIndex
-
ariaLabel
-
onLoaded
-
onToggle
-
collapse
public void collapse(boolean fireEvent) - Specified by:
collapsein interfaceExpandable<HTMLElement, B extends TypedBuilder<HTMLElement, B>>
-
expand
public void expand(boolean fireEvent) - Specified by:
expandin interfaceExpandable<HTMLElement, B extends TypedBuilder<HTMLElement, B>>
-