Browse Source

点击链接后能接着使用关闭脚本

master
vito 9 years ago
parent
commit
0c6563bf87
  1. 2
      designer/src/com/fr/design/mainframe/bbs/BBSDialog.java

2
designer/src/com/fr/design/mainframe/bbs/BBSDialog.java

@ -108,6 +108,8 @@ public class BBSDialog extends UIDialog {
@Override @Override
public void changed(ObservableValue<? extends Worker.State> observable, Worker.State oldValue, Worker.State newValue) { public void changed(ObservableValue<? extends Worker.State> observable, Worker.State oldValue, Worker.State newValue) {
if (newValue == Worker.State.SUCCEEDED){ if (newValue == Worker.State.SUCCEEDED){
JSObject obj = (JSObject) eng.executeScript("window");
obj.setMember("BBSWebBridge", BBSDialog.this);
setVisible(true); setVisible(true);
} }
} }

Loading…
Cancel
Save