Module is.codion.swing.common.ui
Package is.codion.swing.common.ui.dialog
Interface ProgressWorkerDialogBuilder.BuilderFactory
- Enclosing interface:
ProgressWorkerDialogBuilder<T,V>
public static interface ProgressWorkerDialogBuilder.BuilderFactory
Provides builders for a given task type.
If the task also implements the corresponding handler interface, its handler methods are automatically wired first. Additional handlers can then be added via the returned builder, and are called after the handler interface methods, in the order they were added.
- See Also:
-
Method Summary
Modifier and TypeMethodDescription<T,V> ProgressWorkerDialogBuilder <T, V> task(ProgressWorker.ProgressResultTask<T, V> task) Note, also sets the progress bar type to 'determinate'.<V> ProgressWorkerDialogBuilder<?, V> task(ProgressWorker.ProgressTask<V> task) Note, also sets the progress bar type to 'determinate'.<T> ProgressWorkerDialogBuilder<T, ?> task(ProgressWorker.ResultTask<T> task) task(ProgressWorker.Task task)
-
Method Details
-
task
- Parameters:
task- the task to run, if it implementsProgressWorker.TaskHandlerits handler methods are wired automatically- Returns:
- a new indeterminate
ProgressWorkerDialogBuilderinstance
-
task
- Type Parameters:
T- the worker result type- Parameters:
task- the task to run, if it implementsProgressWorker.ResultTaskHandlerits handler methods are wired automatically- Returns:
- a new indeterminate
ProgressWorkerDialogBuilderinstance
-
task
Note, also sets the progress bar type to 'determinate'.- Type Parameters:
V- the worker intermediate result type- Parameters:
task- the task to run, if it implementsProgressWorker.ProgressTaskHandlerits handler methods are wired automatically- Returns:
- a new determinate
ProgressWorkerDialogBuilderinstance - See Also:
-
task
Note, also sets the progress bar type to 'determinate'.- Type Parameters:
T- the worker result typeV- the worker intermediate result type- Parameters:
task- the task to run, if it implementsProgressWorker.ProgressResultTaskHandlerits handler methods are wired automatically- Returns:
- a new determinate
ProgressWorkerDialogBuilderinstance - See Also:
-