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 getBtnCancel()  
      com.vaadin.flow.component.button.Button getBtnConfirm()  
      void setContentSizeFull()  
      void setEnableBtnConfirm​(boolean enable)
      Set confirmation button to be enabled or disabled, remove style and themes if disabled
      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, addThemeVariants, close, getChildren, getHeight, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, isCloseOnEsc, isCloseOnOutsideClick, isDraggable, isModal, isOpened, isResizable, onAttach, open, removeThemeVariants, 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, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, 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

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

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

      • ConfirmDialog

        public ConfirmDialog()
      • ConfirmDialog

        public ConfirmDialog​(TranslationService ts,
                             String title,
                             String text)
        Creates a confirm dialog.
        Parameters:
        ts - Reference to the Translation Service.
        title - The confirm dialog header.
        text - The text that will be displayed in the body of the dialog.
      • ConfirmDialog

        public ConfirmDialog​(TranslationService ts,
                             String title,
                             com.vaadin.flow.component.Component content,
                             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
        confirmAction - Action to execute on confirm
      • ConfirmDialog

        public ConfirmDialog​(TranslationService ts,
                             com.vaadin.flow.component.Component content,
                             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
        confirmAction - Action to execute on confirm
      • ConfirmDialog

        public ConfirmDialog​(TranslationService ts,
                             String title,
                             com.vaadin.flow.component.Component content)
        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
      • ConfirmDialog

        public ConfirmDialog​(TranslationService ts)
        Creates a simple confirm dialog. No clickshortcut
        Parameters:
        ts - An instance of the translation service
    • 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()
      • getBtnCancel

        public com.vaadin.flow.component.button.Button getBtnCancel()
      • setEnableBtnConfirm

        public void setEnableBtnConfirm​(boolean enable)
        Set confirmation button to be enabled or disabled, remove style and themes if disabled
        Parameters:
        enable - true if the button should be enabled
      • setContentSizeFull

        public final void setContentSizeFull()