public class DropTargetEvent extends EventObject
DropTargetEventは、DropTargetDragEventとDropTargetDropEventの両方の基底クラスです。 これは、ドラッグ&ドロップ操作の現在の状態、特に現在のDropTargetContextをカプセル化します。 | 修飾子と型 | フィールド | 説明 |
|---|---|---|
protected DropTargetContext |
context |
この
DropTargetEventに関連付けられているDropTargetContext。 |
source| コンストラクタ | 説明 |
|---|---|
DropTargetEvent(DropTargetContext dtc) |
指定された
DropTargetContextを使用して、DropTargetEventオブジェクトを構築します。 |
| 修飾子と型 | メソッド | 説明 |
|---|---|---|
DropTargetContext |
getDropTargetContext() |
このメソッドは、この
DropTargetEventに関連付けられたDropTargetContextを返します。 |
getSource, toStringprotected DropTargetContext context
DropTargetEventに関連付けられているDropTargetContext。public DropTargetEvent(DropTargetContext dtc)
DropTargetContextを使用して、DropTargetEventオブジェクトを構築します。
dtc - DropTargetContextNullPointerException - dtcがnullに等しい場合。EventObject.getSource(), getDropTargetContext()public DropTargetContext getDropTargetContext()
DropTargetEventに関連付けられたDropTargetContextを返します。
DropTargetContext バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。