Enum Class Menubar

java.lang.Object
java.lang.Enum<Menubar>
org.vaadin.hugerte.Menubar
All Implemented Interfaces:
Serializable, Comparable<Menubar>, Constable, ClientSideReference

public enum Menubar extends Enum<Menubar> implements ClientSideReference
Menus of the editor's menubar, to be used with HugeRte.configureMenubar(Menubar...). Plugins add their items to the matching menus.
  • Enum Constant Details

    • FILE

      public static final Menubar FILE
      The "File" menu.
    • EDIT

      public static final Menubar EDIT
      The "Edit" menu.
    • VIEW

      public static final Menubar VIEW
      The "View" menu.
    • INSERT

      public static final Menubar INSERT
      The "Insert" menu.
    • FORMAT

      public static final Menubar FORMAT
      The "Format" menu.
    • TOOLS

      public static final Menubar TOOLS
      The "Tools" menu.
    • TABLE

      public static final Menubar TABLE
      The "Table" menu. Requires the Plugin.TABLE plugin.
    • HELP

      public static final Menubar HELP
      The "Help" menu. Requires the Plugin.HELP plugin.
  • Method Details

    • values

      public static Menubar[] 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 Menubar 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
    • getClientSideRepresentation

      public String getClientSideRepresentation()
      Description copied from interface: ClientSideReference
      Returns the client side representation of this instance.
      Specified by:
      getClientSideRepresentation in interface ClientSideReference
      Returns:
      client side representation