Package com.vaadin.componentfactory
Klasse SlotUtil
java.lang.Object
com.vaadin.componentfactory.SlotUtil
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic voidaddButton(EnhancedRichTextEditor target, com.vaadin.flow.component.button.Button component) Veraltet.static voidaddComponent(EnhancedRichTextEditor target, com.vaadin.flow.component.Component component) Adds a component to the toolbar slotToolbarSlot.GROUP_CUSTOM.static voidaddComponent(EnhancedRichTextEditor target, String slot, com.vaadin.flow.component.Component component) Adds a component to the toolbar slotToolbarSlot.GROUP_CUSTOM.static voidaddComponentAtIndex(EnhancedRichTextEditor target, com.vaadin.flow.component.Component component, int index) Adds a component to the toolbar slotToolbarSlot.GROUP_CUSTOM.static voidaddComponentAtIndex(EnhancedRichTextEditor target, String slot, com.vaadin.flow.component.Component component, int index) Adds a component to the toolbar slotToolbarSlot.GROUP_CUSTOM.static voidaddSuffixIcon(com.vaadin.flow.component.button.Button button, com.vaadin.flow.component.Component icon) static voidaddSuffixIcon(com.vaadin.flow.component.button.Button button, com.vaadin.flow.component.icon.VaadinIcon icon) static com.vaadin.flow.component.button.ButtongetButton(EnhancedRichTextEditor target, String id) static com.vaadin.flow.component.ComponentgetComponent(EnhancedRichTextEditor target, String slot, String id) static voidremoveButton(EnhancedRichTextEditor target, com.vaadin.flow.component.button.Button button) static voidremoveButton(EnhancedRichTextEditor target, String id) static voidremoveComponent(EnhancedRichTextEditor target, String slot, com.vaadin.flow.component.Component component) static voidremoveComponent(EnhancedRichTextEditor target, String slot, String id) static voidreplaceStandardButtonIcon(EnhancedRichTextEditor target, com.vaadin.flow.component.icon.Icon icon, String iconSlotName)
-
Felddetails
-
CUSTOM_GROUP_SLOTNAME
-
-
Konstruktordetails
-
SlotUtil
public SlotUtil()
-
-
Methodendetails
-
addButton
@Deprecated public static void addButton(EnhancedRichTextEditor target, com.vaadin.flow.component.button.Button component) Veraltet.useaddComponent(EnhancedRichTextEditor, Component)insteadAdds a button to the toolbar slot.- Parameter:
target- editor instancecomponent- button to add
-
addComponent
public static void addComponent(EnhancedRichTextEditor target, com.vaadin.flow.component.Component component) Adds a component to the toolbar slotToolbarSlot.GROUP_CUSTOM.- Parameter:
target- editor instancecomponent- component to add
-
addComponentAtIndex
public static void addComponentAtIndex(EnhancedRichTextEditor target, com.vaadin.flow.component.Component component, int index) Adds a component to the toolbar slotToolbarSlot.GROUP_CUSTOM.- Parameter:
target- editor instancecomponent- component to add
-
addComponent
public static void addComponent(EnhancedRichTextEditor target, String slot, com.vaadin.flow.component.Component component) Adds a component to the toolbar slotToolbarSlot.GROUP_CUSTOM.- Parameter:
target- editor instanceslot- slot name to place the component incomponent- 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 slotToolbarSlot.GROUP_CUSTOM.- Parameter:
target- editor instanceslot- slot name to place the component incomponent- component to addindex- 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
-
removeComponent
public static void removeComponent(EnhancedRichTextEditor target, String slot, com.vaadin.flow.component.Component component) -
removeButton
-
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)
-
addComponent(EnhancedRichTextEditor, Component)instead