private void showWaitMess(Frame window){
final MessageBox box = MessageBox.wait("等待", "正在查询数据,请稍后...", "查询中...");
final Element frame = window.getElement();
final Timer t = new Timer() {
@Override
public void run() {
if (ready(frame)) {
this.cancel();
box.close();
}
}
};
t.scheduleRepeating(100);
}
private native boolean ready(Element frame)/*-{
return frame.contentWindow.document.readyState=="complete";
}-*/;
没有评论:
发表评论