Class ConfirmDialog

    • 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.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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.vaadin.flow.component.button.Button getBtnConfirm()  
      void setContentSizeFull()  
      void setHeader​(String headerText)  
      • Methods inherited from class com.vaadin.componentfactory.EnhancedDialog

        add, addComponentAtIndex, addThemeVariants, addToFooter, addToHeader, remove, removeAll, setContent, setFooter, setHeader, setThemeVariants
      • Methods inherited from class com.vaadin.flow.component.dialog.Dialog

        addAttachListener, addDetachListener, addDialogCloseActionListener, addOpenedChangeListener, addResizeListener, close, getChildren, getHeight, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, isCloseOnEsc, isCloseOnOutsideClick, isDraggable, isModal, isOpened, isResizable, open, setCloseOnEsc, setCloseOnOutsideClick, setDraggable, setHeight, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setModal, setOpened, setResizable, setWidth
      • Methods inherited from class com.vaadin.flow.component.dialog.GeneratedVaadinDialog

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

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

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

        setHeightFull, setSizeFull, setSizeUndefined, setWidthFull
    • Constructor Detail

      • ConfirmDialog

        public ConfirmDialog()
      • ConfirmDialog

        public ConfirmDialog​(TranslationService ts,
                             String title,
                             com.vaadin.flow.component.Component content,
                             String confirmButtonText,
                             com.vaadin.flow.server.Command confirmAction)
        Creates a confirm dialog with a component as content.
        Parameters:
        ts - An instance of the translation service
        title - The title of the confirm dialog
        content - The component used as content of the confirm dialog
        confirmButtonText - Text to show in the confirm button
        confirmAction - Action to execute on confirm
      • ConfirmDialog

        public ConfirmDialog​(TranslationService ts,
                             com.vaadin.flow.component.Component content,
                             String confirmButtonText,
                             com.vaadin.flow.server.Command confirmAction)
        Creates a confirm dialog with a component as content.
        Parameters:
        ts - An instance of the translation service
        content - The component used as content of the confirm dialog
        confirmButtonText - Text to show in the confirm button
        confirmAction - Action to execute on confirm
      • ConfirmDialog

        public ConfirmDialog​(TranslationService ts,
                             String title,
                             com.vaadin.flow.component.Component content,
                             String confirmButtonText)
        Creates a confirm dialog with a component as content.
        Parameters:
        ts - An instance of the translation service
        title - The title of the confirm dialog
        content - The component used as content of the confirm dialog
        confirmButtonText - Text to show in the confirm button
    • Method Detail

      • setHeader

        public void setHeader​(String headerText)
        Overrides:
        setHeader in class com.vaadin.componentfactory.EnhancedDialog
      • getBtnConfirm

        public com.vaadin.flow.component.button.Button getBtnConfirm()
      • setContentSizeFull

        public final void setContentSizeFull()