JavaTM 2 Platform
Standard Ed. 6

類別 java.awt.dnd.DragSourceEvent
的使用

使用 DragSourceEvent 的軟體套件
java.awt.dnd Drag 和 Drop 是一種直接操作動作,在許多圖形使用者介面系統中都會遇到它,它提供了一種機制,能夠在兩個與 GUI 中顯示元素邏輯相關的實體之間傳輸資訊。 
 

java.awt.dnd 中 DragSourceEvent 的使用
 

java.awt.dnd 中 DragSourceEvent 的子類別
 class DragSourceDragEvent
          通過 DragSourceContext,將 DragSourceDragEvent 從 DragSourceContextPeer 傳遞給向 DragSourceContext 及其關聯 DragSource 註冊的 DragSourceListener。
 class DragSourceDropEvent
          通過 DragSourceContext,將 DragSourceDropEvent 從 DragSourceContextPeer 傳遞給向 DragSourceContext 及其關聯 DragSource 註冊的 DragSourceListener 的 dragDropEnd 方法。
 

參數型別為 DragSourceEvent 的 java.awt.dnd 中的方法
 void DragSourceAdapter.dragExit(DragSourceEvent dse)
          鼠標的熱點離開放置點(與平臺相關)時調用該方法。
 void DragSourceContext.dragExit(DragSourceEvent dse)
          對向此 DragSourceContext 及其關聯 DragSource 註冊的 DragSourceListener 調用 dragExit,並將指定的 DragSourceEvent 傳遞給它們。
 void DragSourceListener.dragExit(DragSourceEvent dse)
          鼠標的熱點離開放置點(與平臺相關)時調用該方法。
 


JavaTM 2 Platform
Standard Ed. 6

提交錯誤或意見

版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。