com.samskivert.swing.util
Class TaskAdapter
java.lang.Object
com.samskivert.swing.util.TaskAdapter
- All Implemented Interfaces:
- Task
public class TaskAdapter
- extends Object
- implements Task
A helper class for easily instantiating Task instances.
|
Method Summary |
boolean |
abort()
Always returns false by default. |
Object |
invoke()
Always returns null by default. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TaskAdapter
public TaskAdapter()
invoke
public Object invoke()
throws Exception
- Always returns null by default. Override this method to implement
the desired functionality.
- Specified by:
invoke in interface Task
- Throws:
Exception- See Also:
Task.invoke()
abort
public boolean abort()
- Always returns false by default. Override this method to implement
the desired functionality.
- Specified by:
abort in interface Task
- See Also:
Task.abort()
Copyright © 2000-2008 Michael Bayne.
All Rights Reserved.