public interface JavaClientContextMenuItem extends Item<ContextMenuContext>
| Modifier and Type | Method and Description |
|---|---|
Icon |
getIcon(ContextMenuContext context)
Returns the icon of this item or
null if this item has no icon. |
String |
getLabel(ContextMenuContext context)
Provides a label for this item wrt. the given context.
|
boolean |
isEnabled(ContextMenuContext context)
Indicates, whether this item is enabled wrt. the given context.
|
boolean |
isVisible(ContextMenuContext context)
Indicates the visibility of this item wrt. the given context.
|
@NotNull String getLabel(@NotNull ContextMenuContext context)
context - The context to be considered for providing a label.@Nullable Icon getIcon(@NotNull ContextMenuContext context)
null if this item has no icon.19x19context - The context to be considered for providing the icon.null, if the item has no icon.boolean isEnabled(@NotNull ContextMenuContext context)
isEnabled in interface Item<ContextMenuContext>context - The context to be considered for deciding upon the item being enabled.true, if enabled, false, else.boolean isVisible(@NotNull ContextMenuContext context)
isVisible in interface Item<ContextMenuContext>context - The context to be considered for deciding upon visibility.true, if visible, false, else.Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500