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
,com.vaadin.flow.component.HasTheme
,Serializable
- Direct Known Subclasses:
AbstractWindowMirrorFreePorts
,ArtifactWindow
,ConfirmDialogEditConnections
,LicenseManagerDialog
,NewProcessInstanceWindow
,ObjectOptionsWindow
,ObjectSelectorWindow
,ProcessInstanceDebugWindow
,ProcessInstanceEditorWindow
,ViewWindow
,WindowAddContainers
,WindowAddNodes
,WindowConnectivityManager
,WindowContainers
,WindowDeleteOspView
,WindowDeviceTools
,WindowDrawContainerTools
,WindowEdge
,WindowExternalServices
,WindowFavoritesManager
,WindowFiberTools
,WindowFilters
,WindowGeographicalQueries
,WindowGeographicalQuery
,WindowManagePortMirroring
,WindowMap
,WindowMidSpanAccess
,WindowNewContainer
,WindowNewLogicalCircuit
,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)
Creates a simple confirm dialog.ConfirmDialog(TranslationService ts, com.vaadin.flow.component.Component content, com.vaadin.flow.server.Command confirmAction)
Creates a confirm dialog with a component as content.ConfirmDialog(TranslationService ts, String title)
ConfirmDialog(TranslationService ts, String title, com.vaadin.flow.component.Component content)
Creates a confirm dialog with a component as content.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.ConfirmDialog(TranslationService ts, String title, String text)
Creates a confirm dialog.
-
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 disabledvoid
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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
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)
-
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 servicetitle
- The title of the confirm dialogcontent
- The component used as content of the confirm dialogconfirmAction
- 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 servicecontent
- The component used as content of the confirm dialogconfirmAction
- 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 servicetitle
- The title of the confirm dialogcontent
- 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 classcom.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()
-
-