|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.sqlpower.architect.swingui.PlayPen.PlayPenDropListener
public class PlayPen.PlayPenDropListener
Tracks incoming objects and adds successfully dropped objects at the current mouse position. Also retargets drops to the TablePanes when necessary.
| Field Summary | |
|---|---|
protected ContainerPane<?,?> |
tpTarget
When the user moves over a container pane, its drop target's dragEnter method will be called, and this variable will reference it. |
| Constructor Summary | |
|---|---|
PlayPen.PlayPenDropListener()
|
|
| Method Summary | |
|---|---|
java.awt.datatransfer.DataFlavor |
bestImportFlavor(javax.swing.JComponent c,
java.awt.datatransfer.DataFlavor[] flavors)
Chooses the best import flavour from the flavors array for importing into c. |
boolean |
canImport(javax.swing.JComponent c,
java.awt.datatransfer.DataFlavor[] flavors)
This is set up this way because this DropTargetListener was derived from a TransferHandler. |
void |
dragEnter(java.awt.dnd.DropTargetDragEvent dtde)
Called while a drag operation is ongoing, when the mouse pointer enters the operable part of the drop site for the DropTarget registered with this listener. |
void |
dragExit(java.awt.dnd.DropTargetEvent dte)
Called while a drag operation is ongoing, when the mouse pointer has exited the operable part of the drop site for the DropTarget registered with this listener or escape has been pressed |
void |
dragOver(java.awt.dnd.DropTargetDragEvent dtde)
Called when a drag operation is ongoing, while the mouse pointer is still over the operable part of the drop site for the DropTarget registered with this listener. |
void |
drop(java.awt.dnd.DropTargetDropEvent dtde)
Processes the drop action on the PlayPen (the DropTarget) or current target TablePane if there is one. |
void |
dropActionChanged(java.awt.dnd.DropTargetDragEvent dtde)
Called if the user has modified the current drop gesture. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ContainerPane<?,?> tpTarget
| Constructor Detail |
|---|
public PlayPen.PlayPenDropListener()
| Method Detail |
|---|
public void dragEnter(java.awt.dnd.DropTargetDragEvent dtde)
dragEnter in interface java.awt.dnd.DropTargetListenerpublic void dragExit(java.awt.dnd.DropTargetEvent dte)
dragExit in interface java.awt.dnd.DropTargetListenerpublic void dragOver(java.awt.dnd.DropTargetDragEvent dtde)
dragOver in interface java.awt.dnd.DropTargetListenerpublic void drop(java.awt.dnd.DropTargetDropEvent dtde)
drop in interface java.awt.dnd.DropTargetListenerpublic void dropActionChanged(java.awt.dnd.DropTargetDragEvent dtde)
dropActionChanged in interface java.awt.dnd.DropTargetListener
public java.awt.datatransfer.DataFlavor bestImportFlavor(javax.swing.JComponent c,
java.awt.datatransfer.DataFlavor[] flavors)
public boolean canImport(javax.swing.JComponent c,
java.awt.datatransfer.DataFlavor[] flavors)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||