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

Field Summary
protected  int m_receiverRow
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TableDropEvent(Component draggedComponent, Table targetComponent, int receiverRow)
          Creates a new TableDropEvent object.
 
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 com.droplets.api.event.DropEvent
getDraggedComponent, getSource, getTargetComponent, getText
 
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
 

Field Detail

m_receiverRow

protected int m_receiverRow
Constructor Detail

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 motion
targetComponent - the table onto which the draggedComponent was dropped
receiverRow - the target row in the table
Method Detail

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.