|
Sweet Home 3D 3.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.eteks.sweethome3d.viewcontroller.ThreadedTaskController
public class ThreadedTaskController
A MVC controller used to execute a particular task in a separated thread.
| Nested Class Summary | |
|---|---|
static interface |
ThreadedTaskController.ExceptionHandler
Handles exception that may happen during the execution of a threaded task. |
| Constructor Summary | |
|---|---|
ThreadedTaskController(Callable<Void> threadedTask,
String taskMessage,
ThreadedTaskController.ExceptionHandler exceptionHandler,
UserPreferences preferences,
ViewFactory viewFactory)
Creates a controller that will execute in a separated thread the given task. |
|
| Method Summary | |
|---|---|
void |
cancelTask()
Cancels the threaded task if it's running. |
void |
executeTask(View executingView)
Executes in a separated thread the task given in constructor. |
ThreadedTaskView |
getView()
Returns the view controlled by this controller. |
boolean |
isTaskRunning()
Returns true if the threaded task is running. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadedTaskController(Callable<Void> threadedTask,
String taskMessage,
ThreadedTaskController.ExceptionHandler exceptionHandler,
UserPreferences preferences,
ViewFactory viewFactory)
Thread methods that the user may provoke
when he wants to cancel a threaded task.
| Method Detail |
|---|
public ThreadedTaskView getView()
getView in interface Controllerpublic void executeTask(View executingView)
public void cancelTask()
public boolean isTaskRunning()
true if the threaded task is running.
|
Sweet Home 3D 3.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
![]() |
© Copyrights 2006-2011 eTeks - All rights reserved
Distributed under GNU General Public License |