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

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


                }
                viewer.clearAction();
            } else if (ke.getKeyCode() == KeyEvent.VK_F5) {
                draggedView = identifiedView;
            } else if (draggedView != null && ke.getKeyCode() == KeyEvent.VK_F6) {
                final ContentDrag content = new ContentDragImpl(draggedView, new Location(), new AbstractView(new NullContent()) {
                });
                if (identifiedView != null) {
                    identifiedView.drop(content);
                }
View Full Code Here


    public void testLocation() {
        final DummyView sourceView = new DummyView();
        sourceView.setParent(new DummyWorkspaceView());
        sourceView.setupLocation(new Location(1000, 1000));

        final ContentDrag drag = new ContentDragImpl(sourceView, new Location(10, 10), new DummyView());
        assertEquals(new Location(10, 10), drag.getOffset());

        final DummyView targetView = new DummyView();
        targetView.setupAbsoluteLocation(new Location(100, 100));

        // drag.drag(targetView, new Location(120, 120), 0);
View Full Code Here

    }

    @Override
    public DragEvent createDragContentOutline(final View view, final Location location) {
        final View dragOverlay = dragContentSpecification.createView(view.getContent(), new Axes(), -1);
        return new ContentDragImpl(view, location, dragOverlay);
    }
View Full Code Here

                }
                viewer.clearAction();
            } else if (ke.getKeyCode() == KeyEvent.VK_F5) {
                draggedView = identifiedView;
            } else if (draggedView != null && ke.getKeyCode() == KeyEvent.VK_F6) {
                final ContentDrag content = new ContentDragImpl(draggedView, new Location(), new AbstractView(new NullContent()) {
                });
                if (identifiedView != null) {
                    identifiedView.drop(content);
                }
View Full Code Here

    }

    @Override
    public DragEvent createDragContentOutline(final View view, final Location location) {
        final View dragOverlay = dragContentSpecification.createView(view.getContent(), new Axes(), -1);
        return new ContentDragImpl(view, location, dragOverlay);
    }
View Full Code Here

                viewer.clearAction();
            } else if (ke.getKeyCode() == KeyEvent.VK_F5) {
                draggedView = identifiedView;
            } else if (draggedView != null && ke.getKeyCode() == KeyEvent.VK_F6) {
                final ContentDrag content =
                    new ContentDragImpl(draggedView, new Location(), new AbstractView(new NullContent()) {
                    });
                if (identifiedView != null) {
                    identifiedView.drop(content);
                }
View Full Code Here

    }

    @Override
    public DragEvent createDragContentOutline(final View view, final Location location) {
        final View dragOverlay = dragContentSpecification.createView(view.getContent(), new Axes(), -1);
        return new ContentDragImpl(view, location, dragOverlay);
    }
View Full Code Here

TOP

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

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.