Add a droptarget.
505465
protected void addTarget (
        DropTarget target, JComponent comp, boolean autoremove)
    {
        _droppers.put(comp, target);
        addTargetListeners(comp);
        if (autoremove) {
            comp.addAncestorListener(_remover);
        }
    }
207423
def dropEvent(self, event):
        """"""
        super(TrashWidget, self).dropEvent(event)
        self.itemTrashed.emit()
223835
def appendDefaultDrop(self):
		
		self.filters.append('-A INPUT -j DROP')
		self.filters.append('-A OUTPUT -j DROP')
		self.filters.append('-A FORWARD -j DROP')
		return self
951649
def append(self):
        """"""
        target_index = get_index_from_alias(self.alias_name)
        if not target_index:
            self.replace()
        else:
            self.index_all(target_index)
104399
public void registerDropPasteWorker(DropPasteWorkerInterface worker)
    {
        this.dropPasteWorkerSet.add(worker);
        defaultDropTarget.setDefaultActions( 
            defaultDropTarget.getDefaultActions() 
            | worker.getAcceptableActions(defaultDropTarget.getComponent())
                                           );
    }
421743
public static void addEarToServerDropins(LibertyServer server, String earName, boolean addEarResources,
                                             String warName, boolean addWarResources, String jarName, boolean addJarResources, String... packageNames) throws Exception {
        addEarToServer(server, DIR_DROPINS, earName, addEarResources, warName, addWarResources, jarName, addJarResources,
                       packageNames);
    }
1069374
public void addTargets(final List<IndexTermTarget> targets) {
        int targetNum;

        if (targets == null) {
            return;
        }

        targetNum = targets.size();
        for (int i = 0; i < targetNum; i++) {
            addTarget(targets.get(i));
        }
    }
1146388
def add(self, defn):
        """"""
        self[defn.name]            = defn
        self.opcodes[defn._opcode] = defn
500015
def add_alternative (self, target_instance):
        
        assert isinstance(target_instance, AbstractTarget)
        if self.built_main_targets_:
            raise IllegalOperation ("add-alternative called when main targets are already created for project '%s'" % self.full_name ())

        self.alternatives_.append (target_instance)
752855
private void installDragOverlay() {

        if (m_dragOverlay != null) {
            m_dragOverlay.removeFromParent();
        }
        m_dragOverlay = DOM.createDiv();
        m_dragOverlay.addClassName(I_CmsLayoutBundle.INSTANCE.dragdropCss().dragOverlay());
        Document.get().getBody().appendChild(m_dragOverlay);
    }
1127801
def add(self, item):
        """"""
        if not item in self.items:
            self.items.append(item)
526532
function setupDropzone (el, accept) {
  interact(el)
    .on('dropactivate', e => { console.log(e.type); e.reject(); })
    .dropzone({
      accept: accept,
      ondropactivate: function (event) {
        addClass(event.relatedTarget, '-drop-possible');
      },
      ondropdeactivate: function (event) {
        removeClass(event.relatedTarget, '-drop-possible');
      },
    })
    .on('dropactivate', function (event) {
      const active = event.target.getAttribute('active')|0;

      // change style if it was previously not active
      if (active === 0) {
        addClass(event.target, '-drop-possible');
        event.target.textContent = 'Drop me here!';
      }

      event.target.setAttribute('active', active + 1);
    })
    .on('dropdeactivate', function (event) {
      const active = event.target.getAttribute('active')|0;

      // change style if it was previously active
      // but will no longer be active
      if (active === 1) {
        removeClass(event.target, '-drop-possible');
        event.target.textContent = 'Dropzone';
      }

      event.target.setAttribute('active', active - 1);
    })
    .on('dragenter', function (event) {
      addClass(event.target, '-drop-over');
      event.relatedTarget.textContent = 'I\'m in';
    })
    .on('dragleave', function (event) {
      removeClass(event.target, '-drop-over');
      event.relatedTarget.textContent = 'Drag me…';
    })
    .on('drop', function (event) {
      removeClass(event.target, '-drop-over');
      event.relatedTarget.textContent = 'Dropped';
    });
}
1219446
public void dragAndDropOn(QuickWidget widget, DropPosition dropPos) {
    /*
                         * FIXME: Handle MousePosition
                         */
    Point currentLocation = getCenterLocation();
    Point dropPoint = getDropPoint(widget, dropPos);

    List<ModifierPressed> alist = new ArrayList<ModifierPressed>();
    alist.add(ModifierPressed.NONE);

    getSystemInputManager().mouseDown(currentLocation, MouseButton.LEFT, alist);
    getSystemInputManager().mouseMove(dropPoint, MouseButton.LEFT, alist);
    getSystemInputManager().mouseUp(dropPoint, MouseButton.LEFT, alist);
  }
628996
def debug(self, request, message, extra_tags='', fail_silently=False):
        """"""
        add(self.target_name, request, constants.DEBUG, message, extra_tags=extra_tags,
            fail_silently=fail_silently)
249608
def add_instruction(self, target, data):
        
        self._add_instruction(self.impl_node, target, data)
613160
public static void addWarToServerDropins(LibertyServer server, String warName, boolean addWarResources,
                                             String... packageNames) throws Exception {
        addEarToServer(server, DIR_DROPINS, null, false, warName, addWarResources, null, false, packageNames);
    }
875038
def triggerDropzoneAt( self, point, connection ):
        
        dropzone = self.dropzoneAt(point)
        if dropzone:
            dropzone.slot()(connection)