Interface JavaClientContextMenuItem
- All Superinterfaces:
Item<ContextMenuContext>
- All Known Subinterfaces:
ExecutableContextMenuItem
,GroupingContextMenuItem
- All Known Implementing Classes:
SeparatorContextMenuItem
An item to be used in context menus of the java client.
- Since:
- 5.0.204
-
Method Summary
Modifier and TypeMethodDescription@Nullable Icon
getIcon
(@NotNull ContextMenuContext context) Returns the icon of this item ornull
if this item has no icon.
The recommended dimensions for this icon is19x19
@NotNull String
getLabel
(@NotNull ContextMenuContext context) Provides a label for this item wrt. the given context.boolean
isEnabled
(@NotNull ContextMenuContext context) Indicates, whether this item is enabled wrt. the given context.boolean
isVisible
(@NotNull ContextMenuContext context) Indicates the visibility of this item wrt. the given context.
-
Method Details