DnDConstants類

in in in

繼承關係

java.awt.dnd類 DnDConstants
java.lang.Object
java.awt.dnd.DnDConstantspublic final class DnDConstantsextends Object
此類包含了表示 Drag 和 Drop 操作所執行的操作類型的常量值。

從以下版本開始:

1.2

欄位摘要
static int ACTION_COPY 表示“複製”操作的 int 值。
static int ACTION_COPY_OR_MOVE 表示“複製”或“移動”操作的 int 值。
static int ACTION_LINK 表示“連結”操作的 int 值。
static int ACTION_MOVE 表示“移動”操作的 int 值。
static int ACTION_NONE 表示無操作的 int 值。
static int ACTION_REFERENCE 表示“引用”操作的 int 值(等同於 ACTION_LINK)。
從Object 繼承的方法

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

欄位詳細信息

ACTION_NONE

public static final int ACTION_NONE表示無操作的 int 值。 另請參見:常量欄位值

ACTION_COPY

public static final int ACTION_COPY表示“複製”操作的 int 值。 另請參見:常量欄位值

ACTION_MOVE

public static final int ACTION_MOVE表示“移動”操作的 int 值。 另請參見:常量欄位值

ACTION_COPY_OR_MOVE

public static final int ACTION_COPY_OR_MOVE表示“複製”或“移動”操作的 int 值。 另請參見:常量欄位值

ACTION_LINK

public static final int ACTION_LINK表示“連結”操作的 int 值。在很多平台(並非所有本機 DnD 平台)中都可找到動詞連結,“連結”語義的實際解釋是與平台和應用程式相關的。一般而言,該語義是“不複製或移動運算元,而是為其創建一個引用”。對“引用”含義的定義正是導致歧義的癥結所在。出於完整性考慮才提供該動詞,但是不建議將其用於邏輯上不同的應用程式之間的 DnD 操作,對操作語義的誤解會導致用戶混淆結果。
另請參見:常量欄位值

ACTION_REFERENCE

public static final int ACTION_REFERENCE表示“引用”操作的 int 值(等同於 ACTION_LINK)。 另請參見:常量欄位值

相關詞條

相關搜尋

熱門詞條

聯絡我們