Package org.apache.isis.viewer.dnd.interaction

Examples of org.apache.isis.viewer.dnd.interaction.SimpleInternalDrag


         * anchor.add(width, 0); }
         */
        if (canChangeValue().isAllowed()) {
            cursor.cursorAt(at);
            resetSelection();
            return new SimpleInternalDrag(this, anchor);
        }

        markDamaged();

        return null;
View Full Code Here


    public void testDragStart() {
        final DummyView view = new DummyView();
        view.setupAbsoluteLocation(new Location(30, 60));

        final InternalDrag id = new SimpleInternalDrag(view, new Location(100, 110));
        assertEquals(new Location(70, 50), id.getLocation());

        // id.drag(null, new Location(110, 130), 0);
        // assertEquals(new Location(80, 70), id.getLocation());
    }
View Full Code Here

        final int y = location.getY();
        if (verticalScrollBar.isOnThumb(y)) {
            // offset is the distance from the left/top of the thumb to the
            // pointer
            offsetToThumbEdge = y - verticalScrollBar.getPosition();
            return new SimpleInternalDrag(this, new Offset(super.getAbsoluteLocation()));
        } else {
            return null;
        }
    }
View Full Code Here

    private DragEvent dragStartSouth(final DragStart drag) {
        final Location location = drag.getLocation();
        final int x = location.getX();
        if (horizontalScrollBar.isOnThumb(x)) {
            offsetToThumbEdge = x - horizontalScrollBar.getPosition();
            return new SimpleInternalDrag(this, new Offset(super.getAbsoluteLocation()));
        } else {
            return null;
        }
    }
View Full Code Here

         * anchor.add(width, 0); }
         */
        if (canChangeValue().isAllowed()) {
            cursor.cursorAt(at);
            resetSelection();
            return new SimpleInternalDrag(this, anchor);
        }

        markDamaged();

        return null;
View Full Code Here

         * anchor.add(width, 0); }
         */
        if (canChangeValue().isAllowed()) {
            cursor.cursorAt(at);
            resetSelection();
            return new SimpleInternalDrag(this, anchor);
        }

        markDamaged();

        return null;
View Full Code Here

        final Location location = drag.getLocation();
        final int y = location.getY();
        if (verticalScrollBar.isOnThumb(y)) {
            // offset is the distance from the left/top of the thumb to the pointer
            offsetToThumbEdge = y - verticalScrollBar.getPosition();
            return new SimpleInternalDrag(this, new Offset(super.getAbsoluteLocation()));
        } else {
            return null;
        }
    }
View Full Code Here

    private DragEvent dragStartSouth(final DragStart drag) {
        final Location location = drag.getLocation();
        final int x = location.getX();
        if (horizontalScrollBar.isOnThumb(x)) {
            offsetToThumbEdge = x - horizontalScrollBar.getPosition();
            return new SimpleInternalDrag(this, new Offset(super.getAbsoluteLocation()));
        } else {
            return null;
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.viewer.dnd.interaction.SimpleInternalDrag

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.