Package io.jmix.flowui
Interface Dialogs.BackgroundTaskDialogBuilder<T extends Number,V> 
- All Superinterfaces:
- Dialogs.Draggable<Dialogs.BackgroundTaskDialogBuilder<T,,- V>> - Dialogs.HasContent<Dialogs.BackgroundTaskDialogBuilder<T,,- V>> - Dialogs.HasHeader<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>> 
- All Known Implementing Classes:
- DialogsImpl.BackgroundTaskDialogBuilderImpl
- Enclosing interface:
- Dialogs
public static interface Dialogs.BackgroundTaskDialogBuilder<T extends Number,V> 
extends Dialogs.HasHeader<Dialogs.BackgroundTaskDialogBuilder<T,V>>, Dialogs.HasText<Dialogs.BackgroundTaskDialogBuilder<T,V>>, Dialogs.HasTheme<Dialogs.BackgroundTaskDialogBuilder<T,V>>, Dialogs.HasStyle<Dialogs.BackgroundTaskDialogBuilder<T,V>>, Dialogs.HasContent<Dialogs.BackgroundTaskDialogBuilder<T,V>>, Dialogs.Draggable<Dialogs.BackgroundTaskDialogBuilder<T,V>>, Dialogs.Resizable<Dialogs.BackgroundTaskDialogBuilder<T,V>>       
Builder of background task dialog.
- 
Method SummaryModifier and TypeMethodDescriptioncom.vaadin.flow.component.dialog.Dialogbuild()Build the background task dialog.getTotal()booleanbooleancom.vaadin.flow.component.dialog.Dialogopen()Opens the background task dialog.withCancelAllowed(boolean cancelAllowed) Determines whether the dialog can be closed.withShowProgressInPercentage(boolean percentProgress) Sets whether progress should be represented as percentage (rather than as raw number).Sets amount of items to be processed by background task.Methods inherited from interface io.jmix.flowui.Dialogs.DraggableisDraggable, withDraggableMethods inherited from interface io.jmix.flowui.Dialogs.HasContentgetContent, withContentMethods inherited from interface io.jmix.flowui.Dialogs.HasHeadergetHeader, withHeaderMethods inherited from interface io.jmix.flowui.Dialogs.HasStylegetClassName, withClassNameMethods inherited from interface io.jmix.flowui.Dialogs.HasTextgetText, withTextMethods inherited from interface io.jmix.flowui.Dialogs.HasThemegetThemeName, withThemeNameMethods inherited from interface io.jmix.flowui.Dialogs.ResizablegetMaxHeight, getMaxWidth, getMinHeight, getMinWidth, isResizable, withMaxHeight, withMaxWidth, withMinHeight, withMinWidth, withResizable
- 
Method Details- 
withCancelAllowedDetermines whether the dialog can be closed.The default value is false.- Parameters:
- cancelAllowed-- trueif dialog is closeable
- Returns:
- builder
 
- 
isCancelAllowedboolean isCancelAllowed()- Returns:
- trueif the dialog can be closed
 
- 
withTotalSets amount of items to be processed by background task.
 UseTaskLifeCycle.publish(Object[])to notify the dialog about progress completion.- Parameters:
- total- amount of items to be processed by background task,
- Returns:
- builder
 
- 
getTotalNumber getTotal()- Returns:
- amount of items to be processed by background task
 
- 
withShowProgressInPercentageSets whether progress should be represented as percentage (rather than as raw number).- Parameters:
- percentProgress-- trueto show progress in percents
- Returns:
- builder
 
- 
isShowProgressInPercentageboolean isShowProgressInPercentage()- Returns:
- trueif progress should is shown in percents
 
- 
buildcom.vaadin.flow.component.dialog.Dialog build()Build the background task dialog. Dialog should be shown usingDialog.open().- Returns:
- built background task dialog.
 
- 
opencom.vaadin.flow.component.dialog.Dialog open()Opens the background task dialog.
 
-