IBM Branch Transformation Toolkit Javadoc

com.ibm.dse.desktop
Class DesktopThread

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.ibm.dse.desktop.DesktopThread
All Implemented Interfaces:
java.lang.Runnable

public class DesktopThread
extends java.lang.Thread

This class implements a Thread that controls any Java application launched from the Desktop.


Field Summary
 
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()
          Calls the main method of the class, passing the parameters indicated by 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, 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

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()
Calls the main method of the class, passing the parameters indicated by the parameters attribute.


setErrorMessage

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


setParameters

public void setParameters(java.lang.String param)
Sets the value of the parameters property.

Parameters:
param - String - the new value of the property

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005