Enum MainFrame.HideOrDeactivateMenu

java.lang.Object
java.lang.Enum<MainFrame.HideOrDeactivateMenu>
org.graffiti.editor.MainFrame.HideOrDeactivateMenu
All Implemented Interfaces:
Serializable, Comparable<MainFrame.HideOrDeactivateMenu>, java.lang.constant.Constable
Enclosing class:
MainFrame

public static enum MainFrame.HideOrDeactivateMenu
extends Enum<MainFrame.HideOrDeactivateMenu>
  • Enum Constant Details

    • DISABLE_INACTIVE_MENUITEMS

      public static final MainFrame.HideOrDeactivateMenu DISABLE_INACTIVE_MENUITEMS
      All deactivated menuitems will still be shown (standard behaviour).
    • HIDE_MENU_IF_ALL_DISABLED

      public static final MainFrame.HideOrDeactivateMenu HIDE_MENU_IF_ALL_DISABLED
      If all menuitems of a menu are deactivated hide the menu.
    • HIDE_INACTIVE_MENUITEMS_AND_HIDE_MENU

      public static final MainFrame.HideOrDeactivateMenu HIDE_INACTIVE_MENUITEMS_AND_HIDE_MENU
      All deactivated menuitems will also not be shown.
  • Method Details

    • values

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

      public static MainFrame.HideOrDeactivateMenu valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null