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 TypeMethodDescriptionRetrieves the identifier associated with this component.static MenuItemActionmenuItemAction(String identifier) static MenuItemActionmenuItemAction(String identifier, Element icon) static MenuItemActionmenuItemAction(String identifier, PredefinedIcon icon) onClick(ComponentHandler<MenuItemAction> handler) Registers a click event handler for the menu item action.that()Methods inherited from class SubComponent
element, registerSubComponentMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ComponentIcon
iconMethods 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
hidden
-
Field Details
-
SUB_COMPONENT_NAME
- See Also:
-
-
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
Description copied from interface:HasIdentifierRetrieves the identifier associated with this component.- Specified by:
identifierin interfaceHasIdentifier<HTMLElement, MenuItemAction>- Returns:
- the identifier of the component