Enum Class Plugin

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

public enum Plugin extends Enum<Plugin> implements ClientSideReference
Plugins of the editor, to be enabled with HugeRte.configurePlugins(Plugin...). Many Toolbar and Menubar items need a matching plugin.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Adds collapsible accordion sections.
    Adds more list styles, e.g.
    Adds inserting anchors (named targets for links).
    Converts typed URLs automatically to links.
    Enables the "autoresize" plugin.
    Stores the content to the browser's local storage and asks to restore it when the editor is opened again.
    Adds a dialog for inserting special characters.
    Adds a dialog for editing the HTML source code.
    Adds inserting and editing code samples with syntax highlighting.
    Adds toolbar items for the text direction (left-to-right, right-to-left).
    Adds a dialog for inserting emoticons.
    Adds a full screen mode for the editor.
    Adds a help dialog with keyboard shortcuts and plugin information.
    Adds inserting and editing images.
    Imports CSS classes from the content CSS to the format menus.
    Adds inserting the current date and time.
    Adds inserting and editing links.
    Normalizes the list behavior, e.g.
    Adds embedding media, e.g.
    Adds inserting non-breaking spaces.
    Adds inserting page breaks.
    Adds a preview of the content.
    Adds context toolbars for selected text and empty lines.
    Adds a save toolbar item.
    Adds a search and replace dialog.
    Adds inserting and editing tables.
    Adds inserting predefined templates.
    Adds showing block elements visually, e.g.
    Adds showing invisible characters, e.g.
    Adds a word count to the status bar.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the client side representation of this instance.
    static Plugin
    Returns the enum constant of this class with the specified name.
    static Plugin[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • ACCORDION

      public static final Plugin ACCORDION
      Adds collapsible accordion sections.
    • ADVLIST

      public static final Plugin ADVLIST
      Adds more list styles, e.g. roman numbers, to the list toolbar items. Requires LISTS.
    • ANCHOR

      public static final Plugin ANCHOR
      Adds inserting anchors (named targets for links).
    • AUTORESIZE

      public static final Plugin AUTORESIZE

      Enables the "autoresize" plugin. This will let the editor take as much space as necessary to display all the content.

      Please note, that the normal height settings may conflict with the editor's behavior.

      To prevent visual glitches or misbehavior, e.g. the toolbar of the editor from being "scrolled out" of the visible area of the field, you should apply min-max height restrictions on the editor directly, e.g.

      HugeRte myRte = new HugeRte();
      myRte.configurePlugins(Plugin.AUTORESIZE);
      myRte.setEditorMaxHeight(400);
       
    • AUTOSAVE

      public static final Plugin AUTOSAVE
      Stores the content to the browser's local storage and asks to restore it when the editor is opened again.
    • CHARMAP

      public static final Plugin CHARMAP
      Adds a dialog for inserting special characters.
    • CODE

      public static final Plugin CODE
      Adds a dialog for editing the HTML source code.
    • CODESAMPLE

      public static final Plugin CODESAMPLE
      Adds inserting and editing code samples with syntax highlighting.
    • DIRECTIONALITY

      public static final Plugin DIRECTIONALITY
      Adds toolbar items for the text direction (left-to-right, right-to-left).
    • EMOTICONS

      public static final Plugin EMOTICONS
      Adds a dialog for inserting emoticons.
    • FULLSCREEN

      public static final Plugin FULLSCREEN
      Adds a full screen mode for the editor.
    • HELP

      public static final Plugin HELP
      Adds a help dialog with keyboard shortcuts and plugin information.
    • IMAGE

      public static final Plugin IMAGE
      Adds inserting and editing images.
    • IMPORT_CSS

      public static final Plugin IMPORT_CSS
      Imports CSS classes from the content CSS to the format menus.
    • INSERT_DATETIME

      public static final Plugin INSERT_DATETIME
      Adds inserting the current date and time.
    • LISTS

      public static final Plugin LISTS
      Normalizes the list behavior, e.g. for indenting list items.
    • MEDIA

      public static final Plugin MEDIA
      Adds embedding media, e.g. videos.
    • NONBREAKING

      public static final Plugin NONBREAKING
      Adds inserting non-breaking spaces.
    • PAGEBREAK

      public static final Plugin PAGEBREAK
      Adds inserting page breaks.
    • PREVIEW

      public static final Plugin PREVIEW
      Adds a preview of the content.
    • QUICKBARS

      public static final Plugin QUICKBARS
      Adds context toolbars for selected text and empty lines.
    • SAVE

      public static final Plugin SAVE
      Adds a save toolbar item. It calls the function given in the "save_onsavecallback" option.
    • SEARCH_REPLACE

      public static final Plugin SEARCH_REPLACE
      Adds a search and replace dialog.
    • TABLE

      public static final Plugin TABLE
      Adds inserting and editing tables.
    • TEMPLATE

      public static final Plugin TEMPLATE
      Adds inserting predefined templates. The templates are configured with the "templates" option.
    • VISUAL_BLOCKS

      public static final Plugin VISUAL_BLOCKS
      Adds showing block elements visually, e.g. paragraphs and headings.
    • VISUAL_CHARS

      public static final Plugin VISUAL_CHARS
      Adds showing invisible characters, e.g. non-breaking spaces.
    • WORDCOUNT

      public static final Plugin WORDCOUNT
      Adds a word count to the status bar.
  • Method Details

    • values

      public static Plugin[] 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 Plugin 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