|
Bean Builder | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.adventnet.beans.probeans.AdventNetTreeDropSource
The class AdventNetTreeDragSource handles the Dropping
process of the TreeNode in the ProAdventNetTree.
During the Dragging process a Transferable object is created, so that all the reference of the Dragged TreeNode is converted to DataFlavours using the ConvertTreePathToTransferable() class .
From this Transferable Object the data flavours are retained back to the TreeNode object and after proper validational process the drop is allowed to add as TreeNode in the ProAdventNeTree.
DropTargetListener| Constructor Summary | |
AdventNetTreeDropSource(javax.swing.JTree tree)
Creates a new AdventNetTreeDropSource instance.The
constructor takes in the source tree as the argument. |
|
| Method Summary | |
void |
dragEnter(java.awt.dnd.DropTargetDragEvent dtde)
It is used for internal purpose. |
void |
dragExit(java.awt.dnd.DropTargetEvent dte)
It is used for internal purpose. |
void |
dragOver(java.awt.dnd.DropTargetDragEvent dtde)
when the TreeNode is dragged over the ProAdventNetTree, the closest TreeNode is set selected to indicate that the drag is in over head of the TreeNode. |
void |
drop(java.awt.dnd.DropTargetDropEvent dtde)
While dropping the DropTarget the validation for a valid drop is performed so that If the drop is invalid the Drop is rejected. |
void |
dropActionChanged(java.awt.dnd.DropTargetDragEvent dtde)
It is used for internal purpose. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public AdventNetTreeDropSource(javax.swing.JTree tree)
AdventNetTreeDropSource instance.The
constructor takes in the source tree as the argument.tree - a JTree value| Method Detail |
public void dragEnter(java.awt.dnd.DropTargetDragEvent dtde)
dtde - a DropTargetDragEvent valuepublic void dragOver(java.awt.dnd.DropTargetDragEvent dtde)
dtde - a DropTargetDragEvent valuepublic void dragExit(java.awt.dnd.DropTargetEvent dte)
dte - a DropTargetEvent valuepublic void dropActionChanged(java.awt.dnd.DropTargetDragEvent dtde)
dtde - a DropTargetDragEvent valuepublic void drop(java.awt.dnd.DropTargetDropEvent dtde)
dtde - a DropTargetDropEvent value
|
Bean Builder | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||