Package org.vaadin.hugerte
Enum Class Toolbar
- All Implemented Interfaces:
Serializable,Comparable<Toolbar>,Constable,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.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionInserts an accordion.Removes the selected accordion.Centers the block.Justifies the block.Aligns the block to the left.Aligns the block to the right.Inserts an anchor.Sets the background color of the text.Toggles a block quote.Drop-down for the block format, e.g.Toggles bold.Toggles a bullet list.Inserts a special character.Opens the HTML source code for editing.Inserts or edits a code sample.Inserts an emoticon.Drop-down for the font family.Drop-down for the font size.Sets the text color.Toggles the full screen mode.Opens the help dialog.Inserts or edits an image.Increases the indentation.Inserts the current date or time.Toggles italic.Drop-down for the line height.Inserts or edits a link.Sets the text direction to left-to-right.Inserts or edits embedded media, e.g.Toggles a numbered list.Decreases the indentation.Inserts a page break.Opens a preview of the content.Prints the content.Redoes the last undone change.Removes the formatting of the selection.Sets the text direction to right-to-left.Saves the content.A separator between toolbar groups.Toggles strikethrough.Inserts a table or opens the table menu.Opens the cell properties.Deletes the table.Deletes the current row.Inserts a column after the current one.Inserts a column before the current one.Inserts a row after the current one.Inserts a row before the current one.Opens the table properties.Opens the row properties.Toggles underline.Undoes the last change. -
Method Summary
-
Enum Constant Details
-
SEPARATOR
A separator between toolbar groups. -
UNDO
Undoes the last change. -
REDO
Redoes the last undone change. -
ACCORDION
Inserts an accordion. Requires thePlugin.ACCORDIONplugin. -
ACCORDION_REMOVE
Removes the selected accordion. Requires thePlugin.ACCORDIONplugin. -
BLOCKS
Drop-down for the block format, e.g. paragraph or heading. -
BOLD
Toggles bold. -
ITALIC
Toggles italic. -
UNDERLINE
Toggles underline. -
STRIKETHROUGH
Toggles strikethrough. -
FORECOLOR
Sets the text color. -
BACKCOLOR
Sets the background color of the text. -
ALIGN_LEFT
Aligns the block to the left. -
ALIGN_CENTER
Centers the block. -
ALIGN_RIGHT
Aligns the block to the right. -
ALIGN_JUSTIFY
Justifies the block. -
FONT_FAMILY
Drop-down for the font family. -
FONTSIZE
Drop-down for the font size. -
BLOCKQUOTE
Toggles a block quote. -
NUMLIST
Toggles a numbered list. ThePlugin.LISTSandPlugin.ADVLISTplugins enhance it. -
BULLIST
Toggles a bullet list. ThePlugin.LISTSandPlugin.ADVLISTplugins enhance it. -
OUTDENT
Decreases the indentation. -
INDENT
Increases the indentation. -
REMOVE_FORMAT
Removes the formatting of the selection. -
HELP
Opens the help dialog. Requires thePlugin.HELPplugin. -
TABLE
Inserts a table or opens the table menu. Requires thePlugin.TABLEplugin. -
TABLE_DELETE
Deletes the table. Requires thePlugin.TABLEplugin. -
TABLE_PROPS
Opens the table properties. Requires thePlugin.TABLEplugin. -
TABLE_ROWPROPS
Opens the row properties. Requires thePlugin.TABLEplugin. -
TABLE_CELLPROPS
Opens the cell properties. Requires thePlugin.TABLEplugin. -
TABLE_INSERT_ROW_BEFORE
Inserts a row before the current one. Requires thePlugin.TABLEplugin. -
TABLE_INSERT_ROW_AFTER
Inserts a row after the current one. Requires thePlugin.TABLEplugin. -
TABLE_DELETE_ROW
Deletes the current row. Requires thePlugin.TABLEplugin. -
TABLE_INSERT_COL_BEFORE
Inserts a column before the current one. Requires thePlugin.TABLEplugin. -
TABLE_INSERT_COL_AFTER
Inserts a column after the current one. Requires thePlugin.TABLEplugin. -
EMOTICONS
Inserts an emoticon. Requires thePlugin.EMOTICONSplugin. -
LINK
Inserts or edits a link. Requires thePlugin.LINKplugin. -
IMAGE
Inserts or edits an image. Requires thePlugin.IMAGEplugin. -
MEDIA
Inserts or edits embedded media, e.g. a video. Requires thePlugin.MEDIAplugin. -
PRINT
Prints the content. -
INSERT_DATETIME
Inserts the current date or time. Requires thePlugin.INSERT_DATETIMEplugin. -
LINE_HEIGHT
Drop-down for the line height. -
CHARMAP
Inserts a special character. Requires thePlugin.CHARMAPplugin. -
CODE
Opens the HTML source code for editing. Requires thePlugin.CODEplugin. -
FULLSCREEN
Toggles the full screen mode. Requires thePlugin.FULLSCREENplugin. -
PREVIEW
Opens a preview of the content. Requires thePlugin.PREVIEWplugin. -
SAVE
Saves the content. Requires thePlugin.SAVEplugin. -
PAGEBREAK
Inserts a page break. Requires thePlugin.PAGEBREAKplugin. -
ANCHOR
Inserts an anchor. Requires thePlugin.ANCHORplugin. -
CODE_SAMPLE
Inserts or edits a code sample. Requires thePlugin.CODESAMPLEplugin. -
LTR
Sets the text direction to left-to-right. Requires thePlugin.DIRECTIONALITYplugin. -
RTL
Sets the text direction to right-to-left. Requires thePlugin.DIRECTIONALITYplugin.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getClientSideRepresentation
Description copied from interface:ClientSideReferenceReturns the client side representation of this instance.- Specified by:
getClientSideRepresentationin interfaceClientSideReference- Returns:
- client side representation
-