Enum Class Toolbar

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

public enum Toolbar extends Enum<Toolbar> implements ClientSideReference
Toolbar items of the editor, to be used with HugeRte.configureToolbar(Toolbar...). Many of the items need a matching plugin to be enabled with HugeRte.configurePlugins(Plugin...), otherwise they are not shown.
  • Enum Constant Details

    • SEPARATOR

      public static final Toolbar SEPARATOR
      A separator between toolbar groups.
    • UNDO

      public static final Toolbar UNDO
      Undoes the last change.
    • REDO

      public static final Toolbar REDO
      Redoes the last undone change.
    • ACCORDION

      public static final Toolbar ACCORDION
      Inserts an accordion. Requires the Plugin.ACCORDION plugin.
    • ACCORDION_REMOVE

      public static final Toolbar ACCORDION_REMOVE
      Removes the selected accordion. Requires the Plugin.ACCORDION plugin.
    • BLOCKS

      public static final Toolbar BLOCKS
      Drop-down for the block format, e.g. paragraph or heading.
    • BOLD

      public static final Toolbar BOLD
      Toggles bold.
    • ITALIC

      public static final Toolbar ITALIC
      Toggles italic.
    • UNDERLINE

      public static final Toolbar UNDERLINE
      Toggles underline.
    • STRIKETHROUGH

      public static final Toolbar STRIKETHROUGH
      Toggles strikethrough.
    • FORECOLOR

      public static final Toolbar FORECOLOR
      Sets the text color.
    • BACKCOLOR

      public static final Toolbar BACKCOLOR
      Sets the background color of the text.
    • ALIGN_LEFT

      public static final Toolbar ALIGN_LEFT
      Aligns the block to the left.
    • ALIGN_CENTER

      public static final Toolbar ALIGN_CENTER
      Centers the block.
    • ALIGN_RIGHT

      public static final Toolbar ALIGN_RIGHT
      Aligns the block to the right.
    • ALIGN_JUSTIFY

      public static final Toolbar ALIGN_JUSTIFY
      Justifies the block.
    • FONT_FAMILY

      public static final Toolbar FONT_FAMILY
      Drop-down for the font family.
    • FONTSIZE

      public static final Toolbar FONTSIZE
      Drop-down for the font size.
    • BLOCKQUOTE

      public static final Toolbar BLOCKQUOTE
      Toggles a block quote.
    • NUMLIST

      public static final Toolbar NUMLIST
      Toggles a numbered list. The Plugin.LISTS and Plugin.ADVLIST plugins enhance it.
    • BULLIST

      public static final Toolbar BULLIST
      Toggles a bullet list. The Plugin.LISTS and Plugin.ADVLIST plugins enhance it.
    • OUTDENT

      public static final Toolbar OUTDENT
      Decreases the indentation.
    • INDENT

      public static final Toolbar INDENT
      Increases the indentation.
    • REMOVE_FORMAT

      public static final Toolbar REMOVE_FORMAT
      Removes the formatting of the selection.
    • HELP

      public static final Toolbar HELP
      Opens the help dialog. Requires the Plugin.HELP plugin.
    • TABLE

      public static final Toolbar TABLE
      Inserts a table or opens the table menu. Requires the Plugin.TABLE plugin.
    • TABLE_DELETE

      public static final Toolbar TABLE_DELETE
      Deletes the table. Requires the Plugin.TABLE plugin.
    • TABLE_PROPS

      public static final Toolbar TABLE_PROPS
      Opens the table properties. Requires the Plugin.TABLE plugin.
    • TABLE_ROWPROPS

      public static final Toolbar TABLE_ROWPROPS
      Opens the row properties. Requires the Plugin.TABLE plugin.
    • TABLE_CELLPROPS

      public static final Toolbar TABLE_CELLPROPS
      Opens the cell properties. Requires the Plugin.TABLE plugin.
    • TABLE_INSERT_ROW_BEFORE

      public static final Toolbar TABLE_INSERT_ROW_BEFORE
      Inserts a row before the current one. Requires the Plugin.TABLE plugin.
    • TABLE_INSERT_ROW_AFTER

      public static final Toolbar TABLE_INSERT_ROW_AFTER
      Inserts a row after the current one. Requires the Plugin.TABLE plugin.
    • TABLE_DELETE_ROW

      public static final Toolbar TABLE_DELETE_ROW
      Deletes the current row. Requires the Plugin.TABLE plugin.
    • TABLE_INSERT_COL_BEFORE

      public static final Toolbar TABLE_INSERT_COL_BEFORE
      Inserts a column before the current one. Requires the Plugin.TABLE plugin.
    • TABLE_INSERT_COL_AFTER

      public static final Toolbar TABLE_INSERT_COL_AFTER
      Inserts a column after the current one. Requires the Plugin.TABLE plugin.
    • EMOTICONS

      public static final Toolbar EMOTICONS
      Inserts an emoticon. Requires the Plugin.EMOTICONS plugin.
    • IMAGE

      public static final Toolbar IMAGE
      Inserts or edits an image. Requires the Plugin.IMAGE plugin.
    • MEDIA

      public static final Toolbar MEDIA
      Inserts or edits embedded media, e.g. a video. Requires the Plugin.MEDIA plugin.
    • PRINT

      public static final Toolbar PRINT
      Prints the content.
    • INSERT_DATETIME

      public static final Toolbar INSERT_DATETIME
      Inserts the current date or time. Requires the Plugin.INSERT_DATETIME plugin.
    • LINE_HEIGHT

      public static final Toolbar LINE_HEIGHT
      Drop-down for the line height.
    • CHARMAP

      public static final Toolbar CHARMAP
      Inserts a special character. Requires the Plugin.CHARMAP plugin.
    • CODE

      public static final Toolbar CODE
      Opens the HTML source code for editing. Requires the Plugin.CODE plugin.
    • FULLSCREEN

      public static final Toolbar FULLSCREEN
      Toggles the full screen mode. Requires the Plugin.FULLSCREEN plugin.
    • PREVIEW

      public static final Toolbar PREVIEW
      Opens a preview of the content. Requires the Plugin.PREVIEW plugin.
    • SAVE

      public static final Toolbar SAVE
      Saves the content. Requires the Plugin.SAVE plugin.
    • PAGEBREAK

      public static final Toolbar PAGEBREAK
      Inserts a page break. Requires the Plugin.PAGEBREAK plugin.
    • ANCHOR

      public static final Toolbar ANCHOR
      Inserts an anchor. Requires the Plugin.ANCHOR plugin.
    • CODE_SAMPLE

      public static final Toolbar CODE_SAMPLE
      Inserts or edits a code sample. Requires the Plugin.CODESAMPLE plugin.
    • LTR

      public static final Toolbar LTR
      Sets the text direction to left-to-right. Requires the Plugin.DIRECTIONALITY plugin.
    • RTL

      public static final Toolbar RTL
      Sets the text direction to right-to-left. Requires the Plugin.DIRECTIONALITY plugin.
  • Method Details

    • values

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