Skip navigation links
A B C D E F G I M N O P R S T 

A

addDoneCallback(Consumer<SwingTask<T, V>>) - Method in class de.javagl.swing.tasks.SwingTask
Add the given callback to be called on the Event Dispatch Thread, when this task is SwingTask.done()
addExecutorObserver(ExecutorObserver) - Method in class de.javagl.swing.tasks.executors.ObservableExecutorService
Add the given ExecutorObserver to be informed about the progress of the task execution.
addListSelectionListener(ListSelectionListener) - Method in class de.javagl.swing.tasks.executors.ObservableExecutorPanel
Add the given listener to be informed about selections in the list that displays the TaskViews
addProcessCallback(Consumer<List<V>>) - Method in class de.javagl.swing.tasks.SwingTask
Add the given callback to be called on the Event Dispatch Thread, receiving a list of intermediate results that have been passed to the SwingTask.publish(Object...) method.
addProgressListener(ProgressListener) - Method in class de.javagl.swing.tasks.executors.GenericProgressTask
 
addProgressListener(ProgressListener) - Method in interface de.javagl.swing.tasks.executors.ProgressTask
Add the given ProgressListener to be informed about changes in this task.
addTaskRunnerListener(TaskRunnerListener) - Method in class de.javagl.swing.tasks.runner.TaskRunner
Add the given TaskRunnerListener to be informed about the state of this runner
afterExecute(Runnable, Throwable) - Method in interface de.javagl.swing.tasks.executors.ExecutorObserver
Will be called after the given task was executed
afterExecute(Runnable, Throwable) - Method in class de.javagl.swing.tasks.executors.ObservableExecutorService
 

B

beforeExecute(Thread, Runnable) - Method in interface de.javagl.swing.tasks.executors.ExecutorObserver
Will be called before the given thread executes the given task.
beforeExecute(Thread, Runnable) - Method in class de.javagl.swing.tasks.executors.ObservableExecutorService
 
build() - Method in class de.javagl.swing.tasks.SwingTaskExecutorBuilder
Build the SwingTaskExecutor based on the current configuration of this builder

C

call() - Method in class de.javagl.swing.tasks.executors.GenericProgressTask
 
cancel(boolean) - Method in class de.javagl.swing.tasks.SwingTask
 
create(SwingTask<T, ?>) - Static method in class de.javagl.swing.tasks.SwingTaskExecutors
create(Supplier<T>) - Static method in class de.javagl.swing.tasks.SwingTaskExecutors
create(Supplier<T>, Consumer<? super T>) - Static method in class de.javagl.swing.tasks.SwingTaskExecutors
create(SwingTaskViewConfig) - Method in interface de.javagl.swing.tasks.SwingTaskViewFactory
Creates a new SwingTaskView based on the given SwingTaskViewConfig.
create(SwingTaskViewConfig) - Static method in class de.javagl.swing.tasks.SwingTaskViews
Create a default SwingTaskView with the given configuration.
create(SwingTaskViewConfig, JComponent) - Static method in class de.javagl.swing.tasks.SwingTaskViews
Create a default SwingTaskView with the given configuration and accessory component.
create(SwingTaskViewConfig, JComponent, boolean) - Static method in class de.javagl.swing.tasks.SwingTaskViews
Create a default SwingTaskView with the given configuration and accessory component.
createBasic() - Static method in class de.javagl.swing.tasks.executors.TaskViewListCellRenderers
Creates a default list cell renderer that displays basic information about a TaskView
createDefault() - Static method in class de.javagl.swing.tasks.executors.TaskViewHandlers
Creates a TaskViewHandler that shows basic information about the execution status of tasks, with unspecified (but sensible) messages and color coding.
createDefault(boolean) - Static method in class de.javagl.swing.tasks.executors.TaskViewHandlers
Creates a TaskViewHandler that shows basic information about the execution status of tasks, with unspecified (but sensible) messages and color coding, which will remove finished tasks from the list depending on the given flag.
createSimple(Runnable) - Static method in class de.javagl.swing.tasks.SwingTaskExecutors
createWithProgressBar() - Static method in class de.javagl.swing.tasks.executors.TaskViewListCellRenderers
Creates a list cell renderer that displays basic information about a TaskView, and shows a small progress bar that indicates the progress of the task.

D

de.javagl.swing.tasks - package de.javagl.swing.tasks
Classes related to the asynchronous execution of long-running tasks in Swing.
de.javagl.swing.tasks.executors - package de.javagl.swing.tasks.executors
Classes for observing the status of tasks that are executed in an executor service.
de.javagl.swing.tasks.runner - package de.javagl.swing.tasks.runner
 
