Examples of DragGestureRecognizer


Examples of java.awt.dnd.DragGestureRecognizer

            final MouseEvent mouseEvent) {
            java.awt.dnd.DragSource awtDragSource = java.awt.dnd.DragSource.getDefaultDragSource();

            final int supportedDropActions = dragSource.getSupportedDropActions();

            DragGestureRecognizer dragGestureRecognizer =
                new DragGestureRecognizer(java.awt.dnd.DragSource.getDefaultDragSource(), DisplayHost.this) {
                    private static final long serialVersionUID = -3204487375572082596L;

                {   appendEvent(mouseEvent);
                }
View Full Code Here

Examples of java.awt.dnd.DragGestureRecognizer

 
  public void test(TestHarness h)
  {
    DragSource ds = new DragSource();
   
    DragGestureRecognizer dgr =
      ds.createDefaultDragGestureRecognizer(
                      new Label("label"), DnDConstants.ACTION_COPY, null);
    h.check(dgr != null);
  }
View Full Code Here

Examples of java.awt.dnd.DragGestureRecognizer

            final MouseEvent mouseEvent) {
            java.awt.dnd.DragSource awtDragSource = java.awt.dnd.DragSource.getDefaultDragSource();

            final int supportedDropActions = dragSource.getSupportedDropActions();

            DragGestureRecognizer dragGestureRecognizer =
                new DragGestureRecognizer(java.awt.dnd.DragSource.getDefaultDragSource(), displayHost) {
                    private static final long serialVersionUID = -3204487375572082596L;

                {   appendEvent(mouseEvent);
                }
View Full Code Here

Examples of java.awt.dnd.DragGestureRecognizer

    public static DragGestureRecognizer registerDragListener(Component c, DragListener dragListener) {
        if (dragEntryMap.containsKey(c))
            return dragEntryMap.get(c).dragGestureRecognizer;

        DragSource dragSource = new DragSource();
        DragGestureRecognizer recognizer = dragSource.createDefaultDragGestureRecognizer(c, DnDConstants.ACTION_MOVE, dragListener);
        dragSource.addDragSourceMotionListener(dragListener);

        dragEntryMap.put(c, new DragEntry(recognizer, dragListener));

        return recognizer;
View Full Code Here

Examples of java.awt.dnd.DragGestureRecognizer

     * Common to all constructors.
     */
    private void construct() {
        addTreeSelectionListener(this);
        dragSource = DragSource.getDefaultDragSource();
        DragGestureRecognizer dragGestureRecognizer = dragSource.createDefaultDragGestureRecognizer(this,
                DnDConstants.ACTION_COPY_OR_MOVE, this);
        dragGestureRecognizer.setSourceActions(dragGestureRecognizer.getSourceActions() & ~InputEvent.BUTTON3_MASK);
        new DropTarget(this, this);
    }
View Full Code Here

Examples of java.awt.dnd.DragGestureRecognizer

     * Common to all constructors.
     */
    private void construct() {
        addTreeSelectionListener(this);
        dragSource = DragSource.getDefaultDragSource();
        DragGestureRecognizer dragGestureRecognizer = dragSource
                .createDefaultDragGestureRecognizer(this, DnDConstants.ACTION_COPY_OR_MOVE, this);
        dragGestureRecognizer.setSourceActions(dragGestureRecognizer.getSourceActions()
                & ~InputEvent.BUTTON3_MASK);
        new DropTarget(this, this);
    }
View Full Code Here

Examples of java.awt.dnd.DragGestureRecognizer

        addMouseListener(new TreeSelectionUpdater(true));
        addMouseListener(this);
        addMouseMotionListener(this);
        addTreeSelectionListener(this);
        dragSource = DragSource.getDefaultDragSource();
        DragGestureRecognizer dragGestureRecognizer = dragSource
                .createDefaultDragGestureRecognizer(this, DnDConstants.ACTION_COPY_OR_MOVE, this);
        dragGestureRecognizer.setSourceActions(dragGestureRecognizer.getSourceActions()
                & ~InputEvent.BUTTON3_MASK);
        setDropTarget(new DropTarget(this, this));
    }
View Full Code Here

Examples of java.awt.dnd.DragGestureRecognizer

     * Common to all constructors.
     */
    private void construct() {
        addTreeSelectionListener(this);
        dragSource = DragSource.getDefaultDragSource();
        DragGestureRecognizer dragGestureRecognizer = dragSource
                .createDefaultDragGestureRecognizer(this, DnDConstants.ACTION_COPY_OR_MOVE, this);
        dragGestureRecognizer.setSourceActions(dragGestureRecognizer.getSourceActions()
                & ~InputEvent.BUTTON3_MASK);
        new DropTarget(this, this);
    }
View Full Code Here

Examples of java.awt.dnd.DragGestureRecognizer

     * Common to all constructors.
     */
    private void construct() {
        addTreeSelectionListener(this);
        dragSource = DragSource.getDefaultDragSource();
        DragGestureRecognizer dragGestureRecognizer = dragSource
        .createDefaultDragGestureRecognizer(this,
                DnDConstants.ACTION_COPY_OR_MOVE, this);
        dragGestureRecognizer.setSourceActions(dragGestureRecognizer
                .getSourceActions()
                & ~InputEvent.BUTTON3_MASK);
        new DropTarget(this, this);
    }
View Full Code Here

Examples of java.awt.dnd.DragGestureRecognizer

     * Common to all constructors.
     */
    private void construct() {
        addTreeSelectionListener(this);
        dragSource = DragSource.getDefaultDragSource();
        DragGestureRecognizer dragGestureRecognizer = dragSource
                .createDefaultDragGestureRecognizer(this, DnDConstants.ACTION_COPY_OR_MOVE, this);
        dragGestureRecognizer.setSourceActions(dragGestureRecognizer.getSourceActions()
                & ~InputEvent.BUTTON3_MASK);
        new DropTarget(this, this);
    }
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.