File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
sources/net.sf.j2s.java.core/src/swingjs/api/js Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,10 @@ public abstract class DOMNode {
3636
3737 public abstract DOMNode removeChild (DOMNode node );
3838
39+ public abstract void focus ();
3940 public abstract boolean hasFocus ();
40-
41+ public abstract void blur ();
42+
4143 public abstract boolean play ();
4244
4345 public abstract DOMNode removeAttribute (String attr );
@@ -278,6 +280,10 @@ public static void remove(DOMNode node) {
278280 p .removeChild (node );
279281 }
280282
283+ /**
284+ * just detaches all the nodes; doesn't remove their listeners
285+ * @param node
286+ */
281287 public static void detachAll (DOMNode node ) {
282288 /**
283289 * @j2sNative
@@ -310,4 +316,10 @@ public static DOMNode transferTo(DOMNode node, DOMNode container) {
310316 return container ;
311317 }
312318
319+ public static Component getComponentFor (DOMNode node ) {
320+ JSComponentUI ui = (JSComponentUI ) (/** @j2sNative node.ui || node["data-ui"] || node["data-component"] || node["data-textcomponent"] || */ null );
321+ return (ui == null ? null : ui .jc );
322+ }
323+
324+
313325}
You can’t perform that action at this time.
0 commit comments