doInBackground() - Method in class de.javagl.swing.tasks.SwingTask
The method that may be overridden by implementors in order to perform the work in the background thread
done() - Method in class de.javagl.swing.tasks.SwingTask
This method is executed on the Event Dispatch Thread after the SwingTask.doInBackground() method is finished.

E

execute(Runnable) - Method in class de.javagl.swing.tasks.executors.ObservableExecutorService
 
execute() - Method in class de.javagl.swing.tasks.SwingTask
Executes this task.
execute() - Method in class de.javagl.swing.tasks.SwingTaskExecutor
Executes the SwingTask.
ExecutorObserver - Interface in de.javagl.swing.tasks.executors
Interface for classes that may be informed about the execution status of tasks in an executor that was created with the ObservableExecutors class.

F

finished(boolean, Throwable) - Method in interface de.javagl.swing.tasks.runner.Task
Will be called when the task is finished.
finished() - Method in class de.javagl.swing.tasks.runner.TaskRunnerAdapter
 
finished() - Method in interface de.javagl.swing.tasks.runner.TaskRunnerListener
Will be called after the TaskRunner has finished executing the Task

G

GenericProgressTask<T> - Class in de.javagl.swing.tasks.executors
Implementation of a ProgressTask that also implements the Callable interface, and delegates its work to another Callable.
GenericProgressTask(String) - Constructor for class de.javagl.swing.tasks.executors.GenericProgressTask
Creates a new task with the given description.
get() - Method in class de.javagl.swing.tasks.SwingTask
 
get(long, TimeUnit) - Method in class de.javagl.swing.tasks.SwingTask
 
getDescription() - Method in class de.javagl.swing.tasks.executors.GenericProgressTask
 
getDescription() - Method in interface de.javagl.swing.tasks.executors.ProgressTask
Returns the description of this task.
getDispatchingProgressListener() - Method in class de.javagl.swing.tasks.executors.GenericProgressTask
Returns a ProgressListener that may be informed about changes in the progress of the callable that was given to this task.
getForegroundColor() - Method in class de.javagl.swing.tasks.executors.TaskView
Returns the foreground color of this task view, or null if no foreground color has been set
getInnerTask(Runnable, Class<T>) - Static method in class de.javagl.swing.tasks.executors.ObservableExecutors
Utility method to obtain the task that may be wrapped in the given task.
getParentComponent() - Method in interface de.javagl.swing.tasks.SwingTaskViewConfig
Returns the optional parent component that should be used for the SwingTaskView
getParentWindow() - Method in interface de.javagl.swing.tasks.SwingTaskViewConfig
Returns the optional parent window that should be used for the SwingTaskView
getPauseAction() - Method in class de.javagl.swing.tasks.runner.TaskRunnerController
Returns the action to pause the TaskRunner
getProgress() - Method in class de.javagl.swing.tasks.executors.TaskView
Returns the progress of the task computation.
getProgressHandler() - Method in class de.javagl.swing.tasks.SwingTask
Returns the ProgressHandler that may be used to inform this task about the current progress during the execution of the SwingTask.doInBackground() method.
getSingleStepAction() - Method in class de.javagl.swing.tasks.runner.TaskRunnerController
Returns the action to perform a single the step in the TaskRunner
getStartAction() - Method in class de.javagl.swing.tasks.runner.TaskRunnerController
Returns the action to start the TaskRunner
getStopAction() - Method in class de.javagl.swing.tasks.runner.TaskRunnerController
Returns the action to stop the TaskRunner
getSwingTask() - Method in interface de.javagl.swing.tasks.SwingTaskViewConfig
Returns the SwingTask that is shown in the SwingTaskView
getTaskRunner() - Method in class de.javagl.swing.tasks.runner.TaskRunnerController
Returns the current TaskRunner.
getTaskRunner() - Method in class de.javagl.swing.tasks.runner.TaskRunnerControlPanel
Returns the current TaskRunner.
getText() - Method in class de.javagl.swing.tasks.executors.TaskView
Returns the text that is displayed in this task view
getThrowable() - Method in class de.javagl.swing.tasks.executors.TaskView
Returns the throwable that was caused by the task, or null if no throwable is associated with the task
getTitle() - Method in interface de.javagl.swing.tasks.SwingTaskViewConfig
Returns the title of the SwingTaskView

I

