LiveConnect Reference

  • Revision slug: LiveConnect/LiveConnect_Reference
  • Revision title: LiveConnect Reference
  • Revision id: 412893
  • Created:
  • Creator: Nickolay
  • Is current revision? Yes
  • Comment

Revision Content

This section documents the Java classes used for LiveConnect, along with their constructors and methods.

JavaScript-to-Java

These classes allow a Java object to access JavaScript code.

JSException
The public class JSException extends RuntimeException, and is thrown when JavaScript returns an error.
JSObject
The public class JSObject extends Object. JavaScript objects are wrapped in an instance of the class JSObject and passed to Java, allowing Java to manipulate JavaScript objects.

Java-to-JavaScript

{{ languages( { "es": "es/Referencia_de_JavaScript_1.5/LiveConnect", "pl": "pl/Dokumentacja_j\u0119zyka_JavaScript_1.5/LiveConnect" } ) }}

Revision Source

<p>This section documents the Java classes used for <a href="/en-US/docs/LiveConnect">LiveConnect</a>, along with their constructors and methods.</p>
<h2 id="JavaScript-to-Java">JavaScript-to-Java</h2>
<p>These classes allow a Java object to access JavaScript code.</p>
<dl>
  <dt>
    <a href="/en/LiveConnect/LiveConnect_Reference/JSException" title="en/LiveConnect/LiveConnect_Reference/JSException">JSException</a></dt>
  <dd>
    The public class <code>JSException</code> extends <code>RuntimeException</code>, and is thrown when JavaScript returns an error.</dd>
  <dt>
    <a href="/en/LiveConnect/LiveConnect_Reference/JSObject" title="en/LiveConnect/LiveConnect_Reference/JSObject">JSObject</a></dt>
  <dd>
    The public class <code>JSObject</code> extends <code>Object</code>. JavaScript objects are wrapped in an instance of the class <code>JSObject</code> and passed to Java, allowing Java to manipulate JavaScript objects.</dd>
</dl>
<h2 id="Java-to-JavaScript">Java-to-JavaScript</h2>
<ul>
  <li>Global objects {{obsolete_inline}}
    <ul>
      <li><a href="/en-US/docs/LiveConnect_Reference/java">java</a></li>
      <li><a href="/en-US/docs/LiveConnect_Reference/Packages">Packages</a></li>
      <li><a href="/en-US/docs/LiveConnect_Reference/netscape">netscape</a></li>
      <li><a href="/en-US/docs/LiveConnect_Reference/sun">sun</a></li>
    </ul>
  </li>
  <li><a href="/en-US/docs/LiveConnect_Reference/JavaArray">JavaArray</a></li>
  <li><a href="/en-US/docs/LiveConnect_Reference/JavaClass">JavaClass</a></li>
  <li><a href="/en-US/docs/LiveConnect_Reference/JavaObject">JavaObject</a></li>
  <li><a href="/en-US/docs/LiveConnect_Reference/JavaPackage">JavaPackage</a></li>
</ul>
<p>{{ languages( { "es": "es/Referencia_de_JavaScript_1.5/LiveConnect", "pl": "pl/Dokumentacja_j\u0119zyka_JavaScript_1.5/LiveConnect" } ) }}</p>
Revert to this revision