Package io.jmix.flowui
Interface Dialogs.BackgroundTaskDialogBuilder<T extends Number,V>
- All Superinterfaces:
Dialogs.Draggable<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.Draggable<Dialogs.BackgroundTaskDialogBuilder<T,V>>, Dialogs.Resizable<Dialogs.BackgroundTaskDialogBuilder<T,V>>
Builder of background task dialog.
-
Method Summary
Modifier and TypeMethodDescriptiongetTotal()booleanbooleanvoidopen()Opens the 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.Draggable
isDraggable, withDraggableMethods inherited from interface io.jmix.flowui.Dialogs.HasHeader
getHeader, withHeaderMethods inherited from interface io.jmix.flowui.Dialogs.HasStyle
getClassName, withClassNameMethods inherited from interface io.jmix.flowui.Dialogs.HasText
getText, withTextMethods inherited from interface io.jmix.flowui.Dialogs.HasTheme
getThemeName, withThemeNameMethods inherited from interface io.jmix.flowui.Dialogs.Resizable
getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, isResizable, withMaxHeight, withMaxWidth, withMinHeight, withMinWidth, withResizable
-
Method Details
-
withCancelAllowed
Determines whether the dialog can be closed.The default value is
false.- Parameters:
cancelAllowed-trueif dialog is closeable- Returns:
- builder
-
isCancelAllowed
boolean isCancelAllowed()- Returns:
trueif the dialog can be closed
-
withTotal
Sets 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
-
getTotal
Number getTotal()- Returns:
- amount of items to be processed by background task
-
withShowProgressInPercentage
Sets whether progress should be represented as percentage (rather than as raw number).- Parameters:
percentProgress-trueto show progress in percents- Returns:
- builder
-
isShowProgressInPercentage
boolean isShowProgressInPercentage()- Returns:
trueif progress should is shown in percents
-
open
void open()Opens the dialog.
-