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.
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 |
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.
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.