Examples of dragEnter()


Examples of ae.java.awt.dnd.DragSourceContext.dragEnter()

            DragSourceContext dragSourceContext =
                SunDragSourceContextPeer.this.getDragSourceContext();
            try {
                switch (dispatchType) {
                case DISPATCH_ENTER:
                    dragSourceContext.dragEnter((DragSourceDragEvent)event);
                    break;
                case DISPATCH_MOTION:
                    dragSourceContext.dragOver((DragSourceDragEvent)event);
                    break;
                case DISPATCH_CHANGED:
View Full Code Here

Examples of java.awt.dnd.DragSourceContext.dragEnter()

            DragSourceContext dragSourceContext =
                SunDragSourceContextPeer.this.getDragSourceContext();
            try {
                switch (dispatchType) {
                case DISPATCH_ENTER:
                    dragSourceContext.dragEnter((DragSourceDragEvent)event);
                    break;
                case DISPATCH_MOTION:
                    dragSourceContext.dragOver((DragSourceDragEvent)event);
                    break;
                case DISPATCH_CHANGED:
View Full Code Here

Examples of java.awt.dnd.DragSourceListener.dragEnter()

     * @param dsde the <code>DragSourceDragEvent</code>
     */
    public void dragEnter(DragSourceDragEvent dsde) {
        DragSourceListener dsl = listener;
        if (dsl != null) {
            dsl.dragEnter(dsde);
        }
        getDragSource().processDragEnter(dsde);

  updateCurrentCursor(getSourceActions(), dsde.getTargetActions(), ENTER);
    }
View Full Code Here

Examples of java.awt.dnd.DropTargetListener.dragEnter()

        public void dragEnter(DropTargetDragEvent dtde) {
            //notify additionalListeners
            for (int i = 0; i < _additionalListeners.size(); i++) {
                DropTargetListener l = (DropTargetListener) _additionalListeners
                        .elementAt(i);
                l.dragEnter(dtde);
            }

            if (dtde.isDataFlavorSupported(PtolemyTransferable.namedObjFlavor)) {
                dtde.acceptDrag(DnDConstants.ACTION_COPY_OR_MOVE);
            } else {
View Full Code Here

Examples of org.dyno.visual.swing.plugin.spi.IDesignOperation.dragEnter()

        adapter = ExtensionRegistry.createWidgetAdapter(popup);
      Point sp = new Point(p);
      SwingUtilities.convertPointToScreen(sp, jmenu);
      SwingUtilities.convertPointFromScreen(sp, popup);
      IDesignOperation operation = (IDesignOperation) adapter.getAdapter(IDesignOperation.class);
      operation.dragEnter(sp);
      return true;
    } else {
      inside_popup=false;
      if (isDroppingPermitted()) {
        setDropStatus(DROPPING_PERMITTED);
View Full Code Here

Examples of org.dyno.visual.swing.plugin.spi.IDesignOperation.dragEnter()

                operation.dragExit(hoveredAdapter.convertToLocal(p));
            }
            hoveredAdapter = compositeAdapter;
            IDesignOperation operation = (IDesignOperation) hoveredAdapter.getAdapter(IDesignOperation.class);
            if (operation != null)
              operation.dragEnter(hoveredAdapter.convertToLocal(p));
          } else if (compositeAdapter != null) {
            hoveredAdapter = compositeAdapter;
            IDesignOperation operation = (IDesignOperation) hoveredAdapter.getAdapter(IDesignOperation.class);
            if (operation != null) {
              operation.dragOver(hoveredAdapter.convertToLocal(p));
View Full Code Here

Examples of org.dyno.visual.swing.plugin.spi.LayoutAdapter.dragEnter()

      return super.dragEnter(p);
    JPanel jpanel = (JPanel) adaptable.getWidget();
    LayoutManager layout = jpanel.getLayout();
    if (layout != null) {
      LayoutAdapter layoutAdapter = ((CompositeAdapter) adaptable).getLayoutAdapter();
      return layoutAdapter.dragEnter(p);
    } else
      return true;
  }

  @Override
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.