Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Attributes
netscape.javascript.JSRunnable Class Reference

Runs a JavaScript object with a run() method in a separate thread. More...

List of all members.

Public Member Functions

 JSRunnable (JSObject runnable)
void run ()

Private Attributes

JSObject runnable

Detailed Description

Runs a JavaScript object with a run() method in a separate thread.

Definition at line 45 of file JSRunnable.java.


Constructor & Destructor Documentation

Definition at line 48 of file JSRunnable.java.

                                            {
              this.runnable = runnable;
              synchronized(this) {
                     new Thread(this).start();
                     try {
                            this.wait();
                     } catch (InterruptedException ie) {
                     }
              }
       }

Here is the call graph for this function:


Member Function Documentation

Definition at line 59 of file JSRunnable.java.

                         {
              try {
                     runnable.call("run", null);
                     synchronized(this) {
                            notifyAll();
                     }
              } catch (Throwable t) {
                     System.err.println(t);
                     t.printStackTrace(System.err);
              }
       }

Here is the call graph for this function:


Member Data Documentation

Definition at line 46 of file JSRunnable.java.


The documentation for this class was generated from the following file: