public class DropMenuInvoker
extends java.lang.Object
implements javax.swing.event.PopupMenuListener, java.lang.Runnable
| Constructor and Description |
|---|
DropMenuInvoker(java.awt.Component target, java.awt.Point location, CmtModel model, OperationProcessor processor, java.lang.Runnable cleanupTask) |
DropMenuInvoker(java.awt.dnd.DropTargetDropEvent event, CmtModel model, OperationProcessor processor, java.lang.Runnable cleanupTask) |
| Modifier and Type | Method and Description |
|---|---|
void |
invoke()
Shows a drop popup menu.
|
void |
popupMenuCanceled(javax.swing.event.PopupMenuEvent e) |
void |
popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent e) |
void |
popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent e) |
void |
run() |
public DropMenuInvoker(java.awt.dnd.DropTargetDropEvent event,
CmtModel model,
OperationProcessor processor,
java.lang.Runnable cleanupTask)
event - Drop eventmodel - Model to perform operation onoptions - Map from Operation to List of DataAndPositions.cleanupTask - Runnable to be invoked after the drop is done
public DropMenuInvoker(java.awt.Component target,
java.awt.Point location,
CmtModel model,
OperationProcessor processor,
java.lang.Runnable cleanupTask)
target - Drop targetlocation - Location relative to targetmodel - Model to perform operation onoptions - Map from Operation to List of DataAndPositions.cleanupTask - Runnable to be invoked after the drop is donepublic void invoke()
public void popupMenuCanceled(javax.swing.event.PopupMenuEvent e)
popupMenuCanceled in interface javax.swing.event.PopupMenuListenerpublic void popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent e)
popupMenuWillBecomeVisible in interface javax.swing.event.PopupMenuListenerpublic void popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent e)
popupMenuWillBecomeInvisible in interface javax.swing.event.PopupMenuListenerpublic void run()
run in interface java.lang.Runnable