APIdia Launch Partner
Top Methods
sun.awt.X11

pack-priv Interface XDragSourceProtocolListener

Known Direct Implementers
sun.awt.X11.XDragSourceContextPeer

Method Summary

Modifier and TypeMethod and Description
public void
cleanup(long
the time stamp of the event that triggered drag termination or XlibWrapper.CurrentTime
time
)

Terminates the current drag-and-drop operation (if any) and performs the necessary cleanup.

public void
handleDragFinished()

Called when the current drop target signals that the drag-and-drop operation is finished.

public void
handleDragFinished(boolean
true if the drop target successfully performed the drop action
success
)

Called when the current drop target signals that the drag-and-drop operation is finished.

public void
handleDragFinished(boolean
true if the drop target successfully performed the drop action
success
,
int
the drop action performed by the drop target
action
)

Called when the current drop target signals that the drag-and-drop operation is finished.

public void
handleDragFinished(boolean
true if the drop target successfully performed the drop action
success
,
int
the drop action performed by the drop target
action
,
int
the x coordinate of the pointer location in screen coordinates for the signal
x
,
int
the x coordinate of the pointer location in screen coordinates for the signal
y
)

Called when the current drop target signals that the drag-and-drop operation is finished.

public void
handleDragReply(int
is the drop action selected by the drop target
action
)

Called when a reply from the current drop target is received.

public void
handleDragReply(int
the drop action selected by the drop target
action
,
int
the x coordinate of the pointer location in screen coordinates for the reply
x
,
int
the x coordinate of the pointer location in screen coordinates for the reply
y
)

Called when a reply from the current drop target is received.

public void
handleDragReply(int
the drop action selected by the drop target
action
,
int
the x coordinate of the pointer location in screen coordinates for the reply
x
,
int
the x coordinate of the pointer location in screen coordinates for the reply
y
,
int
the keyboard modifiers state for the reply
modifiers
)

Called when a reply from the current drop target is received.

Method Detail

cleanupback to summary
public void cleanup(long time)

Terminates the current drag-and-drop operation (if any) and performs the necessary cleanup.

Parameters
time:long

the time stamp of the event that triggered drag termination or XlibWrapper.CurrentTime

handleDragFinishedback to summary
public void handleDragFinished()

Called when the current drop target signals that the drag-and-drop operation is finished.

handleDragFinishedback to summary
public void handleDragFinished(boolean success)

Called when the current drop target signals that the drag-and-drop operation is finished.

Parameters
success:boolean

true if the drop target successfully performed the drop action

handleDragFinishedback to summary
public void handleDragFinished(boolean success, int action)

Called when the current drop target signals that the drag-and-drop operation is finished.

Parameters
success:boolean

true if the drop target successfully performed the drop action

action:int

the drop action performed by the drop target

handleDragFinishedback to summary
public void handleDragFinished(boolean success, int action, int x, int y)

Called when the current drop target signals that the drag-and-drop operation is finished.

Parameters
success:boolean

true if the drop target successfully performed the drop action

action:int

the drop action performed by the drop target

x:int

the x coordinate of the pointer location in screen coordinates for the signal

y:int

the x coordinate of the pointer location in screen coordinates for the signal

handleDragReplyback to summary
public void handleDragReply(int action)

Called when a reply from the current drop target is received.

Parameters
action:int

is the drop action selected by the drop target

handleDragReplyback to summary
public void handleDragReply(int action, int x, int y)

Called when a reply from the current drop target is received.

Parameters
action:int

the drop action selected by the drop target

x:int

the x coordinate of the pointer location in screen coordinates for the reply

y:int

the x coordinate of the pointer location in screen coordinates for the reply

handleDragReplyback to summary
public void handleDragReply(int action, int x, int y, int modifiers)

Called when a reply from the current drop target is received.

Parameters
action:int

the drop action selected by the drop target

x:int

the x coordinate of the pointer location in screen coordinates for the reply

y:int

the x coordinate of the pointer location in screen coordinates for the reply

modifiers:int

the keyboard modifiers state for the reply