Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
TransferEvent Class Reference
Inheritance diagram for TransferEvent:

Public Member Functions

 TransferEvent (Object source, int dragIndex, int dropIndex, MatrixTreeNode node, MatrixTreeNode dropParent)
 
int getDragIndex ()
 
int getDropIndex ()
 
MatrixTreeNode getNode ()
 
MatrixTreeNode getDropParent ()
 

Detailed Description

TransferEvent is used to notify interested parties that a copy or move operation has occured

Author
Nathan de Vries ndvri.nosp@m.es@s.nosp@m.quiz..nosp@m.net

Definition at line 28 of file TransferEvent.java.

Constructor & Destructor Documentation

TransferEvent ( Object  source,
int  dragIndex,
int  dropIndex,
MatrixTreeNode  node,
MatrixTreeNode  dropParent 
)
inline

Constructs a TransferEvent object.

Parameters
dragIndexindex of the node which was clicked to start the drag
dropIndexindex of the node which was dropped onto
nodethe node that was dragged
dropParentthe parent of the node at dropIndex

Definition at line 43 of file TransferEvent.java.

Member Function Documentation

int getDragIndex ( )
inline

Returns the index of the node that was dragged

Returns
the dragged node's index

Definition at line 60 of file TransferEvent.java.

int getDropIndex ( )
inline

Returns the index of the node that the drop operation took place over.

Returns
the dropped node's index

Definition at line 69 of file TransferEvent.java.

MatrixTreeNode getDropParent ( )
inline

Returns the parent of the node at dropIndex

Returns
the dropped node's parent

Definition at line 87 of file TransferEvent.java.

MatrixTreeNode getNode ( )
inline

Returns the MatrixTreeNode that was dragged

Returns
the dragged node

Definition at line 78 of file TransferEvent.java.


The documentation for this class was generated from the following file: