Interface WindowDropHandler
- 
 public interface WindowDropHandlerImplement one of these and register it with the VisionDesignerInterface if you want to add drop handling to the window workspace.Created by carl.gould on 4/2/2015. 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description DropTargetComponentTypegetDropTargetComponentType()Return the type of component (container or component) this drop handler prefers to drop onto.booleanhandleDrop(javax.swing.JComponent droppedOn, java.awt.dnd.DropTargetDropEvent event)Handle the drop itself.voidinit(WindowWorkspace workspace)Gives the window workspace to the drop handler in case it needs it later during a dropDropReactiontestDrop(java.awt.dnd.DropTargetEvent event)Test whether or not this type of event is an appropriate data flavor for this drop handler.
 
- 
- 
- 
Method Detail- 
initvoid init(WindowWorkspace workspace) Gives the window workspace to the drop handler in case it needs it later during a drop
 - 
getDropTargetComponentTypeDropTargetComponentType getDropTargetComponentType() Return the type of component (container or component) this drop handler prefers to drop onto.
 - 
testDropDropReaction testDrop(java.awt.dnd.DropTargetEvent event) Test whether or not this type of event is an appropriate data flavor for this drop handler. If not, returnDropReaction.None
 - 
handleDropboolean handleDrop(javax.swing.JComponent droppedOn, java.awt.dnd.DropTargetDropEvent event)Handle the drop itself. It is guaranteed thattestDrop(DropTargetEvent)will have already been called and returned non-None for the event. Return true if all went well.
 
- 
 
-