Enum Class SeparatorContextMenuItem

java.lang.Object
java.lang.Enum<SeparatorContextMenuItem>
de.espirit.firstspirit.client.plugin.contextmenu.SeparatorContextMenuItem
All Implemented Interfaces:
JavaClientContextMenuItem, Item<ContextMenuContext>, Serializable, Comparable<SeparatorContextMenuItem>, Constable

public enum SeparatorContextMenuItem extends Enum<SeparatorContextMenuItem> implements JavaClientContextMenuItem
An item used as separator in java client context menus. Use INSTANCE as sub item to add a separator to the menu.
Since:
5.0.204
See Also:
  • Enum Constant Details

    • INSTANCE

      public static final SeparatorContextMenuItem INSTANCE
      Singleton instance to be used to represent a separator in java client menus.
      Since:
      5.0.204
  • Method Details

    • values

      public static SeparatorContextMenuItem[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SeparatorContextMenuItem valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getLabel

      @NotNull public final @NotNull String getLabel(@NotNull @NotNull ContextMenuContext context)
      Noop. Delivers ""
      Specified by:
      getLabel in interface JavaClientContextMenuItem
      Parameters:
      context - The context to be considered for providing a label.
      Returns:
      The resulting label.
      Since:
      5.0.204
    • getIcon

      public final Icon getIcon(@NotNull @NotNull ContextMenuContext context)
      Noop. Returns null
      Specified by:
      getIcon in interface JavaClientContextMenuItem
      Parameters:
      context - The context to be considered for providing the icon.
      Returns:
      The icon of this item or null, if the item has no icon.
      Since:
      5.0.204
    • isEnabled

      public final boolean isEnabled(@NotNull @NotNull ContextMenuContext context)
      Noop. Returns false
      Specified by:
      isEnabled in interface Item<ContextMenuContext>
      Specified by:
      isEnabled in interface JavaClientContextMenuItem
      Parameters:
      context - The context to be considered for deciding upon the item being enabled.
      Returns:
      true, if enabled, false, else.
      Since:
      5.0.204
    • isVisible

      public final boolean isVisible(@NotNull @NotNull ContextMenuContext context)
      Noop. Returns true
      Specified by:
      isVisible in interface Item<ContextMenuContext>
      Specified by:
      isVisible in interface JavaClientContextMenuItem
      Parameters:
      context - The context to be considered for deciding upon visibility.
      Returns:
      true, if visible, false, else.
      Since:
      5.0.204