public enum SeparatorContextMenuItem extends Enum<SeparatorContextMenuItem> implements JavaClientContextMenuItem
INSTANCE as sub item to add a separator
to the menu.GroupingContextMenuItem| Enum Constant and Description |
|---|
INSTANCE
Singleton instance to be used to represent a separator in java client menus.
|
| Modifier and Type | Method and Description |
|---|---|
Icon |
getIcon(ContextMenuContext context)
Noop.
|
String |
getLabel(ContextMenuContext context)
Noop.
|
boolean |
isEnabled(ContextMenuContext context)
Noop.
|
boolean |
isVisible(ContextMenuContext context)
Noop.
|
static SeparatorContextMenuItem |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SeparatorContextMenuItem[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SeparatorContextMenuItem INSTANCE
public static SeparatorContextMenuItem[] values()
for (SeparatorContextMenuItem c : SeparatorContextMenuItem.values()) System.out.println(c);
public static SeparatorContextMenuItem valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null@NotNull public final String getLabel(@NotNull ContextMenuContext context)
""getLabel in interface JavaClientContextMenuItemcontext - The context to be considered for providing a label.public final Icon getIcon(@NotNull ContextMenuContext context)
nullgetIcon in interface JavaClientContextMenuItemcontext - The context to be considered for providing the icon.null, if the item has no icon.public final boolean isEnabled(@NotNull ContextMenuContext context)
falseisEnabled in interface JavaClientContextMenuItemisEnabled in interface Item<ContextMenuContext>context - The context to be considered for deciding upon the item being enabled.true, if enabled, false, else.public final boolean isVisible(@NotNull ContextMenuContext context)
trueisVisible in interface JavaClientContextMenuItemisVisible in interface Item<ContextMenuContext>context - The context to be considered for deciding upon visibility.true, if visible, false, else.Copyright © 2015 e-Spirit AG. All Rights Reserved. Build 5.1.408