Examples of MyDoggyTransferable


Examples of org.noos.xing.mydoggy.plaf.ui.drag.MyDoggyTransferable

                    toolWindowTab = (MyDoggyToolWindowTab) tabButton.getTab();
            }

            if (toolWindowTab != null && toolWindowTab.getDockableDelegator() != null) {
                // TDDO: change..this
                MyDoggyTransferable transferable = new MyDoggyTransferable();
                transferable.addEntry(MyDoggyTransferable.TOOL_WINDOW_ID_DF, toolWindowTab.getDockableDelegator().getId());
                transferable.addEntry(MyDoggyTransferable.TOOL_WINDOW_TAB_ID_DF, toolWindowTab.getId());

                dge.startDrag(Cursor.getDefaultCursor(), transferable, this);
            } else {
                dge.startDrag(Cursor.getDefaultCursor(),
                              new MyDoggyTransferable(MyDoggyTransferable.TOOL_WINDOW_ID_DF, toolWindow.getId()),
                              this);
            }

            // Setup ghostImage
            Component contentContainer = ((DockedContainer) descriptor.getToolWindowContainer()).getContentContainer();
View Full Code Here

Examples of org.noos.xing.mydoggy.plaf.ui.drag.MyDoggyTransferable

            // Acquire locks
            acquireLocks();

            // Start Drag
            dge.startDrag(Cursor.getDefaultCursor(),
                          new MyDoggyTransferable(MyDoggyTransferable.TOOL_WINDOW_ID_DF, toolWindow.getId()),
                          this);

            // Fire startDrag Event
            descriptor.getToolBar().propertyChange(new PropertyChangeEvent(label, "startDrag", null, dge));
View Full Code Here

Examples of org.noos.xing.mydoggy.plaf.ui.drag.MyDoggyTransferable

            int index = tabbedContentPane.indexAtLocation(origin.x, origin.y);
            if (index != -1) {
                Content content = tabbedContentPane.getContentAt(index);
                if (content.getDockableDelegator() != null) {
                    dge.startDrag(Cursor.getDefaultCursor(),
                                  new MyDoggyTransferable(manager,
                                                          MyDoggyTransferable.CONTENT_ID_DF,
                                                          content.getId()),
                                  this);

                    // Setup ghostImage
View Full Code Here

Examples of org.noos.xing.mydoggy.plaf.ui.drag.MyDoggyTransferable

            super.dragGestureRecognized(dge);
        }

        protected Transferable createTransferable() {
            return new MyDoggyTransferable(manager, MyDoggyTransferable.TOOL_WINDOW_ID_DF, toolWindow.getId());
        }
View Full Code Here

Examples of org.noos.xing.mydoggy.plaf.ui.drag.MyDoggyTransferable

            if (index != -1) {
                Dockable dockable = dockableTabbedPane.getContentAt(index);

                if (dockable != null) {
                    dge.startDrag(Cursor.getDefaultCursor(),
                                  new MyDoggyTransferable(MyDoggyTransferable.CONTENT_ID_DF,
                                                          dockable.getId()),
                                  this);

                    // Setup ghostImage
                    Component component = dockableTabbedPane.getComponentAt(index);
View Full Code Here

Examples of org.noos.xing.mydoggy.plaf.ui.drag.MyDoggyTransferable

                toolWindowTab = (MyDoggyToolWindowTab) SwingUtil.getParentClientProperty(dge.getComponent(), ToolWindowTab.class);
            }

            if (toolWindowTab != null && toolWindowTab.getDockableDelegator() != null) {
                // TDDO: change..this
                MyDoggyTransferable transferable = new MyDoggyTransferable(manager);
                transferable.addEntry(MyDoggyTransferable.TOOL_WINDOW_ID_DF, toolWindowTab.getDockableDelegator().getId());
                transferable.addEntry(MyDoggyTransferable.TOOL_WINDOW_TAB_ID_DF, toolWindowTab.getId());

                dge.startDrag(Cursor.getDefaultCursor(), transferable, this);
            } else {
                dge.startDrag(Cursor.getDefaultCursor(),
                              new MyDoggyTransferable(manager, MyDoggyTransferable.TOOL_WINDOW_ID_DF, toolWindow.getId()),
                              this);
            }

            // Setup ghostImage
            if (!descriptor.isDragImageAvailable() || resourceManager.getBoolean("drag.icon.useDefault", false)) {
View Full Code Here

Examples of org.noos.xing.mydoggy.plaf.ui.drag.MyDoggyTransferable

        public Component getComponent() {
            return representativeAnchor;
        }

        protected Transferable createTransferable() {
            return new MyDoggyTransferable(manager,
                                           MyDoggyTransferable.CUSTOM_DESCRIPTOR_ID,
                                           id);
        }
View Full Code Here

Examples of org.noos.xing.mydoggy.plaf.ui.drag.MyDoggyTransferable

            int index = tabbedContentPane.indexAtLocation(origin.x, origin.y);
            if (index != -1) {
                Content content = tabbedContentPane.getContentAt(index);
                if (content.getDockableDelegator() != null) {
                    dge.startDrag(Cursor.getDefaultCursor(),
                                  new MyDoggyTransferable(MyDoggyTransferable.CONTENT_ID_DF,
                                                          content.getId()),
                                  this);

                    // Setup ghostImage
View Full Code Here

Examples of org.noos.xing.mydoggy.plaf.ui.drag.MyDoggyTransferable

            if (dragTabIndex != -1) {
                Dockable dockable = tabbedContentPane.getContentAt(dragTabIndex);

                if (dockable != null) {
                    dge.startDrag(DragSource.DefaultMoveDrop,
                            new MyDoggyTransferable(manager, MyDoggyTransferable.CONTENT_ID_DF, dockable.getId()),
                            this);

                    // Setup ghostImage
                    if (SwingUtil.getBoolean("drag.icon.useDefault", false)) {
                        setGhostImage(dge.getDragOrigin(),
View Full Code Here

Examples of org.noos.xing.mydoggy.plaf.ui.drag.MyDoggyTransferable

                return;

            draggingContent = getContentAt(dragTabIndex);

            dge.startDrag(DragSource.DefaultMoveDrop,
                    new MyDoggyTransferable(manager, MyDoggyTransferable.CONTENT_ID_DF, draggingContent.getId()),
                    this);

            // Setup ghostImage
            if (SwingUtil.getBoolean("drag.icon.useDefault", false)) {
                setGhostImage(dge.getDragOrigin(),
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.