com.ibm.dse.desktop
Class DesktopThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--com.ibm.dse.desktop.DesktopThread

public class DesktopThread
extends java.lang.Thread

This class implements a Thread that controlls any java application launched from the Desktop.


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DesktopThread()
          This constructor creates a DesktopThread object.
DesktopThread(java.lang.Runnable target)
          This constructor creates a DesktopThread object.
DesktopThread(java.lang.Runnable target, java.lang.String name)
          This constructor creates a DesktopThread object.
DesktopThread(java.lang.String name)
          This constructor creates a DesktopThread object.
DesktopThread(java.lang.ThreadGroup group, java.lang.Runnable target)
          This constructor creates a DesktopThread object.
DesktopThread(java.lang.ThreadGroup group, java.lang.Runnable target, java.lang.String name)
          This constructor creates a DesktopThread object.
DesktopThread(java.lang.ThreadGroup group, java.lang.String name)
          This constructor creates a DesktopThread object.
 
Method Summary
 java.lang.String[] getParameters()
          Returns the value of the parameters property.
 void run()
          This method calls the main method of the class passing the parameters indicated at the parameters attribute.
 void setErrorMessage(java.lang.String message)
          Sets the value of the message when an error launching the ExternalTask occurs
 void setParameters(java.lang.String param)
          Sets the value of the parameters property.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, 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

DesktopThread

public DesktopThread()
This constructor creates a DesktopThread object.

DesktopThread

public DesktopThread(java.lang.Runnable target)
This constructor creates a DesktopThread object.
Parameters:
target - Runnable The target element object.

DesktopThread

public DesktopThread(java.lang.Runnable target,
                     java.lang.String name)
This constructor creates a DesktopThread object.
Parameters:
target - java.lang.Runnable
name - java.lang.String

DesktopThread

public DesktopThread(java.lang.String name)
This constructor creates a DesktopThread object.
Parameters:
name - java.lang.String

DesktopThread

public DesktopThread(java.lang.ThreadGroup group,
                     java.lang.Runnable target)
This constructor creates a DesktopThread object.
Parameters:
group - java.lang.ThreadGroup
target - java.lang.Runnable

DesktopThread

public DesktopThread(java.lang.ThreadGroup group,
                     java.lang.Runnable target,
                     java.lang.String name)
This constructor creates a DesktopThread object.
Parameters:
group - java.lang.ThreadGroup
target - java.lang.Runnable
name - java.lang.String

DesktopThread

public DesktopThread(java.lang.ThreadGroup group,
                     java.lang.String name)
This constructor creates a DesktopThread object.
Parameters:
group - java.lang.ThreadGroup
name - java.lang.String
Method Detail

getParameters

public java.lang.String[] getParameters()
Returns the value of the parameters property.
Returns:
String[]- The current value of parameters.

run

public void run()
This method calls the main method of the class passing the parameters indicated at the parameters attribute.
Overrides:
run in class java.lang.Thread

setErrorMessage

public void setErrorMessage(java.lang.String message)
Sets the value of the message when an error launching the ExternalTask occurs
Parameters:
String - message

setParameters

public void setParameters(java.lang.String param)
Sets the value of the parameters property.
Parameters:
param - String The new value of the property.