Examples of DragGestureListener


Examples of java.awt.dnd.DragGestureListener

        menuBar.add(helpMenu);
        this.setJMenuBar(menuBar);

        //���infoExplorerUI��dragЧ��
        DragSource dragSource = DragSource.getDefaultDragSource();
        DragGestureListener infoExplorerUIDragGestureListener = (DragGestureListener) infoExplorerNGObject.getInterface(de.FeatureModellingTool.InfoExplorer.Manager.DRAGGESTURELISTENER_INTERFACE);
        dragSource.createDefaultDragGestureRecognizer(infoExplorerUI, DnDConstants.ACTION_LINK, infoExplorerUIDragGestureListener);
        //

        //���graphicalEditor��dropЧ��
        DropTarget dropTarget = new DropTarget(null, DnDConstants.ACTION_LINK, graphicalEditorDropTargetListener, true, null);
View Full Code Here

Examples of java.awt.dnd.DragGestureListener

        if ((!INFOEXPLORER_NAME.equals(name)) || (!type.equals(FComponent.class)))
            throw new java.lang.IllegalArgumentException("IllegalArgument");

        InfoExplorer infoExplorer = createInfoExplorer();
        JComponent infoExplorerUI = getInfoExplorerUI(infoExplorer).getExplorerComponent();
        DragGestureListener dragGestureListener = getDragGestureListener(infoExplorer);

        Hashtable interfaces = new Hashtable();
        Hashtable classes = new Hashtable();

        interfaces.put(INFOEXPLORER_INTERFACE, infoExplorer);
View Full Code Here

Examples of java.awt.dnd.DragGestureListener

            public void dropActionChanged(DragSourceDragEvent dsde) {
            }
        };

        final DragGestureListener dgl = new DragGestureListener() {
            public void dragGestureRecognized(DragGestureEvent e) {
                try {
                    // check to see if action is OK ...
                    Transferable transferable = new StringSelection(dataHandle);
View Full Code Here

Examples of java.awt.dnd.DragGestureListener

                }
            }
        });

        // Drag and dtop
        DragGestureListener dragGestureListener = new DragGestureListener() {
            public void dragGestureRecognized(DragGestureEvent event) {
                ComponentSelector.this.dragGestureRecognized(event);
            }
        };
        DragSource dragSource = DragSource.getDefaultDragSource();
View Full Code Here

Examples of java.awt.dnd.DragGestureListener

                }
            }
        });

        // Drag and dtop
        DragGestureListener dragGestureListener = new DragGestureListener() {
            public void dragGestureRecognized(DragGestureEvent event) {
                ComponentSelector.this.dragGestureRecognized(event);
            }
        };
        DragSource dragSource = DragSource.getDefaultDragSource();
View Full Code Here

Examples of java.awt.dnd.DragGestureListener

        setDragEnabled(true);
        setTransferHandler(new URLTransferHandler());

        DragSource ds = new DragSource();
        ds.createDefaultDragGestureRecognizer(this, DnDConstants.ACTION_COPY, new DragGestureListener()
        {
            public void dragGestureRecognized(final DragGestureEvent dge)
            {
                TransferHandler th = getTransferHandler();
                th.exportAsDrag(LinkExtendedLabel.this, dge.getTriggerEvent(), DnDConstants.ACTION_COPY);
View Full Code Here

Examples of java.awt.dnd.DragGestureListener

                }
            }
        });

        // Drag and dtop
        DragGestureListener dragGestureListener = new DragGestureListener() {
            public void dragGestureRecognized(DragGestureEvent event) {
                ComponentSelector.this.dragGestureRecognized(event);
            }
        };
        DragSource dragSource = DragSource.getDefaultDragSource();
View Full Code Here

Examples of java.awt.dnd.DragGestureListener

                              final byte mode) {
      super(datamodel);
      this.mode = mode;
      final JList l = this;
      ds = DragSource.getDefaultDragSource();
      dgl = new DragGestureListener() {
        public void dragGestureRecognized(DragGestureEvent e) {
          try {
            Transferable trf = new ModuleTransferrable((CandidateAnalysisModule) l.getSelectedValue());
            e.startDrag(DragSource.DefaultCopyNoDrop, trf, dsl);
          }
View Full Code Here

Examples of java.awt.dnd.DragGestureListener

    public TagLibraryDragList(ListModel datamodel) {
      super(datamodel);
      final JList l = this;
      ds = DragSource.getDefaultDragSource();
      dgl = new DragGestureListener() {
        public void dragGestureRecognized(DragGestureEvent e) {
          try {
            Transferable trf = (Transferable) l.getSelectedValue();
            if (trf != null) {
              e.startDrag(DragSource.DefaultCopyNoDrop, trf, dsl);
View Full Code Here

Examples of java.awt.dnd.DragGestureListener

      }

    });

    // Install the handler for dragging nodes into a graph
    DragGestureListener dragGestureListener = new DragGestureListener()
    {
      /**
       *
       */
      public void dragGestureRecognized(DragGestureEvent e)
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.