Enum-Klasse ToolbarSlot

java.lang.Object
java.lang.Enum<ToolbarSlot>
com.vaadin.componentfactory.toolbar.ToolbarSlot
Alle implementierten Schnittstellen:
Serializable, Comparable<ToolbarSlot>, Constable

public enum ToolbarSlot extends Enum<ToolbarSlot>

A list of available slots, where custom toolbar components can be added.

There are two special slots START and END. These will be always the first and last slot where elements can be added.

All other GROUP slots are placed before and after the respective button group. If the respective button group is moved in future, their slots will be moved accordingly.

  • Enum-Konstanten - Details

    • START

      public static final ToolbarSlot START
      The very first / starting slot of the toolbar.
    • BEFORE_GROUP_HISTORY

      public static final ToolbarSlot BEFORE_GROUP_HISTORY
      Slot before the history group (contains "undo" etc.).
    • AFTER_GROUP_HISTORY

      public static final ToolbarSlot AFTER_GROUP_HISTORY
      Slot after the history group (contains "undo" etc.).
    • BEFORE_GROUP_EMPHASIS

      public static final ToolbarSlot BEFORE_GROUP_EMPHASIS
      Slot before the emphasis group (contains "bold" etc.).
    • AFTER_GROUP_EMPHASIS

      public static final ToolbarSlot AFTER_GROUP_EMPHASIS
      Slot after the emphasis group (contains "bold" etc.).
    • BEFORE_GROUP_HEADING

      public static final ToolbarSlot BEFORE_GROUP_HEADING
      Slot before the heading group.
    • AFTER_GROUP_HEADING

      public static final ToolbarSlot AFTER_GROUP_HEADING
      Slot after the heading group.
    • BEFORE_GROUP_GLYPH_TRANSFORMATION

      public static final ToolbarSlot BEFORE_GROUP_GLYPH_TRANSFORMATION
      Slot before the glyph transformation group (contains "subscript" etc.).
    • AFTER_GROUP_GLYPH_TRANSFORMATION

      public static final ToolbarSlot AFTER_GROUP_GLYPH_TRANSFORMATION
      Slot after the glyph transformation group (contains "subscript" etc.).
    • BEFORE_GROUP_LIST

      public static final ToolbarSlot BEFORE_GROUP_LIST
      Slot before the list group.
    • AFTER_GROUP_LIST

      public static final ToolbarSlot AFTER_GROUP_LIST
      Slot after the list group.
    • BEFORE_GROUP_INDENT

      public static final ToolbarSlot BEFORE_GROUP_INDENT
      Slot before the indent group.
    • AFTER_GROUP_INDENT

      public static final ToolbarSlot AFTER_GROUP_INDENT
      Slot after the indent group.
    • BEFORE_GROUP_ALIGNMENT

      public static final ToolbarSlot BEFORE_GROUP_ALIGNMENT
      Slot before the alignment group.
    • AFTER_GROUP_ALIGNMENT

      public static final ToolbarSlot AFTER_GROUP_ALIGNMENT
      Slot after the alignment group.
    • BEFORE_GROUP_RICH_TEXT

      public static final ToolbarSlot BEFORE_GROUP_RICH_TEXT
      Slot before the rich text group (contains "image" etc.).
    • AFTER_GROUP_RICH_TEXT

      public static final ToolbarSlot AFTER_GROUP_RICH_TEXT
      Slot after the rich text group (contains "image" etc.).
    • BEFORE_GROUP_BLOCK

      public static final ToolbarSlot BEFORE_GROUP_BLOCK
      Slot before the block group (contains "quote" etc.).
    • AFTER_GROUP_BLOCK

      public static final ToolbarSlot AFTER_GROUP_BLOCK
      Slot after the block group (contains "quote" etc.).
    • BEFORE_GROUP_FORMAT

      public static final ToolbarSlot BEFORE_GROUP_FORMAT
      Slot before the format group (contains "readonly" etc.).
    • AFTER_GROUP_FORMAT

      public static final ToolbarSlot AFTER_GROUP_FORMAT
      Slot after the format group (contains "readonly" etc.).
    • BEFORE_GROUP_CUSTOM

      public static final ToolbarSlot BEFORE_GROUP_CUSTOM
      Slot before the custom group. See GROUP_CUSTOM.
    • GROUP_CUSTOM

      public static final ToolbarSlot GROUP_CUSTOM
      The custom button slots. The custom group is a legacy group from previous versions, that allowed adding items at the end of the toolbar. Might be used by extensions (like the table extension).
    • AFTER_GROUP_CUSTOM

      public static final ToolbarSlot AFTER_GROUP_CUSTOM
      Slot after the custom group. See GROUP_CUSTOM.
    • END

      public static final ToolbarSlot END
      The very last / ending slot of the toolbar.
  • Methodendetails

    • values

      public static ToolbarSlot[] values()
      Gibt ein Array mit den Konstanten dieser Enum-Klasse in der Reihenfolge ihrer Deklaration zurück.
      Gibt zurück:
      ein Array mit den Konstanten dieser Enum-Klasse in der Reihenfolge ihrer Deklaration
    • valueOf

      public static ToolbarSlot valueOf(String name)
      Gibt die Enum-Konstante dieser Klasse mit dem angegebenen Namen zurück. Die Zeichenfolge muss exakt mit einer ID übereinstimmen, mit der eine Enum-Konstante in dieser Klasse deklariert wird. (Zusätzliche Leerzeichen sind nicht zulässig.)
      Parameter:
      name - Name der zurückzugebenden Enumerationskonstante.
      Gibt zurück:
      Enumerationskonstante mit dem angegebenen Namen
      Löst aus:
      IllegalArgumentException - wenn diese Enum-Klasse keine Konstante mit dem angegebenen Namen enthält
      NullPointerException - wenn das Argument nicht angegeben wird
    • getSlotName

      public String getSlotName()
      Returns the string value of the slot name.
      Gibt zurück:
      The slot name string.