public class DialogsImpl.BackgroundWorkDialogBuilderImpl<T extends java.lang.Number,V> extends java.lang.Object implements Dialogs.BackgroundWorkDialogBuilder<T,V>
Modifier and Type | Field and Description |
---|---|
protected BackgroundWorkDialog<T,V> |
backgroundWorkDialog |
Constructor and Description |
---|
BackgroundWorkDialogBuilderImpl(FrameOwner owner,
BackgroundTask<T,V> task) |
Modifier and Type | Method and Description |
---|---|
BackgroundWorkDialog<T,V> |
build()
Builds the dialog.
|
java.lang.String |
getCaption() |
java.lang.String |
getMessage() |
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> |
withCaption(java.lang.String caption)
Sets caption text.
|
Dialogs.BackgroundWorkDialogBuilder<T,V> |
withMessage(java.lang.String message)
Sets message text.
|
Dialogs.BackgroundWorkDialogBuilder<T,V> |
withShowProgressInPercentage(boolean percentProgress) |
Dialogs.BackgroundWorkDialogBuilder<T,V> |
withTotal(java.lang.Number total) |
protected BackgroundWorkDialog<T extends java.lang.Number,V> backgroundWorkDialog
public BackgroundWorkDialogBuilderImpl(FrameOwner owner, BackgroundTask<T,V> task)
public Dialogs.BackgroundWorkDialogBuilder<T,V> withCancelAllowed(boolean cancelAllowed)
Dialogs.BackgroundWorkDialogBuilder
withCancelAllowed
in interface Dialogs.BackgroundWorkDialogBuilder<T extends java.lang.Number,V>
cancelAllowed
- true if dialog is closeablepublic boolean isCancelAllowed()
isCancelAllowed
in interface Dialogs.BackgroundWorkDialogBuilder<T extends java.lang.Number,V>
public Dialogs.BackgroundWorkDialogBuilder<T,V> withTotal(java.lang.Number total)
withTotal
in interface Dialogs.BackgroundWorkDialogBuilder<T extends java.lang.Number,V>
total
- amount of items to be processed by background task,
use TaskLifeCycle.publish(Object[])
to notify the dialog about progress
completion.public java.lang.Number getTotal()
getTotal
in interface Dialogs.BackgroundWorkDialogBuilder<T extends java.lang.Number,V>
public Dialogs.BackgroundWorkDialogBuilder<T,V> withShowProgressInPercentage(boolean percentProgress)
withShowProgressInPercentage
in interface Dialogs.BackgroundWorkDialogBuilder<T extends java.lang.Number,V>
percentProgress
- true if progress should be represented as percentage (rather than as raw number)public boolean isShowProgressInPercentage()
isShowProgressInPercentage
in interface Dialogs.BackgroundWorkDialogBuilder<T extends java.lang.Number,V>
public Dialogs.BackgroundWorkDialogBuilder<T,V> withCaption(java.lang.String caption)
Dialogs.HasCaption
withCaption
in interface Dialogs.HasCaption<Dialogs.BackgroundWorkDialogBuilder<T extends java.lang.Number,V>>
caption
- caption text@Nullable public java.lang.String getCaption()
getCaption
in interface Dialogs.HasCaption<Dialogs.BackgroundWorkDialogBuilder<T extends java.lang.Number,V>>
public Dialogs.BackgroundWorkDialogBuilder<T,V> withMessage(java.lang.String message)
Dialogs.HasMessage
withMessage
in interface Dialogs.HasMessage<Dialogs.BackgroundWorkDialogBuilder<T extends java.lang.Number,V>>
message
- message textpublic java.lang.String getMessage()
getMessage
in interface Dialogs.HasMessage<Dialogs.BackgroundWorkDialogBuilder<T extends java.lang.Number,V>>
public BackgroundWorkDialog<T,V> show()
Dialogs.BackgroundWorkDialogBuilder
show
in interface Dialogs.BackgroundWorkDialogBuilder<T extends java.lang.Number,V>
public BackgroundWorkDialog<T,V> build()
Dialogs.BackgroundWorkDialogBuilder
build
in interface Dialogs.BackgroundWorkDialogBuilder<T extends java.lang.Number,V>