Loading...

          java .net

          Gwt 中為加載中的Frame加上wait(二)


          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";
          }-*/;

          posted on 2010-05-19 10:15 閱讀(299) 評論(0)  編輯  收藏 所屬分類: js 、gwt

          公告

          希望有一天

          我能用鼠標雙擊我的錢包

          然后選中一張100元

          按住“ctrl+c”

          接著不停的“ctrl+v”

          嘻嘻~~~笑醒~~~



          導航

          <2010年5月>
          2526272829301
          2345678
          9101112131415
          16171819202122
          23242526272829
          303112345

          統計

          常用鏈接

          留言簿(6)

          隨筆分類(102)

          隨筆檔案(398)

          文章分類

          文章檔案(10)

          有趣網絡

          搜索

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 江源县| 全南县| 徐闻县| 凤山县| 凤阳县| 册亨县| 黄大仙区| 潍坊市| 穆棱市| 黄冈市| 莆田市| 天台县| 镇坪县| 靖西县| 霍山县| 勃利县| 安乡县| 赣榆县| 尖扎县| 长岛县| 丰台区| 柳江县| 宁晋县| 获嘉县| 虞城县| 萨迦县| 桦甸市| 汉阴县| 平谷区| 开鲁县| 朝阳县| 兖州市| 林周县| 江华| 定州市| 棋牌| 长白| 蓬溪县| 水城县| 连平县| 惠来县|