NWNDialogEditorInterface
Class InterfaceThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--NWNDialogEditorInterface.InterfaceThread
All Implemented Interfaces:
Runnable

public class InterfaceThread
extends Thread

16 juil. 2003

Author:
Alexandre Brunel This class alows to create a new thread for long jobs.

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
InterfaceThread(String methodName, Object target, Object[] _args)
          Constructs a InterfaceThread object.
 
Method Summary
 Object[] getArgs()
           
 String getMethod()
           
 Object getTargetObject()
           
 void run()
           
 void setArgs(Object[] objects)
           
 void setMethod(String string)
           
 void setTargetObject(Object object)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InterfaceThread

public InterfaceThread(String methodName,
                       Object target,
                       Object[] _args)
Constructs a InterfaceThread object. The tread will run the methode methodeName on the object target.

Parameters:
target - Object on which the methode should be run.
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

getArgs

public Object[] getArgs()
Returns:
Method argument list.

getMethod

public String getMethod()
Returns:
Method name.

getTargetObject

public Object getTargetObject()
Returns:
The target object.

setArgs

public void setArgs(Object[] objects)
Parameters:
objects - The new argument list.

setMethod

public void setMethod(String string)
Parameters:
string - The new method name.

setTargetObject

public void setTargetObject(Object object)
Parameters:
object - The new target object.