Class ContainerDropHandler.ComponentCreator

  • Enclosing class:
    ContainerDropHandler

    protected static class ContainerDropHandler.ComponentCreator
    extends java.lang.Object
    Holds a name and a class of a component. The name is used for the menu item text. The class is used to create an instance of the component on drop and add it to the drop target. Then that component's natural drop handler is used to set up the bindings.
    • Constructor Summary

      Constructors 
      Constructor Description
      ComponentCreator​(java.lang.String name, java.lang.Class componentClass)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()  
      boolean handleDrop​(DesignerContext context, java.util.List<NodeBrowseInfo> nodes, javax.swing.JComponent droppedOn, java.awt.dnd.DropTargetDropEvent dropEvent)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ComponentCreator

        public ComponentCreator​(java.lang.String name,
                                java.lang.Class componentClass)
    • Method Detail

      • getName

        public java.lang.String getName()
      • handleDrop

        public boolean handleDrop​(DesignerContext context,
                                  java.util.List<NodeBrowseInfo> nodes,
                                  javax.swing.JComponent droppedOn,
                                  java.awt.dnd.DropTargetDropEvent dropEvent)