com.droplets.api.event
Class TableDropEvent
java.lang.Object
|
+--java.util.EventObject
|
+--com.droplets.api.event.DropEvent
|
+--com.droplets.api.event.TableDropEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class TableDropEvent
- extends DropEvent
Event that is fired when one drag-and-drop-enabled component is dragged onto
a table.
Since this class extends java.util.EventObject
, it inherits
the idea of a "source component", which is defined as the component that
generates this event, and which is returned by the DropEvent.getSource()
method. Be aware that in this case, that component is actually the
target of the drop action.
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Method Summary |
int |
getReceiverRow()
Gets the row that is the target for this drop event. |
static boolean |
isTableDropEvent(DropEvent evt)
This function determines if the specified event is of type TableDropEvent. |
Methods inherited from class java.util.EventObject |
toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
m_receiverRow
protected int m_receiverRow
TableDropEvent
public TableDropEvent(Component draggedComponent,
Table targetComponent,
int receiverRow)
- Creates a new
TableDropEvent
object.
- Parameters:
draggedComponent
- the component that was originally grabbed
by the mouse motiontargetComponent
- the table onto which the draggedComponent
was droppedreceiverRow
- the target row in the table
isTableDropEvent
public static boolean isTableDropEvent(DropEvent evt)
- This function determines if the specified event is of type TableDropEvent.
- Parameters:
evt
- the event in question
getReceiverRow
public int getReceiverRow()
- Gets the row that is the target for this drop event.
- Returns:
- the destination row
Copyright © Droplets, 2001. All Rights Reserved.