posts - 35,  comments - 6,  trackbacks - 0

          1, Drag Source
              samples:  private DropTarget dropTarget;
                              dropTarget = new DropTarget(dropControl, DND.DROP_COPY);//dropControl為drap操作的目標 對象
                             dropTarget.setTransfer(TextTransfer.getInstance());


          2, Drop Target
          3, Allowed Operation:DND.DROP_COPY, DND.DROP_MOVE, DND.DROP_LINK or DND.DROP_NONE.
          4, Transfer Types:TextTransfer,RTFTransfer,FileTransfer,HtmlTransfer.
            sample: TextTransfer transfers=TextTransfer.getInstance(); 
          5,dragOver event.feedback values
          dragOver event.feedback values Description
          DND.FEEDBACK_SELECT The item under the cursor is selected; applies to table and trees.
          DND.FEEDBACK_SCROLL The widget is scrolled up or down to allow the user to drop on items that are not currently visible; applies to tables and trees.
          DND.FEEDBACK_EXPAND The item currently under the cursor is expanded to allow the user to select a drop target from a sub item; applies to trees.
          DND.FEEDBACK_INSERT_BEFORE An insertion mark is shown before the item under the cursor; applies to trees.
          DND.FEEDBACK_INSERT_AFTER An insertion mark is shown after the item under the cursor; applies to trees.
          DND.FEEDBACK_NONE No effect is shown.

          samples: private int dropFeedback = 0;
                   dropFeedback = DND.FEEDBACK_SCROLL;
                   event.feedback = dropFeedback;
                   如果你的對象超界了,當你的鼠標在邊界上時就會自動住下滾動.

          posted on 2006-07-05 12:39 NG 閱讀(416) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          <2006年7月>
          2526272829301
          2345678
          9101112131415
          16171819202122
          23242526272829
          303112345

          常用鏈接

          留言簿(1)

          隨筆檔案(35)

          文章分類(5)

          文章檔案(2)

          新聞檔案(5)

          java link

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 台东县| 米易县| 东乡县| 泰宁县| 托克逊县| 河南省| 普定县| 澄迈县| 马公市| 高尔夫| 石泉县| 得荣县| 北流市| 惠安县| 荥阳市| 松原市| 梨树县| 香港 | 高邑县| 清流县| 七台河市| 德清县| 新绛县| 丁青县| 泰兴市| 中卫市| 株洲市| 大同县| 长顺县| 锡林浩特市| 延长县| 广丰县| 万源市| 太谷县| 南陵县| 阳朔县| 马龙县| 谢通门县| 左云县| 郎溪县| 长泰县|