isCancelable() - Method in interface de.javagl.swing.tasks.SwingTaskViewConfig
Returns whether the task is cancelable
isCancelled() - Method in class de.javagl.swing.tasks.SwingTask
 
isDone() - Method in interface de.javagl.swing.tasks.runner.Task
Implementors should return here whether this task is done, and the run() method should no longer be called
isDone() - Method in class de.javagl.swing.tasks.SwingTask
 
isModal() - Method in interface de.javagl.swing.tasks.SwingTaskViewConfig
Returns whether the task is modal

M

messageChanged(String) - Method in interface de.javagl.swing.tasks.ProgressListener
Will be called when the progress message changed

N

newCachedThreadPool() - Static method in class de.javagl.swing.tasks.executors.ObservableExecutors
Create a new ObservableExecutorService with a cached thread pool.
newFixedThreadPool(int) - Static method in class de.javagl.swing.tasks.executors.ObservableExecutors
Create a new ObservableExecutorService with the given fixed pool size.
newTaskFor(Callable<V>) - Method in class de.javagl.swing.tasks.executors.ObservableExecutorService
 
newTaskFor(Runnable, V) - Method in class de.javagl.swing.tasks.executors.ObservableExecutorService
 

O

ObservableExecutorCompletionService<V> - Class in de.javagl.swing.tasks.executors
A CompletionService that may be wrapped around an ObservableExecutorService, and make sure that the tasks that are actually submitted are ObservableTask instances.
ObservableExecutorCompletionService(ObservableExecutorService) - Constructor for class de.javagl.swing.tasks.executors.ObservableExecutorCompletionService
Creates a new instance that executes the tasks using the given ObservableExecutorService
ObservableExecutorCompletionService(ObservableExecutorService, BlockingQueue<Future<V>>) - Constructor for class de.javagl.swing.tasks.executors.ObservableExecutorCompletionService
Creates a new instance that executes the tasks using the given ObservableExecutorService, and puts the futures of the completed tasks into the given (unbounded) queue
ObservableExecutorPanel - Class in de.javagl.swing.tasks.executors
A panel that displays a list of tasks that are currently executed in an ObservableExecutorService.
ObservableExecutorPanel() - Constructor for class de.javagl.swing.tasks.executors.ObservableExecutorPanel
Creates a new, empty observable executor panel
ObservableExecutors - Class in de.javagl.swing.tasks.executors
Utility methods related to observable executors
ObservableExecutorService - Class in de.javagl.swing.tasks.executors
An executor service that may notify ExecutorObserver instances about the progress of processing the submitted tasks.

P

pauseChanged(boolean) - Method in class de.javagl.swing.tasks.runner.TaskRunnerAdapter
 
pauseChanged(boolean) - Method in interface de.javagl.swing.tasks.runner.TaskRunnerListener
Will be called when the paused-state of the TaskRunner changed
poll() - Method in class de.javagl.swing.tasks.executors.ObservableExecutorCompletionService
 
poll(long, TimeUnit) - Method in class de.javagl.swing.tasks.executors.ObservableExecutorCompletionService
 
process(List<V>) - Method in class de.javagl.swing.tasks.SwingTask
Receives data chunks from the publish method on the Event Dispatch Thread.
progressChanged(double) - Method in interface de.javagl.swing.tasks.ProgressListener
Will be called when the progress changed.
ProgressHandler - Interface in de.javagl.swing.tasks
Interface for classes that can pass progress information from implementors to a SwingTask.
ProgressListener - Interface in de.javagl.swing.tasks
Interface for classes that can receive progress information.
ProgressTask - Interface in de.javagl.swing.tasks.executors
Interface for tasks that provide progress information that may be shown in a UI.
publish(V...) - Method in class de.javagl.swing.tasks.SwingTask
Publishes the given data chunks.

R

remove() - Method in class de.javagl.swing.tasks.executors.TaskView
Cause this task view to be removed from the list that displayed it
removeDoneCallback(Consumer<SwingTask<T, V>>) - Method in class de.javagl.swing.tasks.SwingTask
Remove the given callback
removeExecutorObserver(ExecutorObserver) - Method in class de.javagl.swing.tasks.executors.ObservableExecutorService
Remove the given ExecutorObserver
removeListSelectionListener(ListSelectionListener) - Method in class de.javagl.swing.tasks.executors.ObservableExecutorPanel
Remove the given listener to from the list that displays the TaskViews
removeProcessCallback(Consumer<List<V>>) - Method in class de.javagl.swing.tasks.SwingTask
Remove the given callback
removeProgressListener(ProgressListener) - Method in class de.javagl.swing.tasks.executors.GenericProgressTask
 
