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 閱讀(312) 評論(0)  編輯  收藏 所屬分類: jsgwt

          公告

          希望有一天

          我能用鼠標雙擊我的錢包

          然后選中一張100元

          按住“ctrl+c”

          接著不停的“ctrl+v”

          嘻嘻~~~笑醒~~~



          導航

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

          統計

          常用鏈接

          留言簿(6)

          隨筆分類(102)

          隨筆檔案(398)

          文章分類

          文章檔案(10)

          有趣網絡

          搜索

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 沾益县| 南川市| 明光市| 滨州市| 海门市| 鄄城县| 桃园县| 静海县| 浦县| 北辰区| 房产| 昌乐县| 高密市| 漳州市| 诸城市| 南宁市| 永仁县| 湘潭市| 孟津县| 上栗县| 兴业县| 嘉定区| 新泰市| 嘉善县| 清水县| 南川市| 扬中市| 深水埗区| 阿图什市| 荆门市| 安国市| 大冶市| 靖宇县| 兴山县| 靖远县| 根河市| 连平县| 庆城县| 张家港市| 大余县| 汕尾市|