|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This is the interface for objects that can be assigned to any part or to the drag and drop manager. It allows any part or container to override what events (usually dragging the mouse with a button held down) are involved in a drag and drop operation. It also allows overriding what effects are visible during drag and drop operations. Drag and drop operations are divided into two basic operations: Drag and Copy - which leaves the part that was 'picked up' where it was after the operation and, Drag and Cut - which deletes the part that was 'picked up' after the operation (i.e. it 'moves' the part).
MiPart.setDragAndDropBehavior(com.swfm.mica.core.MiiDragAndDropBehavior),
MiPart.getDragAndDropBehavior(),
MiDragAndDropManager| Method Summary | |
java.lang.Object |
getDataToExport()
Gets the data to be exported during the drop operation for parts with this behavior. |
MiEvent |
getDragAndCopyCancelEvent()
Gets the event that will cancel a drag-and-copy operation. |
MiEvent |
getDragAndCopyDragEvent()
Gets the event that will move a part during a drag-and-copy operation. |
MiEvent |
getDragAndCopyDropEvent()
Gets the event that will complete a drag-and-copy operation. |
MiEvent |
getDragAndCopyPickUpEvent()
Gets the event that will 'pick up' a part to start a drag-and-copy operation. |
MiEvent |
getDragAndCutCancelEvent()
Gets the event that will cancel a drag-and-cut operation. |
MiEvent |
getDragAndCutDragEvent()
Gets the event that will move a part during a drag-and-cut operation. |
MiEvent |
getDragAndCutDropEvent()
Gets the event that will complete a drag-and-cut operation. |
MiEvent |
getDragAndCutPickUpEvent()
Gets the event that will 'pick up' a part to start a drag-and-cut operation. |
MiPart |
getDraggingLook()
Gets the appearance to be used during the drag operation for parts with this behavior. |
boolean |
getDragsReferenceNotCopy()
|
boolean |
getKeepLookCompletelyWithinRootWindow()
|
boolean |
getSnapLookCenterToCursor()
|
MiEditor |
getTargetEditor()
|
MiParts |
getValidTargets()
Gets the valid targets for drag and drop for parts with this behavior. |
boolean |
isDefaultBehaviorForParts()
|
boolean |
isOpaqueDragAndDropTarget()
Gets whether, if the part with this behavior rejects a drop, the parent of the part can then be inquired as to whether it wants the drop. |
boolean |
isPartDragAndDropSource(MiPart part)
|
boolean |
isPartDragAndDropTarget(MiPart part)
|
void |
setValidTargets(MiParts targets)
Sets the valid targets for drag and drop for parts with this behavior. |
| Method Detail |
public boolean isDefaultBehaviorForParts()
public boolean getDragsReferenceNotCopy()
public boolean getSnapLookCenterToCursor()
public boolean getKeepLookCompletelyWithinRootWindow()
public boolean isPartDragAndDropSource(MiPart part)
public boolean isPartDragAndDropTarget(MiPart part)
public boolean isOpaqueDragAndDropTarget()
public MiEvent getDragAndCopyPickUpEvent()
public MiEvent getDragAndCopyDragEvent()
public MiEvent getDragAndCopyCancelEvent()
public MiEvent getDragAndCopyDropEvent()
public MiEvent getDragAndCutPickUpEvent()
public MiEvent getDragAndCutDragEvent()
public MiEvent getDragAndCutCancelEvent()
public MiEvent getDragAndCutDropEvent()
public void setValidTargets(MiParts targets)
targets - the valid targets or nullpublic MiParts getValidTargets()
public java.lang.Object getDataToExport()
public MiPart getDraggingLook()
public MiEditor getTargetEditor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||