removeProgressListener(ProgressListener) - Method in interface de.javagl.swing.tasks.executors.ProgressTask
Remove the given ProgressListener to no longer be informed about changes in this task.
removeTaskRunnerListener(TaskRunnerListener) - Method in class de.javagl.swing.tasks.runner.TaskRunner
Remove the given TaskRunnerListener
run() - Method in interface de.javagl.swing.tasks.runner.Task
Will be called repeatedly to actually run the task
run() - Method in class de.javagl.swing.tasks.SwingTask
 

S

scheduled(Runnable) - Method in interface de.javagl.swing.tasks.executors.ExecutorObserver
Will be called when the given task was scheduled for execution in the executor service.
setCallable(Callable<T>) - Method in class de.javagl.swing.tasks.executors.GenericProgressTask
Set the callable that should be executed by this task
setCancelable(boolean) - Method in class de.javagl.swing.tasks.SwingTaskExecutorBuilder
Set whether the SwingTask should be cancelable, and the SwingTaskView should contain a button for canceling the task
setCellRenderer(ListCellRenderer<? super TaskView>) - Method in class de.javagl.swing.tasks.executors.ObservableExecutorPanel
Set the cell renderer for the list that displays the TaskView instances for the tasks that have been submitted to the ObservableExecutorService that is currently displayed in this panel
setDialogUncaughtExceptionHandler() - Method in class de.javagl.swing.tasks.SwingTaskExecutorBuilder
Set a handler for potential uncaught exceptions that happen during the execution of the SwingTask.
setForegroundColor(Color) - Method in class de.javagl.swing.tasks.executors.TaskView
Set the foreground (text) color of this task view
setMessage(String) - Method in interface de.javagl.swing.tasks.ProgressHandler
Set the given progress message
setMessage(String) - Method in class de.javagl.swing.tasks.SwingTask
Set the current status message.
setMessage(String) - Method in interface de.javagl.swing.tasks.SwingTaskView
Set the message that should be displayed in this view
setMillisToDecideToPopup(int) - Method in class de.javagl.swing.tasks.SwingTaskExecutorBuilder
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
setMillisToPopup(int) - Method in class de.javagl.swing.tasks.SwingTaskExecutorBuilder
Set the number of milliseconds that the task has to take so that a SwingTaskView will be shown.
setModal(boolean) - Method in class de.javagl.swing.tasks.SwingTaskExecutorBuilder
Set whether the SwingTaskView that may be shown should be modal
setObservableExecutorService(ObservableExecutorService) - Method in class de.javagl.swing.tasks.executors.ObservableExecutorPanel
Set the ObservableExecutorService that should be displayed in this panel
setParentComponent(Component) - Method in class de.javagl.swing.tasks.SwingTaskExecutorBuilder
Set the parent component for the SwingTaskView.
setParentWindow(Window) - Method in class de.javagl.swing.tasks.SwingTaskExecutorBuilder
Set the parent window for the SwingTaskView that may be shown.
setProgress(double) - Method in class de.javagl.swing.tasks.executors.TaskView
Set the progress of the task computation.
setProgress(double) - Method in interface de.javagl.swing.tasks.ProgressHandler
Set the given progress.
setProgress(double) - Method in class de.javagl.swing.tasks.SwingTask
Set the current progress.
setProgress(double) - Method in interface de.javagl.swing.tasks.SwingTaskView
Set the current progress of the SwingTask.
setSwingTaskViewFactory(SwingTaskViewFactory) - Method in class de.javagl.swing.tasks.SwingTaskExecutorBuilder
Set the factory that will be called to create the SwingTaskView that will be displayed while the task is running.
setTaskRunner(TaskRunner) - Method in class de.javagl.swing.tasks.runner.TaskRunnerController
Set the TaskRunner that is controlled with this panel
setTaskRunner(TaskRunner) - Method in class de.javagl.swing.tasks.runner.TaskRunnerControlPanel
Set the TaskRunner that is controlled with this panel
setTaskViewHandler(TaskViewHandler) - Method in class de.javagl.swing.tasks.executors.ObservableExecutorPanel
Set the TaskViewHandler that may be used to configure the appearance of the TaskView instances that are displayed in the list for each task that has been submitted to the ObservableExecutorService
setText(String) - Method in class de.javagl.swing.tasks.executors.TaskView
Set the text that should be displayed in this task view
setThrowable(Throwable) - Method in class de.javagl.swing.tasks.executors.TaskView
Set the throwable that may have been caused by the task
setTitle(String) - Method in class de.javagl.swing.tasks.SwingTaskExecutorBuilder
Set the title of the SwingTaskView that may be shown
setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler) - Method in class de.javagl.swing.tasks.SwingTaskExecutorBuilder
Set the handler that should be assigned to the SwingTask in order to handle potential uncaught exceptions that happen during the execution
show() - Method in interface de.javagl.swing.tasks.SwingTaskView
Will be called when the task was started and the decision to show the task view was made.
started() - Method in interface de.javagl.swing.tasks.runner.Task
Will be called before the task is run for the first time
starting() - Method in class de.javagl.swing.tasks.runner.TaskRunnerAdapter
 
