Package io.jmix.ui
Interface Dialogs.BackgroundWorkDialogBuilder<T extends Number,V>
- All Superinterfaces:
Dialogs.HasCaption<Dialogs.BackgroundWorkDialogBuilder<T,
,V>> Dialogs.HasMessage<Dialogs.BackgroundWorkDialogBuilder<T,
V>>
- All Known Implementing Classes:
DialogsImpl.BackgroundWorkDialogBuilderImpl
- Enclosing interface:
- Dialogs
public static interface Dialogs.BackgroundWorkDialogBuilder<T extends Number,V>
extends Dialogs.HasCaption<Dialogs.BackgroundWorkDialogBuilder<T,V>>, Dialogs.HasMessage<Dialogs.BackgroundWorkDialogBuilder<T,V>>
Builder of background work dialog.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the dialog.getTotal()
boolean
boolean
show()
Shows the dialog.withCancelAllowed
(boolean cancelAllowed) Determines whether the dialog can be closed.withShowProgressInPercentage
(boolean percentProgress) Methods inherited from interface io.jmix.ui.Dialogs.HasCaption
getCaption, withCaption
Methods inherited from interface io.jmix.ui.Dialogs.HasMessage
getMessage, withMessage
-
Method Details
-
withCancelAllowed
Determines whether the dialog can be closed. False by default.- Parameters:
cancelAllowed
- true if dialog is closeable- Returns:
- builder
-
isCancelAllowed
boolean isCancelAllowed()- Returns:
- true if the dialog can be closed
-
withTotal
- Parameters:
total
- amount of items to be processed by background task, useTaskLifeCycle.publish(Object[])
to notify the dialog about progress completion.- Returns:
- builder
-
getTotal
Number getTotal()- Returns:
- total
-
withShowProgressInPercentage
- Parameters:
percentProgress
- true if progress should be represented as percentage (rather than as raw number)- Returns:
- builder
-
isShowProgressInPercentage
boolean isShowProgressInPercentage()- Returns:
- true if progress should is shown in percents
-
show
BackgroundWorkDialog<T,V> show()Shows the dialog.- Returns:
- background work dialog
-
build
BackgroundWorkDialog<T,V> build()Builds the dialog.- Returns:
- background work dialog
-