Class 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.HasSize, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.HasTheme, Serializable

    public class ConfirmDialog
    extends com.vaadin.flow.component.dialog.Dialog
    Class to represent the confirm dialog for UI.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.vaadin.flow.component.dialog.Dialog

        com.vaadin.flow.component.dialog.Dialog.DialogCloseActionEvent, com.vaadin.flow.component.dialog.Dialog.DialogFooter, com.vaadin.flow.component.dialog.Dialog.DialogHeader, com.vaadin.flow.component.dialog.Dialog.DialogResizeEvent
      • Nested classes/interfaces inherited from class com.vaadin.flow.component.dialog.GeneratedVaadinDialog

        com.vaadin.flow.component.dialog.GeneratedVaadinDialog.OpenedChangeEvent<R extends com.vaadin.flow.component.dialog.GeneratedVaadinDialog<R>>
    • Method Summary

      • Methods inherited from class com.vaadin.flow.component.dialog.Dialog

        add, addAttachListener, addComponentAtIndex, addDetachListener, addDialogCloseActionListener, addOpenedChangeListener, addResizeListener, addThemeVariants, close, getChildren, getFooter, getHeader, getHeaderTitle, getHeight, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getStyle, getWidth, isCloseOnEsc, isCloseOnOutsideClick, isDraggable, isModal, isOpened, isResizable, onAttach, open, remove, removeAll, removeThemeVariants, setCloseOnEsc, setCloseOnOutsideClick, setDraggable, setHeaderTitle, setHeight, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setModal, setOpened, setResizable, setVisible, setWidth
      • Methods inherited from class com.vaadin.flow.component.dialog.GeneratedVaadinDialog

        getAriaLabelString, isOpenedBoolean, setAriaLabel
      • Methods inherited from class com.vaadin.flow.component.Component

        addListener, findAncestor, fireEvent, from, get, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, scrollIntoView, set, setElement, setId
      • Methods inherited from interface com.vaadin.flow.component.HasComponents

        add, add, addComponentAsFirst, remove
      • 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.HasSize

        getHeightUnit, getWidthUnit, setHeight, setHeightFull, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidthFull
      • Methods inherited from interface com.vaadin.flow.component.HasStyle

        addClassName, addClassNames, getClassName, getClassNames, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
      • Methods inherited from interface com.vaadin.flow.component.HasTheme

        addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName
    • Constructor Detail

      • ConfirmDialog

        public ConfirmDialog​(String caption,
                             String text,
                             String confirmButtonText,
                             Runnable confirmListener)
        Constructor
        Parameters:
        caption - for the dialog
        text - for the dialog
        confirmButtonText - confirmation text
        confirmListener - action for the dialog