Package io.jmix.ui.sys
Class DialogsImpl.BackgroundWorkDialogBuilderImpl<T extends Number,V>
java.lang.Object
io.jmix.ui.sys.DialogsImpl.BackgroundWorkDialogBuilderImpl<T,V>
- All Implemented Interfaces:
Dialogs.BackgroundWorkDialogBuilder<T,,V> Dialogs.HasCaption<Dialogs.BackgroundWorkDialogBuilder<T,,V>> Dialogs.HasMessage<Dialogs.BackgroundWorkDialogBuilder<T,V>>
- Enclosing class:
- DialogsImpl
public class DialogsImpl.BackgroundWorkDialogBuilderImpl<T extends Number,V>
extends Object
implements Dialogs.BackgroundWorkDialogBuilder<T,V>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the dialog.getTotal()booleanbooleanshow()Shows the dialog.withCancelAllowed(boolean cancelAllowed) Determines whether the dialog can be closed.withCaption(String caption) Sets caption text.withMessage(String message) Sets message text.withShowProgressInPercentage(boolean percentProgress)
-
Field Details
-
backgroundWorkDialog
-
-
Constructor Details
-
BackgroundWorkDialogBuilderImpl
-
-
Method Details
-
withCancelAllowed
Description copied from interface:Dialogs.BackgroundWorkDialogBuilderDetermines whether the dialog can be closed. False by default.- Specified by:
withCancelAllowedin interfaceDialogs.BackgroundWorkDialogBuilder<T extends Number,V> - Parameters:
cancelAllowed- true if dialog is closeable- Returns:
- builder
-
isCancelAllowed
public boolean isCancelAllowed()- Specified by:
isCancelAllowedin interfaceDialogs.BackgroundWorkDialogBuilder<T extends Number,V> - Returns:
- true if the dialog can be closed
-
withTotal
- Specified by:
withTotalin interfaceDialogs.BackgroundWorkDialogBuilder<T extends Number,V> - Parameters:
total- amount of items to be processed by background task, useTaskLifeCycle.publish(Object[])to notify the dialog about progress completion.- Returns:
- builder
-
getTotal
- Specified by:
getTotalin interfaceDialogs.BackgroundWorkDialogBuilder<T extends Number,V> - Returns:
- total
-
withShowProgressInPercentage
public Dialogs.BackgroundWorkDialogBuilder<T,V> withShowProgressInPercentage(boolean percentProgress) - Specified by:
withShowProgressInPercentagein interfaceDialogs.BackgroundWorkDialogBuilder<T extends Number,V> - Parameters:
percentProgress- true if progress should be represented as percentage (rather than as raw number)- Returns:
- builder
-
isShowProgressInPercentage
public boolean isShowProgressInPercentage()- Specified by:
isShowProgressInPercentagein interfaceDialogs.BackgroundWorkDialogBuilder<T extends Number,V> - Returns:
- true if progress should is shown in percents
-
withCaption
Description copied from interface:Dialogs.HasCaptionSets caption text.- Specified by:
withCaptionin interfaceDialogs.HasCaption<T extends Number>- Parameters:
caption- caption text- Returns:
- builder
-
getCaption
- Specified by:
getCaptionin interfaceDialogs.HasCaption<T extends Number>- Returns:
- caption text
-
withMessage
Description copied from interface:Dialogs.HasMessageSets message text.- Specified by:
withMessagein interfaceDialogs.HasMessage<T extends Number>- Parameters:
message- message text- Returns:
- builder
-
getMessage
- Specified by:
getMessagein interfaceDialogs.HasMessage<T extends Number>- Returns:
- message text
-
show
Description copied from interface:Dialogs.BackgroundWorkDialogBuilderShows the dialog.- Specified by:
showin interfaceDialogs.BackgroundWorkDialogBuilder<T extends Number,V> - Returns:
- background work dialog
-
build
Description copied from interface:Dialogs.BackgroundWorkDialogBuilderBuilds the dialog.- Specified by:
buildin interfaceDialogs.BackgroundWorkDialogBuilder<T extends Number,V> - Returns:
- background work dialog
-