com.jmex.awt.swingui.dnd
Class JMEDragSourceEvent

java.lang.Object
  extended by com.jmex.awt.swingui.dnd.JMEDragSourceEvent

public class JMEDragSourceEvent
extends java.lang.Object

Author:
Galun

Constructor Summary
JMEDragSourceEvent(java.awt.Point point, int action)
          a class to capsule drag events delivered to the drag source
JMEDragSourceEvent(java.awt.Point point, int action, boolean success)
          a class to capsule drag events delivered to the drag source
JMEDragSourceEvent(java.awt.Point point, int action, boolean success, boolean freeDrop)
          a class to capsule drag events delivered to the drag source
JMEDragSourceEvent(java.awt.Point point, int action, java.awt.Component target)
          a class to capsule drag events delivered to the drag source
 
Method Summary
 int getAction()
           
 boolean getDropSuccess()
           
 java.awt.Point getPoint()
           
 java.awt.Component getTarget()
           
 boolean isFreeDrop()
          check if this is a drop outside of a drop target
protected  void setDropSuccess(boolean success)
           
 void setFreeDrop(boolean freeDrop)
          set the free drop flag
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JMEDragSourceEvent

public JMEDragSourceEvent(java.awt.Point point,
                          int action)
a class to capsule drag events delivered to the drag source

Parameters:
point - the point the event occured
action - the action (see DndConstants in swing)

JMEDragSourceEvent

public JMEDragSourceEvent(java.awt.Point point,
                          int action,
                          boolean success)
a class to capsule drag events delivered to the drag source

Parameters:
point - the point the event occured
action - the action (see DndConstants in swing)
success - flag a successful dnd event

JMEDragSourceEvent

public JMEDragSourceEvent(java.awt.Point point,
                          int action,
                          java.awt.Component target)
a class to capsule drag events delivered to the drag source

Parameters:
point - the point the event occured
action - the action (see DndConstants in swing)
target - the target component this event occured

JMEDragSourceEvent

public JMEDragSourceEvent(java.awt.Point point,
                          int action,
                          boolean success,
                          boolean freeDrop)
a class to capsule drag events delivered to the drag source

Parameters:
point - the point the event occured
action - the action (see DndConstants in swing)
success - flag a successful dnd event
freeDrop - flag a drop outside of drop targets
Method Detail

getPoint

public java.awt.Point getPoint()

getAction

public int getAction()

setDropSuccess

protected void setDropSuccess(boolean success)

getDropSuccess

public boolean getDropSuccess()

isFreeDrop

public boolean isFreeDrop()
check if this is a drop outside of a drop target

Returns:
true if the a drop was outside of a drop target

setFreeDrop

public void setFreeDrop(boolean freeDrop)
set the free drop flag

Parameters:
freeDrop - TODO

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getTarget

public java.awt.Component getTarget()
Returns:
the target component the drop occured