edu.washington.biostr.sig.brainj3d.core.client
Class CallbackRunnable

java.lang.Object
  extended by edu.washington.biostr.sig.brainj3d.core.client.CallbackRunnable
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
ClientSyncCallbackRunnable

public abstract class CallbackRunnable
extends Object
implements Runnable

Title:

Description:

Copyright: Copyright (c) 2003

Company:

The callback runnable is used by the callback. It has a single Object for data (accessed with getData()). It is started by the Callback on a thread designated by thread This can currenlty be Callback.EVENT_THREAD or Callback.CLIENT_THREAD

Version:
1.0
Author:
Eider Moore

Constructor Summary
CallbackRunnable(int thread)
          Create a CallbackRunnable with the base as sub.
 
Method Summary
 Object getData()
           
 void setData(Object data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Runnable
run
 

Constructor Detail

CallbackRunnable

public CallbackRunnable(int thread)
Create a CallbackRunnable with the base as sub. sub performs the task that the callback is supposed to perform.

Parameters:
sub - The callback.
Method Detail

setData

public void setData(Object data)

getData

public Object getData()


Copyright © 2006 University of Washington. All Rights Reserved.