< prev index next >
modules/javafx.web/src/main/java/javafx/scene/web/WebEngine.java
Print this page
rev 10443 : [mq]: doc-8177566-trampoline
@@ -295,10 +295,19 @@
* form <code>"<var>method_name</var>(<var>param_type1</var>,...,<var>param_typen</var>)"</code>. Typically you'd write the JavaScript expression:
* <pre>
* <code><var>receiver</var>["<var>method_name</var>(<var>param_type1</var>,...,<var>param_typeN</var>)"](<var>arg1</var>,...,<var>argN</var>)</code>
* </pre>
*
+ * <p>
+ * The Java class and method must both be declared public. If the class is in a
+ * named module, then the module must {@link Module#isOpen(String,Module) open}
+ * the containing package to at least the {@code javafx.web} module
+ * (or {@link Module#isExported(String) export} the containing package
+ * unconditionally). Otherwise, the method will not be called, and no error or
+ * warning will be produced.
+ * </p>
+ *
* <p><b>Threading</b></p>
* <p>{@code WebEngine} objects must be created and accessed solely from the
* JavaFX Application thread. This rule also applies to any DOM and JavaScript
* objects obtained from the {@code WebEngine} object.
* @since JavaFX 2.0
< prev index next >