content
protected com.vaadin.flow.component.Component content
T - the type of the progress update values provided by the task, extending NumberV - the result type of the background taskDialogs.BackgroundTaskDialogBuilder<T,V> , Dialogs.Draggable<Dialogs.BackgroundTaskDialogBuilder<T,V>> , Dialogs.HasContent<Dialogs.BackgroundTaskDialogBuilder<T,V>> , Dialogs.HasHeader<Dialogs.BackgroundTaskDialogBuilder<T,V>> , Dialogs.HasPosition<Dialogs.BackgroundTaskDialogBuilder<T,V>> , Dialogs.HasStyle<Dialogs.BackgroundTaskDialogBuilder<T,V>> , Dialogs.HasText<Dialogs.BackgroundTaskDialogBuilder<T,V>> , Dialogs.HasTheme<Dialogs.BackgroundTaskDialogBuilder<T,V>> , Dialogs.Resizable<Dialogs.BackgroundTaskDialogBuilder<T,V>> Dialogs.BackgroundTaskDialogBuilder that facilitates creating and managing
dialogs for running background tasks with progress display, cancel functionality,
and customizable UI elements.protected BackgroundTask<T,V> protected booleanprotected com.vaadin.flow.component.button.Buttonprotected com.vaadin.flow.component.Componentprotected com.vaadin.flow.component.dialog.Dialogprotected com.vaadin.flow.component.orderedlayout.VerticalLayoutprotected com.vaadin.flow.shared.Registrationprotected com.vaadin.flow.component.progressbar.ProgressBarprotected com.vaadin.flow.component.html.Spanprotected booleanprotected BackgroundTaskHandler<V>protected Numbercom.vaadin.flow.component.dialog.Dialogbuild()Dialog instance, configured based on the current state of the builder.protected com.vaadin.flow.component.dialog.Dialogprotected voidfireDialogOpenedChangeEvent(com.vaadin.flow.component.dialog.Dialog.OpenedChangeEvent openedChangeEvent) com.vaadin.flow.component.ComponentgetLeft()getText()getTop()getTotal()protected voidprotected voidinitDialog(com.vaadin.flow.component.dialog.Dialog dialog) protected voidinitDialogContent(com.vaadin.flow.component.dialog.Dialog dialog) booleanbooleanprotected booleanbooleanbooleanprotected voidonCancelButtonClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) com.vaadin.flow.component.dialog.Dialogopen()protected voidprotected voidupdateProgress(Number processedValue) withCancelAllowed(boolean cancelAllowed) withClassName(String className) withContent(com.vaadin.flow.component.Component content) withDraggable(boolean draggable) withDraggedListener(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.dialog.Dialog.DialogDraggedEvent> listener) withHeader(String header) withMaxHeight(String maxHeight) withMaxWidth(String maxWidth) withMinHeight(String minHeight) withMinWidth(String minWidth) withResizable(boolean resizable) withResizeListener(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.dialog.Dialog.DialogResizeEvent> listener) withShowProgressInPercentage(boolean percentProgress) withThemeName(String themeName) Dialogs.BackgroundTaskDialogBuilder
The default value is false.
withCancelAllowed in interface Dialogs.BackgroundTaskDialogBuilder<T extends Number,V> cancelAllowed - true if dialog is closeableisCancelAllowed in interface Dialogs.BackgroundTaskDialogBuilder<T extends Number,V> true if the dialog can be closedDialogs.BackgroundTaskDialogBuilderTaskLifeCycle.publish(Object[]) to notify the dialog about progress
completion.withTotal in interface Dialogs.BackgroundTaskDialogBuilder<T extends Number,V> total - amount of items to be processed by background task,getTotal in interface Dialogs.BackgroundTaskDialogBuilder<T extends Number,V> Dialogs.BackgroundTaskDialogBuilderwithShowProgressInPercentage in interface Dialogs.BackgroundTaskDialogBuilder<T extends Number,V> percentProgress - true to show progress in percentsisShowProgressInPercentage in interface Dialogs.BackgroundTaskDialogBuilder<T extends Number,V> true if progress should is shown in percentsDialogs.HasHeaderwithHeader in interface Dialogs.HasHeader<T extends Number>header - header textgetHeader in interface Dialogs.HasHeader<T extends Number>Dialogs.HasTextwithText in interface Dialogs.HasText<T extends Number>text - a textgetText in interface Dialogs.HasText<T extends Number>Dialogs.HasThemewithThemeName in interface Dialogs.HasTheme<T extends Number>themeName - a space-separated string of theme names to set, or empty string to remove all theme namesDialogs.HasThemegetThemeName in interface Dialogs.HasTheme<T extends Number>null if attribute (theme) is not set at allDialogs.HasStylewithClassName in interface Dialogs.HasStyle<T extends Number>className - a space-separated string of class names to set, or
null to remove all class namesDialogs.HasStylegetClassName in interface Dialogs.HasStyle<T extends Number>null if
there are no class namesDialogs.DraggablewithDraggable in interface Dialogs.Draggable<T extends Number>draggable - true to enable dragging of the dialog, false otherwiseisDraggable in interface Dialogs.Draggable<T extends Number>true if dragging is enabled, false otherwiseDialogs.DraggableNote: By default, the component will sync the top/left values after every dragging.
withDraggedListener in interface Dialogs.Draggable<T extends Number>listener - the listener to addbuilderDialogs.ResizableDialogs.Resizable.withResizable(boolean)).
Note: By default, the component will sync the width/height and top/left values after every resizing.
withResizeListener in interface Dialogs.Resizable<T extends Number>listener - the listener to addDialogs.HasContentwithContent in interface Dialogs.HasContent<T extends Number>content - a contentgetContent in interface Dialogs.HasContent<T extends Number>Dialogs.ResizableBy default, the dialog is not resizable.
withResizable in interface Dialogs.Resizable<T extends Number>resizable - true to enabled resizing of the dialog, false otherwise.isResizable in interface Dialogs.Resizable<T extends Number>true if resizing is enabled, false otherwiseDialogs.ResizablewithMinWidth in interface Dialogs.Resizable<T extends Number>minWidth - a dialog min widthgetMinWidth in interface Dialogs.Resizable<T extends Number>Dialogs.ResizablewithMinHeight in interface Dialogs.Resizable<T extends Number>minHeight - a dialog min heightgetMinHeight in interface Dialogs.Resizable<T extends Number>Dialogs.ResizablewithMaxWidth in interface Dialogs.Resizable<T extends Number>maxWidth - a dialog max widthgetMaxWidth in interface Dialogs.Resizable<T extends Number>Dialogs.ResizablewithMaxHeight in interface Dialogs.Resizable<T extends Number>maxHeight - a dialog max heightgetMaxHeight in interface Dialogs.Resizable<T extends Number>Dialogs.HasPositiongetLeft in interface Dialogs.HasPosition<T extends Number>Dialogs.HasPosition
Note that the dialog left edge may not be the same as the viewport left
edge (e.g. the Lumo theme defines some spacing to prevent the dialog
from stretching all the way to the left of the viewport).
withLeft in interface Dialogs.HasPosition<T extends Number>left - the left position of the dialogbuilderDialogs.HasPositiongetTop in interface Dialogs.HasPosition<T extends Number>Dialogs.HasPosition
Note that the dialog top edge may not be the same as the viewport top
edge (e.g. the Lumo theme defines some spacing to prevent the dialog
from stretching all the way to the top of the viewport).
withTop in interface Dialogs.HasPosition<T extends Number>top - the top position of the dialogbuilderDialog instance, configured based on the current state of the builder.build in interface Dialogs.BackgroundTaskDialogBuilder<T extends Number,V> Dialog instanceDialogs.BackgroundTaskDialogBuilderopen in interface Dialogs.BackgroundTaskDialogBuilder<T extends Number,V>