Class ConfirmDialog

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.confirmdialog.ConfirmDialog
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasComponents, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasOrderedComponents, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, Serializable

@Tag("vaadin-confirm-dialog") @NpmPackage(value="@vaadin/polymer-legacy-adapter",version="24.7.12") @NpmPackage(value="@vaadin/confirm-dialog",version="24.7.12") @JsModule("@vaadin/polymer-legacy-adapter/style-modules.js") @JsModule("@vaadin/confirm-dialog/src/vaadin-confirm-dialog.js") public class ConfirmDialog extends com.vaadin.flow.component.Component implements com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.HasOrderedComponents
Confirm Dialog is a modal Dialog used to confirm user actions.

Confirm Dialog consists of:

  • Title
  • Message
  • Footer
    • “Cancel” button
    • “Reject” button
    • “Confirm” button

Each Confirm Dialog should have a title and/or message. The “Confirm” button is shown by default, while the two other buttons are not (they must be explicitly enabled to be displayed).

Author:
Vaadin Ltd
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    `cancel` is sent when the user clicks Cancel button or presses Escape key.
    static class 
    `confirm` is sent when the user clicks Confirm button
    static class 
    `reject` is sent when the user clicks Reject button
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an empty dialog with a Confirm button
    ConfirmDialog(String header, String text, String confirmText, com.vaadin.flow.component.ComponentEventListener<ConfirmDialog.ConfirmEvent> confirmListener)
    Creates a dialog with a Confirm button with its click listener and a given texts
    ConfirmDialog(String header, String text, String confirmText, com.vaadin.flow.component.ComponentEventListener<ConfirmDialog.ConfirmEvent> confirmListener, String cancelText, com.vaadin.flow.component.ComponentEventListener<ConfirmDialog.CancelEvent> cancelListener)
    Creates a two button dialog with Confirm and Cancel buttons
    ConfirmDialog(String header, String text, String confirmText, com.vaadin.flow.component.ComponentEventListener<ConfirmDialog.ConfirmEvent> confirmListener, String rejectText, com.vaadin.flow.component.ComponentEventListener<ConfirmDialog.RejectEvent> rejectListener, String cancelText, com.vaadin.flow.component.ComponentEventListener<ConfirmDialog.CancelEvent> cancelListener)
    Creates a three button dialog with Confirm, Reject and Cancel buttons
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(com.vaadin.flow.component.Component... components)
    Deprecated.
    since v24.4, not supported
    void
    add(String text)
    Deprecated.
    since v24.4, not supported
    void
    add(Collection<com.vaadin.flow.component.Component> components)
    Deprecated.
    since v24.4, not supported
    com.vaadin.flow.shared.Registration
    addCancelListener(com.vaadin.flow.component.ComponentEventListener<ConfirmDialog.CancelEvent> listener)
    Adds `cancel` event listener
    void
    addComponentAsFirst(com.vaadin.flow.component.Component component)
    Deprecated.
    since v24.4, not supported
    void
    addComponentAtIndex(int index, com.vaadin.flow.component.Component component)
    Deprecated.
    since v24.4, not supported
    com.vaadin.flow.shared.Registration
    addConfirmListener(com.vaadin.flow.component.ComponentEventListener<ConfirmDialog.ConfirmEvent> listener)
    Adds `confirm` event listener
    com.vaadin.flow.shared.Registration
    addRejectListener(com.vaadin.flow.component.ComponentEventListener<ConfirmDialog.RejectEvent> listener)
    Adds `reject` event listener
    void
    Closes the dialog.
    Gets the `aria-describedby` attribute of the dialog overlay.
    com.vaadin.flow.dom.ClassList
     
    com.vaadin.flow.component.Component
    getComponentAt(int index)
    Deprecated.
    since v24.4, not supported
    int
    Deprecated.
    since v24.4, not supported
     
    com.vaadin.flow.dom.Style
     
     
    int
    indexOf(com.vaadin.flow.component.Component component)
    Deprecated.
    since v24.4, not supported
    boolean
    Gets whether this dialog can be closed by hitting the esc-key or not.
    boolean
     
    protected void
    onAttach(com.vaadin.flow.component.AttachEvent attachEvent)
     
    void
    Opens the dialog.
    void
    remove(com.vaadin.flow.component.Component... components)
    Deprecated.
    since v24.4, not supported
    void
    remove(Collection<com.vaadin.flow.component.Component> components)
    Deprecated.
    since v24.4, not supported
    void
    Deprecated.
    since v24.4, not supported
    void
    replace(com.vaadin.flow.component.Component oldComponent, com.vaadin.flow.component.Component newComponent)
    Deprecated.
    since v24.4, not supported
    void
    Sets the `aria-describedby` attribute of the dialog overlay.
    void
    setCancelable(boolean cancelable)
    Whether to show or hide Cancel button.
    void
    setCancelButton(com.vaadin.flow.component.Component component)
    Sets custom cancel button
    void
    setCancelButton(com.vaadin.flow.dom.Element element)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Usage of Element API at Component level should be avoided
    void
    setCancelButton(String buttonText, com.vaadin.flow.component.ComponentEventListener<ConfirmDialog.CancelEvent> cancelListener)
    Sets Cancel button text and `cancel` event listener.
    void
    setCancelButton(String buttonText, com.vaadin.flow.component.ComponentEventListener<ConfirmDialog.CancelEvent> cancelListener, String theme)
    Sets Cancel button text, `cancel` event listener and Cancel button theme.
    void
    Sets Cancel button theme
    void
    setCancelText(String cancelText)
    Sets Cancel button text
    void
    setClassName(String className)
    Sets the CSS class names of the dialog overlay element.
    void
    setCloseOnEsc(boolean closeOnEsc)
    Sets whether this dialog can be closed by hitting the esc-key or not.
    void
    setConfirmButton(com.vaadin.flow.component.Component component)
    Sets custom confirm button
    void
    setConfirmButton(com.vaadin.flow.dom.Element element)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Usage of Element API at Component level should be avoided
    void
    setConfirmButton(String buttonText, com.vaadin.flow.component.ComponentEventListener<ConfirmDialog.ConfirmEvent> confirmListener)
    Sets Confirm button text and `confirm` event listener
    void
    setConfirmButton(String buttonText, com.vaadin.flow.component.ComponentEventListener<ConfirmDialog.ConfirmEvent> confirmListener, String theme)
    Sets Confirm button text, `confirm` event listener and Confirm button theme
    void
    Sets Confirm button theme
    void
    setConfirmText(String confirmText)
    Sets Confirm button text
    void
    setHeader(com.vaadin.flow.component.Component component)
    Sets confirmation dialog custom header
    void
    setHeader(com.vaadin.flow.dom.Element element)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Usage of Element API at Component level should be avoided
    void
    setHeader(String header)
    Sets confirmation dialog header text
    void
    setHeight(String height)
    Sets the height of the component content area.
    void
    setOpened(boolean opened)
    Opens or closes the dialog.
    void
    setRejectable(boolean rejectable)
    Whether to show or hide Reject button.
    void
    setRejectButton(com.vaadin.flow.component.Component component)
    Sets custom Reject button
    void
    setRejectButton(com.vaadin.flow.dom.Element element)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Usage of Element API at Component level should be avoided
    void
    setRejectButton(String buttonText, com.vaadin.flow.component.ComponentEventListener<ConfirmDialog.RejectEvent> rejectListener)
    Sets Reject button text and `reject` event listener.
    void
    setRejectButton(String buttonText, com.vaadin.flow.component.ComponentEventListener<ConfirmDialog.RejectEvent> rejectListener, String theme)
    Sets Reject button text, `reject` event listener, Reject button theme.
    void
    Sets Reject button theme
    void
    setRejectText(String rejectText)
    Sets Reject button text
    void
    setText(com.vaadin.flow.component.Component component)
    Sets custom confirmation message
    void
    setText(com.vaadin.flow.dom.Element element)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Usage of Element API at Component level should be avoided
    void
    setText(String message)
    Sets confirmation message text
    void
    Sets the width of the component content area.

    Methods inherited from class com.vaadin.flow.component.Component

    addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisible

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.component.AttachNotifier

    addAttachListener

    Methods inherited from interface com.vaadin.flow.component.DetachNotifier

    addDetachListener

    Methods inherited from interface com.vaadin.flow.component.HasElement

    getElement

    Methods inherited from interface com.vaadin.flow.component.HasEnabled

    isEnabled, setEnabled

    Methods inherited from interface com.vaadin.flow.component.HasOrderedComponents

    getChildren

    Methods inherited from interface com.vaadin.flow.component.HasSize

    getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidthUnit, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidthFull

    Methods inherited from interface com.vaadin.flow.component.HasStyle

    addClassName, addClassNames, getClassName, hasClassName, removeClassName, removeClassNames, setClassName
  • Constructor Details

  • Method Details

    • getWidth

      public String getWidth()
      Specified by:
      getWidth in interface com.vaadin.flow.component.HasSize
    • setWidth

      public void setWidth(String width)
      Sets the width of the component content area.

      The width should be in a format understood by the browser, e.g. "100px" or "2.5em" (Using relative unit, such as percentage, will lead to unexpected results).

      If the provided width value is null then width is removed.

      Specified by:
      setWidth in interface com.vaadin.flow.component.HasSize
      Parameters:
      width - the width to set, may be null
    • getHeight

      public String getHeight()
      Specified by:
      getHeight in interface com.vaadin.flow.component.HasSize
    • setHeight

      public void setHeight(String height)
      Sets the height of the component content area.

      The height should be in a format understood by the browser, e.g. "100px" or "2.5em" (Using relative unit, such as percentage, will lead to unexpected results).

      If the provided height value is null then height is removed.

      Specified by:
      setHeight in interface com.vaadin.flow.component.HasSize
      Parameters:
      height - the height to set, may be null
    • setClassName

      public void setClassName(String className)
      Sets the CSS class names of the dialog overlay element. This method overwrites any previous set class names.
      Specified by:
      setClassName in interface com.vaadin.flow.component.HasStyle
      Parameters:
      className - a space-separated string of class names to set, or null to remove all class names
    • getClassNames

      public com.vaadin.flow.dom.ClassList getClassNames()
      Specified by:
      getClassNames in interface com.vaadin.flow.component.HasStyle
    • getStyle

      public com.vaadin.flow.dom.Style getStyle()
      Specified by:
      getStyle in interface com.vaadin.flow.component.HasStyle
      Throws:
      UnsupportedOperationException - ConfirmDialog does not support adding styles to overlay
    • setAriaDescribedBy

      public void setAriaDescribedBy(String describedBy)
      Sets the `aria-describedby` attribute of the dialog overlay.

      By default, all elements inside the message area are linked through the `aria-describedby` attribute. However, there are cases where this can confuse screen reader users (e.g. the dialog may present a password confirmation form). For these cases, it's better to associate only the elements that will help describe the confirmation dialog through this API.

      To restore the generated value, pass `null` as argument

      Parameters:
      describedBy - the attribute value
    • getAriaDescribedBy

      public Optional<String> getAriaDescribedBy()
      Gets the `aria-describedby` attribute of the dialog overlay.

      Note that this will only return a value if setAriaDescribedBy(String) was called before.

      Returns:
      an optional aria-describedby of the dialog overlay, or an empty optional if no aria-describedby has been set
    • setCancelable

      public void setCancelable(boolean cancelable)
      Whether to show or hide Cancel button.
    • setRejectable

      public void setRejectable(boolean rejectable)
      Whether to show or hide Reject button.
    • setRejectButton

      public void setRejectButton(String buttonText, com.vaadin.flow.component.ComponentEventListener<ConfirmDialog.RejectEvent> rejectListener)
      Sets Reject button text and `reject` event listener. Makes Reject button visible
      Parameters:
      buttonText - the text inside Reject button
      rejectListener - the event listener for `reject` event
    • setRejectButton

      public void setRejectButton(String buttonText, com.vaadin.flow.component.ComponentEventListener<ConfirmDialog.RejectEvent> rejectListener, String theme)
      Sets Reject button text, `reject` event listener, Reject button theme. Makes Reject button visible
      Parameters:
      buttonText - the text inside Reject button
      rejectListener - the event listener for `reject` event
      theme - the theme applied for a Reject button
    • setRejectButton

      public void setRejectButton(com.vaadin.flow.component.Component component)
      Sets custom Reject button
      Parameters:
      component - the component to display instead of default Reject button
    • setRejectButton

      @Deprecated(forRemoval=true) public void setRejectButton(com.vaadin.flow.dom.Element element)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Usage of Element API at Component level should be avoided
      Sets custom Reject button
      Parameters:
      element - the element to display instead of default Reject button
    • setCancelButton

      public void setCancelButton(String buttonText, com.vaadin.flow.component.ComponentEventListener<ConfirmDialog.CancelEvent> cancelListener)
      Sets Cancel button text and `cancel` event listener. Makes Cancel button visible
      Parameters:
      buttonText - the text inside Cancel button
      cancelListener - the event listener for `cancel` event
    • setCancelButton

      public void setCancelButton(String buttonText, com.vaadin.flow.component.ComponentEventListener<ConfirmDialog.CancelEvent> cancelListener, String theme)
      Sets Cancel button text, `cancel` event listener and Cancel button theme. Makes Cancel button visible
      Parameters:
      buttonText - the text inside Cancel button
      cancelListener - the event listener for `cancel` event
      theme - the theme applied for a Cancel button
    • setCancelButton

      public void setCancelButton(com.vaadin.flow.component.Component component)
      Sets custom cancel button
      Parameters:
      component - the component to display instead of default Cancel button
    • setCancelButton

      @Deprecated(forRemoval=true) public void setCancelButton(com.vaadin.flow.dom.Element element)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Usage of Element API at Component level should be avoided
      Sets custom cancel button
      Parameters:
      element - the element to display instead of default Cancel button
    • setConfirmButton

      public void setConfirmButton(String buttonText, com.vaadin.flow.component.ComponentEventListener<ConfirmDialog.ConfirmEvent> confirmListener)
      Sets Confirm button text and `confirm` event listener
      Parameters:
      buttonText - the text inside Confirm button
      confirmListener - the event listener for `confirm` event
    • setConfirmButton

      public void setConfirmButton(String buttonText, com.vaadin.flow.component.ComponentEventListener<ConfirmDialog.ConfirmEvent> confirmListener, String theme)
      Sets Confirm button text, `confirm` event listener and Confirm button theme
      Parameters:
      buttonText - the text inside Confirm button
      confirmListener - the event listener for `confirm` event
      theme - the theme applied for a Confirm button
    • setConfirmButton

      public void setConfirmButton(com.vaadin.flow.component.Component component)
      Sets custom confirm button
      Parameters:
      component - the component to display instead of default Confirm button
    • setConfirmButton

      @Deprecated(forRemoval=true) public void setConfirmButton(com.vaadin.flow.dom.Element element)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Usage of Element API at Component level should be avoided
      Sets custom confirm button
      Parameters:
      element - the element to display instead of default Confirm button
    • setText

      public void setText(String message)
      Sets confirmation message text
    • setText

      public void setText(com.vaadin.flow.component.Component component)
      Sets custom confirmation message
      Parameters:
      component - the component to display instead of default confirmation text node
    • setText

      @Deprecated(forRemoval=true) public void setText(com.vaadin.flow.dom.Element element)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Usage of Element API at Component level should be avoided
      Sets custom confirmation message element
      Parameters:
      element - the element to display instead of default confirmation text node
    • setConfirmText

      public void setConfirmText(String confirmText)
      Sets Confirm button text
    • setConfirmButtonTheme

      public void setConfirmButtonTheme(String confirmTheme)
      Sets Confirm button theme
    • addConfirmListener

      public com.vaadin.flow.shared.Registration addConfirmListener(com.vaadin.flow.component.ComponentEventListener<ConfirmDialog.ConfirmEvent> listener)
      Adds `confirm` event listener
    • setCancelText

      public void setCancelText(String cancelText)
      Sets Cancel button text
    • setCancelButtonTheme

      public void setCancelButtonTheme(String cancelTheme)
      Sets Cancel button theme
    • addCancelListener

      public com.vaadin.flow.shared.Registration addCancelListener(com.vaadin.flow.component.ComponentEventListener<ConfirmDialog.CancelEvent> listener)
      Adds `cancel` event listener
    • setRejectText

      public void setRejectText(String rejectText)
      Sets Reject button text
    • setRejectButtonTheme

      public void setRejectButtonTheme(String rejectTheme)
      Sets Reject button theme
    • addRejectListener

      public com.vaadin.flow.shared.Registration addRejectListener(com.vaadin.flow.component.ComponentEventListener<ConfirmDialog.RejectEvent> listener)
      Adds `reject` event listener
    • setHeader

      public void setHeader(String header)
      Sets confirmation dialog header text
    • setHeader

      public void setHeader(com.vaadin.flow.component.Component component)
      Sets confirmation dialog custom header
      Parameters:
      component - the component to display instead of default header text
    • setHeader

      @Deprecated(forRemoval=true) public void setHeader(com.vaadin.flow.dom.Element element)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Usage of Element API at Component level should be avoided
      Sets confirmation dialog custom header element
      Parameters:
      element - the element to display instead of default header text
    • open

      public void open()
      Opens the dialog.

      If a dialog was not added manually to a parent component, it will be automatically added to the UI when opened, and automatically removed from the UI when closed. Note that the dialog is then scoped to the UI, and not the current view. As such, when navigating away from a view, the dialog will still be opened or stay open. In order to close the dialog when navigating away from a view, it should either be explicitly added as a child to the view, or it should be explicitly closed when leaving the view.

    • close

      public void close()
      Closes the dialog.

      This automatically removes the dialog from the UI, unless it was manually added to a parent component.

    • isOpened

      public boolean isOpened()
    • setOpened

      public void setOpened(boolean opened)
      Opens or closes the dialog.

      If a dialog was not added manually to a parent component, it will be automatically added to the UI when opened, and automatically removed from the UI when closed. Note that the dialog is then scoped to the UI, and not the current view. As such, when navigating away from a view, the dialog will still be opened or stay open. In order to close the dialog when navigating away from a view, it should either be explicitly added as a child to the view, or it should be explicitly closed when leaving the view.

      Parameters:
      opened - true to open the confirm-dialog, false to close it
    • isCloseOnEsc

      public boolean isCloseOnEsc()
      Gets whether this dialog can be closed by hitting the esc-key or not.

      By default, the dialog is closable with esc.

      Returns:
      true if this dialog can be closed with the esc-key, false otherwise
    • setCloseOnEsc

      public void setCloseOnEsc(boolean closeOnEsc)
      Sets whether this dialog can be closed by hitting the esc-key or not.

      By default, the dialog is closable with esc.

      Parameters:
      closeOnEsc - true to enable closing this dialog with the esc-key, false to disable it
    • add

      @Deprecated public void add(com.vaadin.flow.component.Component... components)
      Deprecated.
      since v24.4, not supported
      Confirm dialog does not support adding content. Use setText(Component) instead to initialize content as a component.

      This method is inherited from HasOrderedComponents and has been marked as deprecated to indicate that it is not supported.

      Specified by:
      add in interface com.vaadin.flow.component.HasComponents
    • add

      @Deprecated public void add(Collection<com.vaadin.flow.component.Component> components)
      Deprecated.
      since v24.4, not supported
      Confirm dialog does not support adding content. Use setText(Component) instead to initialize content as a component.

      This method is inherited from HasOrderedComponents and has been marked as deprecated to indicate that it is not supported.

      Specified by:
      add in interface com.vaadin.flow.component.HasComponents
    • add

      @Deprecated public void add(String text)
      Deprecated.
      since v24.4, not supported
      Confirm dialog does not support adding content. Use setText(String) instead to initialize content as text.

      This method is inherited from HasOrderedComponents and has been marked as deprecated to indicate that it is not supported.

      Specified by:
      add in interface com.vaadin.flow.component.HasComponents
    • remove

      @Deprecated public void remove(com.vaadin.flow.component.Component... components)
      Deprecated.
      since v24.4, not supported
      Confirm dialog does not support removing content.

      This method is inherited from HasOrderedComponents and has been marked as deprecated to indicate that it is not supported.

      Specified by:
      remove in interface com.vaadin.flow.component.HasComponents
    • remove

      @Deprecated public void remove(Collection<com.vaadin.flow.component.Component> components)
      Deprecated.
      since v24.4, not supported
      Confirm dialog does not support removing content.

      This method is inherited from HasOrderedComponents and has been marked as deprecated to indicate that it is not supported.

      Specified by:
      remove in interface com.vaadin.flow.component.HasComponents
    • removeAll

      @Deprecated public void removeAll()
      Deprecated.
      since v24.4, not supported
      Confirm dialog does not support removing content.

      This method is inherited from HasOrderedComponents and has been marked as deprecated to indicate that it is not supported.

      Specified by:
      removeAll in interface com.vaadin.flow.component.HasComponents
    • addComponentAtIndex

      @Deprecated public void addComponentAtIndex(int index, com.vaadin.flow.component.Component component)
      Deprecated.
      since v24.4, not supported
      Confirm dialog does not support adding content. Use setText(Component) instead to initialize content as a component.

      This method is inherited from HasOrderedComponents and has been marked as deprecated to indicate that it is not supported.

      Specified by:
      addComponentAtIndex in interface com.vaadin.flow.component.HasComponents
    • addComponentAsFirst

      @Deprecated public void addComponentAsFirst(com.vaadin.flow.component.Component component)
      Deprecated.
      since v24.4, not supported
      Confirm dialog does not support adding content. Use setText(Component) instead to initialize content as a component.

      This method is inherited from HasOrderedComponents and has been marked as deprecated to indicate that it is not supported.

      Specified by:
      addComponentAsFirst in interface com.vaadin.flow.component.HasComponents
    • replace

      @Deprecated public void replace(com.vaadin.flow.component.Component oldComponent, com.vaadin.flow.component.Component newComponent)
      Deprecated.
      since v24.4, not supported
      Confirm dialog does not support replacing content.

      This method is inherited from HasOrderedComponents and has been marked as deprecated to indicate that it is not supported.

      Specified by:
      replace in interface com.vaadin.flow.component.HasOrderedComponents
    • indexOf

      @Deprecated public int indexOf(com.vaadin.flow.component.Component component)
      Deprecated.
      since v24.4, not supported
      Confirm dialog does not support multiple components.

      This method is inherited from HasOrderedComponents and has been marked as deprecated to indicate that it is not supported.

      Specified by:
      indexOf in interface com.vaadin.flow.component.HasOrderedComponents
    • getComponentCount

      @Deprecated public int getComponentCount()
      Deprecated.
      since v24.4, not supported
      Confirm dialog does not support multiple components.

      This method is inherited from HasOrderedComponents and has been marked as deprecated to indicate that it is not supported.

      Specified by:
      getComponentCount in interface com.vaadin.flow.component.HasOrderedComponents
    • getComponentAt

      @Deprecated public com.vaadin.flow.component.Component getComponentAt(int index)
      Deprecated.
      since v24.4, not supported
      Confirm dialog does not support multiple components.

      This method is inherited from HasOrderedComponents and has been marked as deprecated to indicate that it is not supported.

      Specified by:
      getComponentAt in interface com.vaadin.flow.component.HasOrderedComponents
    • onAttach

      protected void onAttach(com.vaadin.flow.component.AttachEvent attachEvent)
      Overrides:
      onAttach in class com.vaadin.flow.component.Component