Klasse SlotUtil

java.lang.Object
com.vaadin.componentfactory.SlotUtil

public class SlotUtil extends Object
  • Felddetails

    • CUSTOM_GROUP_SLOTNAME

      public static final String CUSTOM_GROUP_SLOTNAME
  • Konstruktordetails

    • SlotUtil

      public SlotUtil()
  • Methodendetails

    • addButton

      @Deprecated public static void addButton(EnhancedRichTextEditor target, com.vaadin.flow.component.button.Button component)
      Adds a button to the toolbar slot.
      Parameter:
      target - editor instance
      component - button to add
    • addComponent

      public static void addComponent(EnhancedRichTextEditor target, com.vaadin.flow.component.Component component)
      Adds a component to the toolbar slot ToolbarSlot.GROUP_CUSTOM.
      Parameter:
      target - editor instance
      component - component to add
    • addComponentAtIndex

      public static void addComponentAtIndex(EnhancedRichTextEditor target, com.vaadin.flow.component.Component component, int index)
      Adds a component to the toolbar slot ToolbarSlot.GROUP_CUSTOM.
      Parameter:
      target - editor instance
      component - component to add
    • addComponent

      public static void addComponent(EnhancedRichTextEditor target, String slot, com.vaadin.flow.component.Component component)
      Adds a component to the toolbar slot ToolbarSlot.GROUP_CUSTOM.
      Parameter:
      target - editor instance
      slot - slot name to place the component in
      component - component to add
    • addComponentAtIndex

      public static void addComponentAtIndex(EnhancedRichTextEditor target, String slot, com.vaadin.flow.component.Component component, int index)
      Adds a component to the toolbar slot ToolbarSlot.GROUP_CUSTOM.
      Parameter:
      target - editor instance
      slot - slot name to place the component in
      component - component to add
      index - relative index inside the slot
    • addSuffixIcon

      public static void addSuffixIcon(com.vaadin.flow.component.button.Button button, com.vaadin.flow.component.icon.VaadinIcon icon)
    • addSuffixIcon

      public static void addSuffixIcon(com.vaadin.flow.component.button.Button button, com.vaadin.flow.component.Component icon)
    • getComponent

      public static com.vaadin.flow.component.Component getComponent(EnhancedRichTextEditor target, String slot, String id)
    • removeComponent

      public static void removeComponent(EnhancedRichTextEditor target, String slot, String id)
    • removeComponent

      public static void removeComponent(EnhancedRichTextEditor target, String slot, com.vaadin.flow.component.Component component)
    • removeButton

      public static void removeButton(EnhancedRichTextEditor target, String id)
    • removeButton

      public static void removeButton(EnhancedRichTextEditor target, com.vaadin.flow.component.button.Button button)
    • getButton

      public static com.vaadin.flow.component.button.Button getButton(EnhancedRichTextEditor target, String id)
    • replaceStandardButtonIcon

      public static void replaceStandardButtonIcon(EnhancedRichTextEditor target, com.vaadin.flow.component.icon.Icon icon, String iconSlotName)