|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
java.lang.Objectjava.util.EventObject
java.awt.dnd.DragSourceEvent
java.awt.dnd.DragSourceDropEvent
public class DragSourceDropEvent
DragSourceDropEvent 는,DragSourceContextPeer 로부터 DragSourceContext 를 개입시켜,DragSourceContext 및 거기에 관련하는 DragSource 로 등록된 DragSourceListener 의 dragDropEnd 메소드에 보내집니다. DragSourceDropEvent 는, 조작의 오리지네이타의 상세 정보를 포함해, 조작이 완료했을 때에 최종 사용자에 적절한 피드백을 제공합니다.
| 필드의 개요 |
|---|
| 클래스 java.util. EventObject 로부터 상속된 필드 |
|---|
source |
| 생성자 의 개요 | |
|---|---|
DragSourceDropEvent (DragSourceContext dsc)
드롭이 되지 않는 드래그의 DragSourceDropEvent 를 구축합니다. |
|
DragSourceDropEvent (DragSourceContext dsc,
int action,
boolean success)
DragSourceDropEvent 를 드롭용으로 구축해, 드롭 액션을 위한 DragSourceContext, 및 드롭이 성공했는지의 여부를 나타내는 boolean 치를 지정합니다. |
|
DragSourceDropEvent (DragSourceContext dsc,
int action,
boolean success,
int x,
int y)
DragSourceDropEvent 를 드롭용으로 구축해,DragSourceContext, 드롭 액션, 드롭이 성공했는지의 여부를 나타내는 boolean 치, 및 좌표를 지정합니다. |
|
| 메소드의 개요 | |
|---|---|
int |
getDropAction ()
이 메소드는, 드롭의 대상으로 타겟으로 따라 실행되는 액션을 나타내는 int 를 돌려줍니다. |
boolean |
getDropSuccess ()
이 메소드는, 드롭이 성공했는지의 여부를 나타내는 boolean 를 돌려줍니다. |
| 클래스 java.awt.dnd. DragSourceEvent 로부터 상속된 메소드 |
|---|
getDragSourceContext , getLocation , getX , getY |
| 클래스 java.util. EventObject 로부터 상속된 메소드 |
|---|
getSource , toString |
| 클래스 java.lang. Object 로부터 상속된 메소드 |
|---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
| 생성자 의 상세 |
|---|
public DragSourceDropEvent(DragSourceContext dsc,
int action,
boolean success)
DragSourceDropEvent 를 드롭용으로 구축해, 드롭 액션을 위한 DragSourceContext, 및 드롭이 성공했는지의 여부를 나타내는 boolean 치를 지정합니다. 이 DragSourceDropEvent 의 좌표는 지정되지 않기 때문에,getLocation 는 이 이벤트에 대해서 null 를 돌려줍니다.
인수 action 는 단일의 액션을 나타내는 DnDConstants 의 어떤 것인가로 할 필요가 있습니다. 이 생성자 은 무효인 action 에 대해서, 예외를 throw 하지 않습니다.
dsc - 이 DragSourceDropEvent 에
관련지을 수 있었던 DragSourceContextaction - 드롭 액션success - 드롭이 성공했는지의 여부를 나타내는 boolean 형
IllegalArgumentException - dsc 가 null 의 경우DragSourceEvent.getLocation()
public DragSourceDropEvent(DragSourceContext dsc,
int action,
boolean success,
int x,
int y)
DragSourceDropEvent 를 드롭용으로 구축해,DragSourceContext, 드롭 액션, 드롭이 성공했는지의 여부를 나타내는 boolean 치, 및 좌표를 지정합니다.
인수 action 는 단일의 액션을 나타내는 DnDConstants 의 어떤 것인가로 할 필요가 있습니다. 이 생성자 은 무효인 action 에 대해서, 예외를 throw 하지 않습니다.
dsc - 이 DragSourceDropEvent 에
관련지을 수 있었던 DragSourceContextaction - 드롭 액션success - 드롭이 성공했는지의 여부를 나타내는 boolean 형x - 커서 위치의 수평 좌표y - 커서 위치의 수직 좌표
IllegalArgumentException - dsc 가 null 의 경우public DragSourceDropEvent(DragSourceContext dsc)
DragSourceDropEvent 를 구축합니다. 이 DragSourceDropEvent 의 좌표는 지정되지 않기 때문에,getLocation 는 이 이벤트에 대해서 null 를 돌려줍니다.
dsc - DragSourceContext
IllegalArgumentException - dsc 가 null 의 경우DragSourceEvent.getLocation() | 메소드의 상세 |
|---|
public boolean getDropSuccess()
boolean 를 돌려줍니다.
true.
드롭 타겟이 드롭을 거부했을 경우,
또는 드롭 타겟이 드롭을 받아들였지만
드롭 액션에 실패했을 경우는 falsepublic int getDropAction()
int 를 돌려줍니다.
DnDConstants.ACTION_NONE
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.