| Package | Description |
|---|---|
| de.javagl.swing.tasks |
Classes related to the asynchronous execution of long-running
tasks in Swing.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> SwingTaskExecutorBuilder<T> |
SwingTaskExecutors.create(Supplier<T> supplier)
Start creating a
SwingTaskExecutor using a
SwingTaskExecutorBuilder. |
static <T> SwingTaskExecutorBuilder<T> |
SwingTaskExecutors.create(Supplier<T> supplier,
Consumer<? super T> consumer)
Start creating a
SwingTaskExecutor using a
SwingTaskExecutorBuilder. |
static <T> SwingTaskExecutorBuilder<T> |
SwingTaskExecutors.create(SwingTask<T,?> swingTask)
Start creating a
SwingTaskExecutor using a
SwingTaskExecutorBuilder. |
static SwingTaskExecutorBuilder<Void> |
SwingTaskExecutors.createSimple(Runnable runnable)
Start creating a
SwingTaskExecutor using a
SwingTaskExecutorBuilder. |
SwingTaskExecutorBuilder<T> |
SwingTaskExecutorBuilder.setCancelable(boolean cancelable)
Set whether the
SwingTask should be cancelable, and the
SwingTaskView should contain a button for canceling the task |
SwingTaskExecutorBuilder<T> |
SwingTaskExecutorBuilder.setDialogUncaughtExceptionHandler()
Set a handler for potential uncaught exceptions that happen during
the execution of the
SwingTask. |
SwingTaskExecutorBuilder<T> |
SwingTaskExecutorBuilder.setMillisToDecideToPopup(int millisToDecideToPopup)
Set the number of milliseconds that the Event Dispatch Thread
should be blocked when calling
SwingTaskExecutor.execute()
before the decision is made about whether to show a
SwingTaskView or not |
SwingTaskExecutorBuilder<T> |
SwingTaskExecutorBuilder.setMillisToPopup(int millisToPopup)
Set the number of milliseconds that the task has to take so
that a
SwingTaskView will be shown. |
SwingTaskExecutorBuilder<T> |
SwingTaskExecutorBuilder.setModal(boolean modal)
Set whether the
SwingTaskView that may be shown should be modal |
SwingTaskExecutorBuilder<T> |
SwingTaskExecutorBuilder.setParentComponent(Component parentComponent)
Set the parent component for the
SwingTaskView. |
SwingTaskExecutorBuilder<T> |
SwingTaskExecutorBuilder.setParentWindow(Window parentWindow)
Set the parent window for the
SwingTaskView that may be shown. |
SwingTaskExecutorBuilder<T> |
SwingTaskExecutorBuilder.setSwingTaskViewFactory(SwingTaskViewFactory swingTaskViewFactory)
Set the factory that will be called to create the
SwingTaskView
that will be displayed while the task is running. |
SwingTaskExecutorBuilder<T> |
SwingTaskExecutorBuilder.setTitle(String title)
Set the title of the
SwingTaskView that may be shown |
SwingTaskExecutorBuilder<T> |
SwingTaskExecutorBuilder.setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler uncaughtExceptionHandler)
Set the handler that should be assigned to the
SwingTask
in order to handle potential uncaught exceptions that happen
during the execution |
Copyright © 2016. All rights reserved.