|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DragAndDropController
Provides the base interface necessary to support both drag and drop (D&D) operations for a component.
Method Summary | |
---|---|
int |
getAllowedDragActions()
Gets the allowed drag actions. |
int |
getAllowedDropActions()
Gets the allowed drop actions. |
java.awt.Component |
getComponent()
Gets the Component upon which drag and drop operations can occur. |
java.lang.Object |
getDragSource()
Returns the object being dragged. |
java.lang.Object |
getDropTarget()
Returns the object that would receive the dragged object if it were dropped at the current mouse position. |
boolean |
isDragging()
Returns whether a drag is in progress. |
void |
setAllowedDragActions(int actions)
Sets the allowed drag actions. |
void |
setAllowedDropActions(int actions)
Sets the allowed drop actions. |
void |
setComponent(java.awt.Component component)
Sets the Component upon which drag and drop operations can occur. |
Method Detail |
---|
int getAllowedDragActions()
DnDConstants#ACTION_COPY
,
DnDConstants#ACTION_MOVE
,
DnDConstants#ACTION_COPY_OR_MOVE
int getAllowedDropActions()
DnDConstants#ACTION_COPY
,
DnDConstants#ACTION_MOVE
,
DnDConstants#ACTION_COPY_OR_MOVE
java.awt.Component getComponent()
java.lang.Object getDragSource()
java.lang.Object getDropTarget()
boolean isDragging()
void setAllowedDragActions(int actions)
actions
- The allowed drag actionsDnDConstants#ACTION_COPY
,
DnDConstants#ACTION_MOVE
,
DnDConstants#ACTION_COPY_OR_MOVE
void setAllowedDropActions(int actions)
actions
- The allowed drop actionsDnDConstants#ACTION_COPY
,
DnDConstants#ACTION_MOVE
,
DnDConstants#ACTION_COPY_OR_MOVE
void setComponent(java.awt.Component component)
component
- An instance of Component
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |