public class ContainerDropHandler extends java.lang.Object implements TagDropHandler
Modifier and Type | Class and Description |
---|---|
protected static class |
ContainerDropHandler.ComponentCreator
Holds a name and a class of a component.
|
protected static class |
ContainerDropHandler.NamedList
It's a List<Object>, with a name!
|
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JComponent |
_currentComponent |
protected DesignerContext |
_currentContext
A cache of the actual popup menus used for each data type.
|
protected java.awt.dnd.DropTargetDropEvent |
_currentDropEvent |
protected java.util.List<TagPath> |
_currentPathList |
Constructor and Description |
---|
ContainerDropHandler() |
Modifier and Type | Method and Description |
---|---|
protected javax.swing.JPopupMenu |
createMenu(DesignerContext context,
DataTypeEx type) |
boolean |
handleDrop(DesignerContext context,
java.util.List<TagPath> paths,
javax.swing.JComponent bean,
java.awt.dnd.DropTargetDropEvent dropEvent)
Handles the drop of one or more tags onto a component.
|
protected void |
initOptions() |
static java.awt.Rectangle |
setMultiDropBounds(DesignerContext context,
javax.swing.JComponent droppedOn,
java.awt.dnd.DropTargetDropEvent dropEvent,
java.lang.Class<?> componentClass,
javax.swing.JComponent newComp,
java.awt.Rectangle lastComponentBounds) |
protected DesignerContext _currentContext
protected java.util.List<TagPath> _currentPathList
protected javax.swing.JComponent _currentComponent
protected java.awt.dnd.DropTargetDropEvent _currentDropEvent
protected void initOptions()
protected javax.swing.JPopupMenu createMenu(DesignerContext context, DataTypeEx type)
public boolean handleDrop(DesignerContext context, java.util.List<TagPath> paths, javax.swing.JComponent bean, java.awt.dnd.DropTargetDropEvent dropEvent)
TagDropHandler
handleDrop
in interface TagDropHandler
public static java.awt.Rectangle setMultiDropBounds(DesignerContext context, javax.swing.JComponent droppedOn, java.awt.dnd.DropTargetDropEvent dropEvent, java.lang.Class<?> componentClass, javax.swing.JComponent newComp, java.awt.Rectangle lastComponentBounds) throws java.lang.Exception
java.lang.Exception