Package java.awt.dnd

Examples of java.awt.dnd.DropTarget$DropTargetAutoScroller


    /**
     * Support for Test Plan Dnd
     * see BUG 52281 (when JDK6 will be minimum JDK target)
     */
  public void initTopLevelDndHandler() {
      new DropTarget(this, this);
    }
View Full Code Here


        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);
        graphicalEditor.getContext().putValue(de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.DROP_TARGET, dropTarget);
        //
       
        GUIUtility.displayOnScreen(this);
       
View Full Code Here

        dragSource.createDefaultDragGestureRecognizer(infoExplorerUI,
                DnDConstants.ACTION_LINK, infoExplorerUIDragGestureListener);
        //
       
        // ���graphicalEditor��dropЧ��
        DropTarget dropTarget = new DropTarget(null, DnDConstants.ACTION_LINK,
                graphicalEditorDropTargetListener, true, null);
        graphicalEditor
                .getContext()
                .putValue(
                de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.DROP_TARGET,
View Full Code Here

                return;
            }

            dtde.dropComplete(true);

            DropTarget dropTarget = (DropTarget) dtde.getSource();

            DrawingView drawingView = (DrawingView) dropTarget.getComponent();

            if (feature != null) {
                FeatureFigure ff = new FeatureFigure();
                ff.setAttribute("id", id);
                ff.setAttribute(FeatureFigure.IS_A_LINK, Boolean.TRUE);
View Full Code Here

    dragSource.createDefaultDragGestureRecognizer(infoExplorerUI,
        DnDConstants.ACTION_LINK, infoExplorerUIDragGestureListener);
    //

    // ���graphicalEditor��dropЧ��
    DropTarget dropTarget = new DropTarget(null, DnDConstants.ACTION_LINK,
        graphicalEditorDropTargetListener, true, null);
    graphicalEditor
        .getContext()
        .putValue(
            de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.DROP_TARGET,
View Full Code Here

        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);
        graphicalEditor.getContext().putValue(de.FeatureModellingTool.GraphicalEditor.ConstantDefinition.DROP_TARGET, dropTarget);
        //

        GUIUtility.displayOnScreen(this);
View Full Code Here

                return;
            }

            dtde.dropComplete(true);

            DropTarget dropTarget = (DropTarget) dtde.getSource();

            DrawingView drawingView = (DrawingView) dropTarget.getComponent();

            if (feature != null) {
                FeatureFigure ff = new FeatureFigure();
                ff.setAttribute("id", id);
                ff.setAttribute(FeatureFigure.IS_A_LINK, Boolean.TRUE);
View Full Code Here

       
        public void dropActionChanged(
               DropTargetDragEvent e) {}
      };
       
    new DropTarget(mTextFieldSource, dropTargetSourceListener);
    new DropTarget(mTextFieldDestination,dropTargetDestinationListener);
   
    mButtonDestination.addActionListener(new ActionListener(){

      @Override
      public void actionPerformed(ActionEvent e) {
View Full Code Here

       
        public void dropActionChanged(
               DropTargetDragEvent e) {}
      };
       
    new DropTarget(mTextFieldSource, dropTargetSourceListener);
    new DropTarget(mTextFieldDestination,dropTargetDestinationListener);
   
    mButtonDestination.addActionListener(new ActionListener(){

      @Override
      public void actionPerformed(ActionEvent e) {
View Full Code Here

            // ge�ndert
            public void dropActionChanged(DropTargetDragEvent e)
            {
            }
        };
        DropTarget dropTarget = new DropTarget(this, dropTargetListener);

    }
View Full Code Here

TOP

Related Classes of java.awt.dnd.DropTarget$DropTargetAutoScroller

Copyright © 2018 www.massapicom. 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.