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

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 瓦房店市| 南丰县| 成武县| 紫阳县| 黑河市| 开阳县| 衢州市| 通许县| 阳西县| 泽州县| 五寨县| 嘉荫县| 清河县| 肇源县| 林甸县| 富川| 山东| 峨山| 唐海县| 西宁市| 顺义区| 南充市| 禹州市| 赞皇县| 安阳市| 察哈| 沾化县| 平山县| 邵东县| 西乡县| 大悟县| 天台县| 博罗县| 顺义区| 白城市| 淮北市| 凤台县| 永定县| 南丰县| 梅河口市| 开封县|