starting() - Method in interface de.javagl.swing.tasks.runner.TaskRunnerListener
Will be called immediately before the TaskRunner starts the Task
submit(Callable<V>) - Method in class de.javagl.swing.tasks.executors.ObservableExecutorCompletionService
 
submit(Runnable, V) - Method in class de.javagl.swing.tasks.executors.ObservableExecutorCompletionService
 
SwingTask<T,V> - Class in de.javagl.swing.tasks
A background task for Swing.
SwingTask() - Constructor for class de.javagl.swing.tasks.SwingTask
Creates a new swing task with a default status message
SwingTask(String) - Constructor for class de.javagl.swing.tasks.SwingTask
Creates a new swing task with the given status message
SwingTaskExecutor<T> - Class in de.javagl.swing.tasks
An executor for a SwingTask.
SwingTaskExecutorBuilder<T> - Class in de.javagl.swing.tasks
A builder for SwingTaskExecutor instances, returned by SwingTaskExecutors.create(SwingTask).
SwingTaskExecutors - Class in de.javagl.swing.tasks
Methods to create SwingTaskExecutor instances
SwingTaskView - Interface in de.javagl.swing.tasks
Interface for the communication with a view for a SwingTask.
SwingTaskViewConfig - Interface in de.javagl.swing.tasks
Interface describing the configuration of a SwingTaskView.
SwingTaskViewFactory - Interface in de.javagl.swing.tasks
Interface for classes that can create a SwingTaskView
SwingTaskViews - Class in de.javagl.swing.tasks
Methods to create SwingTaskView instances.

T

take() - Method in class de.javagl.swing.tasks.executors.ObservableExecutorCompletionService
 
Task - Interface in de.javagl.swing.tasks.runner
Interface for a task that is executed by a TaskRunner
taskFinished(Throwable) - Method in interface de.javagl.swing.tasks.SwingTaskView
Will be called when the task finished.
TaskRunner - Class in de.javagl.swing.tasks.runner
A runner for a Tasks.
TaskRunner(Task) - Constructor for class de.javagl.swing.tasks.runner.TaskRunner
Creates a new task runner that will run the given Task
TaskRunnerAdapter - Class in de.javagl.swing.tasks.runner
Abstract base implementation of a TaskRunnerListener.
TaskRunnerAdapter() - Constructor for class de.javagl.swing.tasks.runner.TaskRunnerAdapter
 
TaskRunnerController - Class in de.javagl.swing.tasks.runner
A controller for a TaskRunner, offering actions to start and stop the TaskRunner, and to pause it or perform single steps.
TaskRunnerController() - Constructor for class de.javagl.swing.tasks.runner.TaskRunnerController
Default constructor
TaskRunnerControlPanel - Class in de.javagl.swing.tasks.runner
The panel containing the GUI components for controlling a TaskRunner.
TaskRunnerControlPanel() - Constructor for class de.javagl.swing.tasks.runner.TaskRunnerControlPanel
Default constructor
TaskRunnerListener - Interface in de.javagl.swing.tasks.runner
Interface for classes that want to be informed about the state of a TaskRunner
tasksFinished() - Method in interface de.javagl.swing.tasks.executors.ExecutorObserver
Will be called after all tasks have been finished.
TaskView - Class in de.javagl.swing.tasks.executors
A class representing the view for a task that is executed in an ObservableExecutorService.
TaskViewHandlers - Class in de.javagl.swing.tasks.executors
Methods to create TaskViewHandler instances
TaskViewListCellRenderers - Class in de.javagl.swing.tasks.executors
Methods to create list cell renderers that show a TaskView
toString() - Method in class de.javagl.swing.tasks.executors.GenericProgressTask
 
A B C D E F G I M N O P R S T 
Skip navigation links

Copyright © 2016. All rights reserved.