Package org.flexdock.docking.floating.frames

Examples of org.flexdock.docking.floating.frames.DockingFrame


            dockingFrame.setVisible(true);
        }
    }

    private DockingFrame createDockingFrame() {
        DockingFrame frame = new DockingFrame(this, "12345");
        frame.addDockable(createView("solution.explorer", "Solution Explorer"));
        frame.addDockable(createView("class.view", "Class View"));
        return frame;
    }
View Full Code Here


        Rectangle screenBounds = dockable.getComponent().getBounds();
        screenBounds.setLocation(screenLoc);

        // create the frame
        FloatManager mgr = DockingManager.getFloatManager();
        DockingFrame frame = mgr.floatDockable(dockable, dockable
                                               .getComponent(), screenBounds);

        // grab a reference to the frame's dockingPort for posterity
        results.dropTarget = frame.getDockingPort();

        results.success = true;
        return results;
    }
View Full Code Here

        Component owner = RestorationManager.getRestoreContainer(dockable);
        if(owner == null) {
            return false;
        }

        DockingFrame frame = DockingManager.getFloatManager().floatDockable(dockable, owner);
        return (frame != null);
    }
View Full Code Here

    private DockingFrame getDockingFrame(Dockable dockable, Component frameOwner) {
        FloatingGroup group = getGroup(dockable);
        if(group==null)
            group = new FloatingGroup(getFloatingGroup(dockable));

        DockingFrame frame = group.getFrame();
        if(frame==null) {
            frame = DockingFrame.create(frameOwner, group.getName());
            group.setFrame(frame);
            floatingGroups.put(group.getName(), group);
        }
View Full Code Here

    public DockingFrame floatDockable(Dockable dockable, Component frameOwner, Rectangle screenBounds) {
        if(dockable==null || screenBounds==null)
            return null;

        // create the frame
        DockingFrame frame = getDockingFrame(dockable, frameOwner);
        if(screenBounds!=null)
            frame.setBounds(screenBounds);

        // undock the current Dockable instance from it's current parent container
        DockingManager.undock(dockable);

        // add to the floating frame
        frame.addDockable(dockable);

        // display and return
        if(!frame.isVisible())
            frame.setVisible(true);
        return frame;
    }
View Full Code Here

TOP

Related Classes of org.flexdock.docking.floating.frames.DockingFrame

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.