Package org.patternfly.component.menu
Class MenuItemAction
java.lang.Object
org.patternfly.component.SubComponent<HTMLElement,MenuItemAction>
org.patternfly.component.menu.MenuItemAction
- All Implemented Interfaces:
ElementAttributeMethods<HTMLElement,,MenuItemAction> ElementClassListMethods<HTMLElement,,MenuItemAction> ElementConsumerMethods<HTMLElement,,MenuItemAction> ElementContainerMethods<HTMLElement,,MenuItemAction> ElementEventMethods<HTMLElement,,MenuItemAction> ElementIdMethods<HTMLElement,,MenuItemAction> ElementQueryMethods<HTMLElement>,HTMLElementAttributeMethods<HTMLElement,,MenuItemAction> HTMLElementDataMethods<HTMLElement,,MenuItemAction> HTMLElementStyleMethods<HTMLElement,,MenuItemAction> HTMLElementVisibilityMethods<HTMLElement,,MenuItemAction> IsElement<HTMLElement>,TypedBuilder<HTMLElement,,MenuItemAction> ComponentIcon<HTMLElement,,MenuItemAction> HasIdentifier<HTMLElement,MenuItemAction>
public class MenuItemAction
extends SubComponent<HTMLElement,MenuItemAction>
implements HasIdentifier<HTMLElement,MenuItemAction>, ComponentIcon<HTMLElement,MenuItemAction>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic MenuItemActionmenuItemAction(String identifier) static MenuItemActionmenuItemAction(String identifier, Element icon) static MenuItemActionmenuItemAction(String identifier, org.patternfly.icon.PredefinedIcon icon) onClick(org.patternfly.handler.ComponentHandler<MenuItemAction> handler) Registers a click event handler for the menu item action.that()Methods inherited from class org.patternfly.component.SubComponent
elementMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.patternfly.component.ComponentIcon
iconMethods 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
hidden
-
Field Details
-
Method Details
-
icon
- Specified by:
iconin interfaceComponentIcon<HTMLElement,MenuItemAction>
-
removeIcon
- Specified by:
removeIconin interfaceComponentIcon<HTMLElement,MenuItemAction>
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,MenuItemAction>
-
onClick
Registers a click event handler for the menu item action. If the menu item has been marked as a favorite, the handler will be called with the original menu item action, not the favorite item action.- Parameters:
handler- the handler to be executed when the menu item action is clicked. The handler is aComponentHandlerwhich processes the event and the associated menu item action.- Returns:
- the
MenuItemActioninstance to allow method chaining.
-
identifier
- Specified by:
identifierin interfaceHasIdentifier<HTMLElement,MenuItemAction>