Package org.apache.isis.viewer.dnd.view

Examples of org.apache.isis.viewer.dnd.view.ContentDrag


                }
                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

                }
                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

                }
                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

TOP

Related Classes of org.apache.isis.viewer.dnd.view.ContentDrag

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.