Class Dialog.DialogFooter

java.lang.Object
com.vaadin.flow.component.dialog.Dialog.DialogFooter
All Implemented Interfaces:
HasComponents, HasElement, HasEnabled, Serializable
Enclosing class:
Dialog

public static final class Dialog.DialogFooter extends Object
Class for adding and removing components to the footer part of a dialog.
See Also:
  • Field Details

    • root

      protected final Element root
  • Method Details

    • add

      public void add(Component... components)
      Description copied from interface: HasComponents
      Adds the given components as children of this component.

      In case any of the specified components has already been added to another parent, it will be removed from there and added to this one.

      Specified by:
      add in interface HasComponents
      Parameters:
      components - the components to add
    • add

      public void add(Collection<Component> components)
      Description copied from interface: HasComponents
      Adds the given components as children of this component.

      In case any of the specified components has already been added to another parent, it will be removed from there and added to this one.

      Specified by:
      add in interface HasComponents
      Parameters:
      components - the components to add
    • add

      public void add(String text)
      Description copied from interface: HasComponents
      Add the given text as a child of this component.
      Specified by:
      add in interface HasComponents
      Parameters:
      text - the text to add, not null
    • remove

      public void remove(Component... components)
      Description copied from interface: HasComponents
      Removes the given child components from this component.
      Specified by:
      remove in interface HasComponents
      Parameters:
      components - the components to remove
    • remove

      public void remove(Collection<Component> components)
      Description copied from interface: HasComponents
      Removes the given child components from this component.
      Specified by:
      remove in interface HasComponents
      Parameters:
      components - the components to remove
    • removeAll

      public void removeAll()
      Description copied from interface: HasComponents
      Removes all contents from this component, this includes child components, text content as well as child elements that have been added directly to this component using the Element API. it also removes the children that were added only at the client-side.
      Specified by:
      removeAll in interface HasComponents
    • addComponentAtIndex

      public void addComponentAtIndex(int index, Component component)
      Description copied from interface: HasComponents
      Adds the given component as child of this component at the specific index.

      In case the specified component has already been added to another parent, it will be removed from there and added to this one.

      Specified by:
      addComponentAtIndex in interface HasComponents
      Parameters:
      index - the index, where the component will be added. The index must be non-negative and may not exceed the children count
      component - the component to add, value should not be null
    • addComponentAsFirst

      public void addComponentAsFirst(Component component)
      Description copied from interface: HasComponents
      Adds the given component as the first child of this component.

      In case the specified component has already been added to another parent, it will be removed from there and added to this one.

      Specified by:
      addComponentAsFirst in interface HasComponents
      Parameters:
      component - the component to add, value should not be null
    • getElement

      public Element getElement()
      Description copied from interface: HasElement
      Gets the element associated with this instance.
      Specified by:
      getElement in interface HasElement
      Returns:
      the element associated with this instance