Class CancelEditConfirmDialog

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.dialog.Dialog
com.vaadin.flow.component.grid.CancelEditConfirmDialog
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, com.vaadin.flow.component.shared.HasThemeVariant<com.vaadin.flow.component.dialog.DialogVariant>, Serializable

public class CancelEditConfirmDialog extends com.vaadin.flow.component.dialog.Dialog
Dialog to confirm canceling an edit operation.
See Also:
  • Nested Class Summary

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

    com.vaadin.flow.component.dialog.Dialog.ClosedEvent, com.vaadin.flow.component.dialog.Dialog.DialogCloseActionEvent, com.vaadin.flow.component.dialog.Dialog.DialogDraggedEvent, com.vaadin.flow.component.dialog.Dialog.DialogFooter, com.vaadin.flow.component.dialog.Dialog.DialogHeader, com.vaadin.flow.component.dialog.Dialog.DialogResizeEvent, com.vaadin.flow.component.dialog.Dialog.OpenedChangeEvent
  • Constructor Summary

    Constructors
    Constructor
    Description
    CancelEditConfirmDialog(String text, String confirmText, String cancelText, com.vaadin.flow.function.SerializableRunnable onConfirmCallback, com.vaadin.flow.function.SerializableRunnable onCancelCallback)
    Constructor with message, confirm text, cancel text, confirm callback and cancel callback.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.vaadin.flow.component.button.Button
    Get the cancel button.
    com.vaadin.flow.component.button.Button
    Get the confirm button.
    com.vaadin.flow.component.html.Paragraph
    Get the message.

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

    add, addAttachListener, addClosedListener, addComponentAtIndex, addDetachListener, addDialogCloseActionListener, addDraggedListener, addOpenedChangeListener, addResizeListener, close, getAriaLabel, getFooter, getHeader, getHeaderTitle, getHeight, getLeft, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getModality, getOverlayRole, getRole, getStyle, getTop, getWidth, isCloseOnEsc, isCloseOnOutsideClick, isDraggable, isModal, isOpened, isResizable, onAttach, open, removeAll, setAriaLabel, setCloseOnEsc, setCloseOnOutsideClick, setDraggable, setHeaderTitle, setHeight, setLeft, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setModal, setModality, setOpened, setOverlayRole, setResizable, setRole, setTop, setVisible, setWidth

    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

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

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

    Methods inherited from interface com.vaadin.flow.component.shared.HasThemeVariant

    addThemeVariants, removeThemeVariants, setThemeVariant, setThemeVariants, setThemeVariants
  • Constructor Details

    • CancelEditConfirmDialog

      public CancelEditConfirmDialog(String text, String confirmText, String cancelText, com.vaadin.flow.function.SerializableRunnable onConfirmCallback, com.vaadin.flow.function.SerializableRunnable onCancelCallback)
      Constructor with message, confirm text, cancel text, confirm callback and cancel callback.
      Parameters:
      text - the message to display
      confirmText - the text for the confirm button
      cancelText - the text for the cancel button
      onConfirmCallback - the callback to run when the confirm button is clicked
      onCancelCallback - the callback to run when the cancel button is clicked
  • Method Details

    • getMessage

      public com.vaadin.flow.component.html.Paragraph getMessage()
      Get the message.
      Returns:
      the message
    • getConfirmButton

      public com.vaadin.flow.component.button.Button getConfirmButton()
      Get the confirm button.
      Returns:
      the confirm button
    • getCancelButton

      public com.vaadin.flow.component.button.Button getCancelButton()
      Get the cancel button.
      Returns:
      the cancel button