Package org.flexdock.docking

Examples of org.flexdock.docking.Dockable


    private static String getSiblingId(Component c) {
        if(c instanceof DockingPort)
            c = ((DockingPort)c).getDockedComponent();

        Dockable dockable = findDockable(c);
        return dockable==null? null: dockable.getPersistentId();
    }
View Full Code Here


        Component sibling = split.getLeftComponent();
        if(comp==sibling)
            sibling = split.getRightComponent();

        Dockable d = findDockable(sibling);
        return d==null? null: d.getPersistentId();
    }
View Full Code Here

    public static void requestDockableActivation(Component c, boolean forceChange) {
        if(c==null)
            return;

        Dockable dockable = DockingUtility.getAncestorDockable(c);
        if(dockable!=null) {
            requestDockableActivation(c, dockable, forceChange);
        }
    }
View Full Code Here

        currentDockable.getDockingProperties().setActive(b);
    }

    public void setActive(Dockable dockable) {
        if (dockable != currentDockable) {
            Dockable oldValue = currentDockable;
            setActive(false);
            currentDockable = dockable;
            setActive(true);
            changeSupport.firePropertyChange(CURRENT_DOCKABLE, oldValue, dockable);
        }
View Full Code Here

        if(current instanceof JTabbedPane) {
            return dock(dockable, port, CENTER_REGION, null);
        }

        Dockable embedded = findDockable(current);
        if(embedded==null || tabbed) {
            return dock(dockable, port, CENTER_REGION, null);
        }

        String embedId = embedded.getPersistentId();
        SplitNode lastNode = getLastNode();
        if(embedId.equals(lastNode.getSiblingId())) {
            region = getRegion(lastNode, current);
            ctrlNode = lastNode;
        }
View Full Code Here

        if(current instanceof JTabbedPane) {
            return dock(dockable, port, CENTER_REGION, null);
        }

        // check to see if we dock outside the current port or outside of it
        Dockable docked = findDockable(current);
        if(docked!=null) {
            Component comp = dockable.getComponent();
            if(port.isDockingAllowed(comp, CENTER_REGION)) {
                return dock(dockable, port, CENTER_REGION, null);
            }
View Full Code Here

        SplitNode lastNode = getLastNode();
        String lastSibling = lastNode==null? null: lastNode.getSiblingId();

        Set dockables = port.getDockables();
        for(Iterator it=dockables.iterator(); lastSibling!=null && it.hasNext();) {
            Dockable d = (Dockable)it.next();
            if(d.getPersistentId().equals(lastSibling)) {
                DockingPort embedPort = d.getDockingPort();
                String embedRegion = getRegion(lastNode, d.getComponent());
                return dock(dockable, embedPort, embedRegion, ctrlNode);
            }
        }

View Full Code Here

        if(tabIndex==-1) {
            dragListener = null;
            return;
        }

        Dockable dockable = DockingManager.getDockable(pane.getComponentAt(tabIndex));
        dragListener = DockingManager.getDragListener(dockable);
        if(dragListener!=null)
            dragListener.mousePressed(me);
    }
View Full Code Here

            return null;

        DockingPort port = dockable.getDockingPort();
        String startRegion = findRegion(dockable.getComponent());
        String region = DockingUtility.flipRegion(startRegion);
        Dockable sibling = findDockable(port, dockable.getComponent(), region,
                                        startRegion);

        return sibling;
    }
View Full Code Here

                || CENTER_REGION.equals(region))
            return null;

        DockingPort port = dockable.getDockingPort();
        String startRegion = findRegion(dockable.getComponent());
        Dockable sibling = findDockable(port, dockable.getComponent(), region,
                                        startRegion);

        return sibling;
    }
View Full Code Here

TOP

Related Classes of org.flexdock.docking.Dockable

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.