public interface DnDEvent extends java.awt.datatransfer.Transferable, UserDataHolder
Modifier and Type | Interface and Description |
---|---|
static interface |
DnDEvent.DropTargetHighlightingType |
Modifier and Type | Method and Description |
---|---|
boolean |
canHandleDrop() |
void |
cleanUp() |
void |
clearDelegatedTarget() |
void |
delegateDropTo(DnDTarget target) |
boolean |
delegateUpdateTo(DnDTarget target) |
DnDAction |
getAction() |
java.lang.Object |
getAttachedObject() |
java.awt.Component |
getCurrentOverComponent() |
java.awt.Cursor |
getCursor() |
DnDTarget |
getDelegatedTarget() |
java.lang.String |
getExpectedDropResult() |
java.awt.Component |
getHandlerComponent() |
java.awt.Point |
getLocalPoint() |
java.awt.Point |
getOrgPoint() |
java.awt.Point |
getPoint() |
java.awt.Point |
getPointOn(java.awt.Component aComponent) |
RelativePoint |
getRelativePoint() |
java.lang.Object |
getTransferData(java.awt.datatransfer.DataFlavor flavor) |
java.awt.datatransfer.DataFlavor[] |
getTransferDataFlavors() |
void |
hideHighlighter() |
boolean |
isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor) |
boolean |
isDropPossible() |
void |
setAutoHideHighlighterInDrop(boolean aValue) |
void |
setCursor(java.awt.Cursor cursor) |
void |
setDropPossible(boolean possible) |
void |
setDropPossible(boolean possible,
java.lang.String aExpectedResult) |
void |
setDropPossible(java.lang.String aExpectedResult,
DropActionHandler aHandler) |
void |
setHighlighting(java.awt.Component aComponent,
int aType) |
void |
setHighlighting(javax.swing.JLayeredPane layeredPane,
RelativeRectangle rectangle,
int aType) |
void |
setHighlighting(RelativeRectangle rectangle,
int aType) |
void |
setLocalPoint(java.awt.Point localPoint) |
void |
setOrgPoint(java.awt.Point orgPoint) |
void |
updateAction(DnDAction action) |
boolean |
wasDelegated() |
getUserData, putUserData
DnDAction getAction()
void updateAction(DnDAction action)
java.lang.Object getAttachedObject()
void setDropPossible(boolean possible, java.lang.String aExpectedResult)
void setDropPossible(boolean possible)
void setDropPossible(java.lang.String aExpectedResult, DropActionHandler aHandler)
java.lang.String getExpectedDropResult()
java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface java.awt.datatransfer.Transferable
boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
isDataFlavorSupported
in interface java.awt.datatransfer.Transferable
java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor) throws java.awt.datatransfer.UnsupportedFlavorException, java.io.IOException
getTransferData
in interface java.awt.datatransfer.Transferable
java.awt.datatransfer.UnsupportedFlavorException
java.io.IOException
boolean isDropPossible()
java.awt.Point getOrgPoint()
void setOrgPoint(java.awt.Point orgPoint)
java.awt.Point getPoint()
java.awt.Point getPointOn(java.awt.Component aComponent)
boolean canHandleDrop()
java.awt.Component getHandlerComponent()
java.awt.Component getCurrentOverComponent()
void setHighlighting(java.awt.Component aComponent, int aType)
void setHighlighting(RelativeRectangle rectangle, int aType)
void setHighlighting(javax.swing.JLayeredPane layeredPane, RelativeRectangle rectangle, int aType)
void setAutoHideHighlighterInDrop(boolean aValue)
void hideHighlighter()
void setLocalPoint(java.awt.Point localPoint)
java.awt.Point getLocalPoint()
RelativePoint getRelativePoint()
void clearDelegatedTarget()
boolean wasDelegated()
DnDTarget getDelegatedTarget()
boolean delegateUpdateTo(DnDTarget target)
void delegateDropTo(DnDTarget target)
java.awt.Cursor getCursor()
void setCursor(java.awt.Cursor cursor)
void cleanUp()