Cytoscape 2.8.0 API

cytoscape.task.util
Class TaskManager

java.lang.Object
  extended by cytoscape.task.util.TaskManager

public class TaskManager
extends Object

Utility class used to execute tasks and visually monitor their progress.


Constructor Summary
TaskManager()
           
 
Method Summary
static boolean executeTask(Task task, JTaskConfig config)
          Executes the specified task in a new thread, and automatically pops open a JTask UI Component for visually monitoring the task.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskManager

public TaskManager()
Method Detail

executeTask

public static boolean executeTask(Task task,
                                  JTaskConfig config)
Executes the specified task in a new thread, and automatically pops open a JTask UI Component for visually monitoring the task.

This method will block until the JTask UI Component is disposed. Disposal will occur automatically if JTaskConfig is set to setAutoDispose(true). Otherwise, disposal will occur when the user manually closes the JTask UI Dialog Box.

Parameters:
task - the task to execute.
config - Configuration options for the JTask UI Component.
Returns:
true value indicates that task completed successfully. false value indicates that task was halted by user or task encountered an error.

Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.