|
|
|
@ -11,7 +11,6 @@ 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; |
|
|
|
@ -23,11 +22,11 @@ import com.teamdev.jxbrowser.event.Observer;
|
|
|
|
|
import javax.swing.JDialog; |
|
|
|
|
import javax.swing.SwingUtilities; |
|
|
|
|
import javax.swing.WindowConstants; |
|
|
|
|
import java.util.Map; |
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
|
import java.awt.Dimension; |
|
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
|
import java.awt.event.ActionListener; |
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @author richie |
|
|
|
@ -180,12 +179,10 @@ public class ModernUIPane<T> extends BasicPane {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public JSObject getEmptyJSObjectV6() { |
|
|
|
|
|
|
|
|
|
public JSValue executeJavaScriptAndReturnValue(String javaScript) { |
|
|
|
|
if (browser != null) { |
|
|
|
|
return browser.executeJavaScriptAndReturnValue("var __empty_props__ = {};__empty_props__").asObject(); |
|
|
|
|
return browser.executeJavaScriptAndReturnValue(javaScript); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|