Package org.neotropic.util.visual.dialog
Class ConfirmDialog
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.dialog.GeneratedVaadinDialog<com.vaadin.flow.component.dialog.Dialog>
-
- com.vaadin.flow.component.dialog.Dialog
-
- com.vaadin.componentfactory.EnhancedDialog
-
- org.neotropic.util.visual.dialog.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
,Serializable
- Direct Known Subclasses:
NewProcessInstanceWindow
,ObjectOptionsWindow
,ObjectSelectorWindow
,ProcessInstanceDiagramWindow
,ProcessInstanceWindow
,ViewWindow
,WindowAddContainers
,WindowAddNodes
,WindowConnectivityManager
,WindowContainers
,WindowDeleteOspView
,WindowDeviceTools
,WindowEdge
,WindowExternalServices
,WindowFavoritesManager
,WindowFiberTools
,WindowFilters
,WindowGeographicalQueries
,WindowGeographicalQuery
,WindowManagePortMirroring
,WindowMap
,WindowMidSpanAccess
,WindowNewContainer
,WindowNewNode
,WindowNewObject
,WindowNode
,WindowObjectProperties
,WindowPortTools
,WindowViewContent
@CssImport(value="./styles/theme-confirm-dialog.css", themeFor="vcf-enhanced-dialog-overlay") public class ConfirmDialog extends com.vaadin.componentfactory.EnhancedDialog
Generic Dialog that provides the capability to confirm specific actions.- Author:
- Orlando Paz <orlando.paz@kuwaiba.org>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConfirmDialog()
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.ConfirmDialog(TranslationService ts, String title, com.vaadin.flow.component.Component content, String confirmButtonText)
Creates a confirm dialog with a component as content.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.ConfirmDialog(TranslationService ts, String title, String confirmButtonText)
ConfirmDialog(TranslationService ts, String title, String text, String confirmButtonText)
-
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
-
-
-
-
Constructor Detail
-
ConfirmDialog
public ConfirmDialog()
-
ConfirmDialog
public ConfirmDialog(TranslationService ts, String title, String text, String confirmButtonText)
-
ConfirmDialog
public ConfirmDialog(TranslationService ts, String title, String confirmButtonText)
-
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 servicetitle
- The title of the confirm dialogcontent
- The component used as content of the confirm dialogconfirmButtonText
- Text to show in the confirm buttonconfirmAction
- 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 servicecontent
- The component used as content of the confirm dialogconfirmButtonText
- Text to show in the confirm buttonconfirmAction
- 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 servicetitle
- The title of the confirm dialogcontent
- The component used as content of the confirm dialogconfirmButtonText
- Text to show in the confirm button
-
-
Method Detail
-
setHeader
public void setHeader(String headerText)
- Overrides:
setHeader
in classcom.vaadin.componentfactory.EnhancedDialog
-
getBtnConfirm
public com.vaadin.flow.component.button.Button getBtnConfirm()
-
setContentSizeFull
public final void setContentSizeFull()
-
-