Package org.flexdock.docking

Examples of org.flexdock.docking.DockingPort


    private static final String[] REGIONS = {
        CENTER_REGION, WEST_REGION, EAST_REGION, SOUTH_REGION, NORTH_REGION
    };

    public boolean restore(Dockable dockable, DockingState info, Map context) {
        DockingPort port = PerspectiveManager.getMainDockingPort();
        if(port==null)
            return false;

        Component comp = port.getDockedComponent();
        if(comp==null)
            return dock(dockable, port);

        DockingInfo dockingInfo = getDeepestWest(port);
        if(dockingInfo.dockable==null)
View Full Code Here


            return false;

        Component deep = SwingUtilities.getDeepestComponentAt(contentPane, dropPoint.x, dropPoint.y);
        NestedComponents dropTargets = NestedComponents.find(deep, Dockable.class, DockingPort.class);

        DockingPort port = dropTargets==null? null: (DockingPort)dropTargets.parent;
        Point mousePoint = port==null? null: SwingUtilities.convertPoint(contentPane, dropPoint, (Component)port);
        String region = port==null? UNKNOWN_REGION: port.getRegion(mousePoint);

        return DockingManager.dock(dockable, port, region);
    }
View Full Code Here

        info.setPath(path);
    }

    private void updateRelative(Dockable dockable) {
        DockingState info = getDockingState(dockable);
        DockingPort port = dockable.getDockingPort();

        // don't update relative info for tabbed layout, since we
        // technically have more than one relative.
        if(port.getDockedComponent()!=dockable.getComponent())
            return;

        Component comp = ((Component)port).getParent();
        // if we're not inside a split pane, then there is no relative
        if(!(comp instanceof JSplitPane)) {
View Full Code Here

TOP

Related Classes of org.flexdock.docking.DockingPort

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.