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 SummaryModifier and TypeMethodDescriptionbuild()Builds the dialog.getTotal()booleanbooleanshow()Shows the dialog.withCancelAllowed(boolean cancelAllowed) Determines whether the dialog can be closed.withShowProgressInPercentage(boolean percentProgress) Methods inherited from interface io.jmix.ui.Dialogs.HasCaptiongetCaption, withCaptionMethods inherited from interface io.jmix.ui.Dialogs.HasMessagegetMessage, withMessage
- 
Method Details- 
withCancelAllowedDetermines whether the dialog can be closed. False by default.- Parameters:
- cancelAllowed- true if dialog is closeable
- Returns:
- builder
 
- 
isCancelAllowedboolean isCancelAllowed()- Returns:
- true if the dialog can be closed
 
- 
withTotal- Parameters:
- total- amount of items to be processed by background task, use- TaskLifeCycle.publish(Object[])to notify the dialog about progress completion.
- Returns:
- builder
 
- 
getTotalNumber getTotal()- Returns:
- total
 
- 
withShowProgressInPercentage- Parameters:
- percentProgress- true if progress should be represented as percentage (rather than as raw number)
- Returns:
- builder
 
- 
isShowProgressInPercentageboolean isShowProgressInPercentage()- Returns:
- true if progress should is shown in percents
 
- 
showBackgroundWorkDialog<T,V> show()Shows the dialog.- Returns:
- background work dialog
 
- 
buildBackgroundWorkDialog<T,V> build()Builds the dialog.- Returns:
- background work dialog
 
 
-