Browse Source

新接口

feature/10.0
eason 3 years ago
parent
commit
ad415c8129
  1. 10
      designer-base/src/main/java/com/fr/design/ui/ModernUIPane.java

10
designer-base/src/main/java/com/fr/design/ui/ModernUIPane.java

@ -11,6 +11,7 @@ import com.fr.web.struct.AssembleComponent;
import com.teamdev.jxbrowser.browser.callback.InjectJsCallback;
import com.teamdev.jxbrowser.chromium.Browser;
import com.teamdev.jxbrowser.chromium.BrowserType;
import com.teamdev.jxbrowser.chromium.JSObject;
import com.teamdev.jxbrowser.chromium.JSValue;
import com.teamdev.jxbrowser.chromium.events.LoadListener;
import com.teamdev.jxbrowser.chromium.events.ScriptContextAdapter;
@ -179,6 +180,15 @@ public class ModernUIPane<T> extends BasicPane {
}
}
public JSObject getEmptyJSObjectV6() {
if (browser != null) {
return browser.executeJavaScriptAndReturnValue("var __props__ = {};__props__").asObject();
}
return null;
}
public static class Builder<T> implements BuilderDiff<T> {
private ModernUIPane<T> pane;

Loading…
Cancel
Save