public static interface Dialogs.BackgroundWorkDialogBuilder<T extends java.lang.Number,V> extends Dialogs.HasCaption<Dialogs.BackgroundWorkDialogBuilder<T,V>>, Dialogs.HasMessage<Dialogs.BackgroundWorkDialogBuilder<T,V>>
Modifier and Type | Method and Description |
---|---|
BackgroundWorkDialog<T,V> |
build()
Builds the dialog.
|
java.lang.Number |
getTotal() |
boolean |
isCancelAllowed() |
boolean |
isShowProgressInPercentage() |
BackgroundWorkDialog<T,V> |
show()
Shows the dialog.
|
Dialogs.BackgroundWorkDialogBuilder<T,V> |
withCancelAllowed(boolean cancelAllowed)
Determines whether the dialog can be closed.
|
Dialogs.BackgroundWorkDialogBuilder<T,V> |
withShowProgressInPercentage(boolean percentProgress) |
Dialogs.BackgroundWorkDialogBuilder<T,V> |
withTotal(java.lang.Number total) |
getCaption, withCaption
getMessage, withMessage
Dialogs.BackgroundWorkDialogBuilder<T,V> withCancelAllowed(boolean cancelAllowed)
cancelAllowed
- true if dialog is closeableboolean isCancelAllowed()
Dialogs.BackgroundWorkDialogBuilder<T,V> withTotal(java.lang.Number total)
total
- amount of items to be processed by background task,
use TaskLifeCycle.publish(Object[])
to notify the dialog about progress
completion.java.lang.Number getTotal()
Dialogs.BackgroundWorkDialogBuilder<T,V> withShowProgressInPercentage(boolean percentProgress)
percentProgress
- true if progress should be represented as percentage (rather than as raw number)boolean isShowProgressInPercentage()
BackgroundWorkDialog<T,V> show()
BackgroundWorkDialog<T,V> build()