Package org.flexdock.docking.state

Examples of org.flexdock.docking.state.DockingState


    }

    private ArrayList getSequenceClone() {
        ArrayList list = new ArrayList(sequence.size());
        for(Iterator it=sequence.iterator(); it.hasNext();) {
            DockingState info = (DockingState)it.next();
            list.add(info.clone());
        }
        return list;
    }
View Full Code Here


     */
    public static boolean isMinimized(Dockable dockable) {
        if (dockable == null)
            return false;

        DockingState info = getDockingState(dockable);
        return info == null ? false : info.isMinimized();
    }
View Full Code Here

     * @see DockingManager#getLayoutManager()
     * @see org.flexdock.docking.state.LayoutManager#getDockingState(Dockable)
     */
    public static int getMinimizedConstraint(Dockable dockable) {
        int defaultConstraint = MinimizationManager.UNSPECIFIED_LAYOUT_CONSTRAINT;
        DockingState info = dockable == null ? null : getDockingState(dockable);
        return info == null ? defaultConstraint : info.getMinimizedConstraint();
    }
View Full Code Here

     * @see DockingState#isFloating()
     * @see DockingManager#getLayoutManager()
     * @see org.flexdock.docking.state.LayoutManager#getDockingState(Dockable)
     */
    public static boolean isFloating(Dockable dockable) {
        DockingState info = getDockingState(dockable);
        return info == null ? false : info.isFloating();
    }
View Full Code Here

        // place in the dockbar
        dockbar.dock(dockable);
        // make sure they can't drag the dockable while it's in the dockbar
        dockable.getDockingProperties().setDockingEnabled(false);
        // indicate that the dockable is minimized
        DockingState info = DockingManager.getLayoutManager().getDockingState(dockable);
        info.setMinimizedConstraint(edge);
        revalidate();
    }
View Full Code Here

        if(dockable == null) {
            return;
        }

        // now restore to the current layout
        final DockingState dockingState = DockingManager.getDockingState(dockable);
        final DockingPath dockingPath = dockingState.getPath();
        boolean restoreResult = false;

        if (dockingPath != null) {
            restoreResult = dockingPath.restore(dockable);
        } else {
View Full Code Here

            return false;
        }

        // we can only do relative docking if the parent is embedded.
        // no relative docking if the parent is floating or minimized.
        final DockingState parentDockingState = PerspectiveManager.getInstance().getDockingState(parent);
        if(parentDockingState==null || parentDockingState.isFloating() || parentDockingState.isMinimized()) {
            return false;
        }

        final float splitRatio = dockingState.getSplitRatio();
        final String dockingRegion = dockingState.getRegion();
View Full Code Here

    public void add(String dockableId) {
        if(dockableId==null)
            return;

        DockingState info = null;
        synchronized(dockingInfo) {
            // return if we're already managing this dockable
            if (dockingInfo.containsKey(dockableId)) {
                return;
            }

            // create and add dockingstateinfo here
            info = new DockingState(dockableId);
            dockingInfo.put(dockableId, info);
        }

        EventManager.dispatch(new RegistrationEvent(info, this, true));
    }
View Full Code Here

    public DockingState remove(String dockableId) {
        if(dockableId==null)
            return null;

        DockingState info = null;
        synchronized(dockingInfo) {
            info = (DockingState)dockingInfo.remove(dockableId);
        }
        // dispatch event notification if we actually removed something
        if(info!=null)
View Full Code Here

        synchronized(this) {
            ArrayList listeners = (ArrayList)getLayoutListeners().clone();
            HashMap infoMap = (HashMap)dockingInfo.clone();
            for(Iterator it=dockingInfo.keySet().iterator(); it.hasNext();) {
                String key = (String)it.next();
                DockingState info = getDockingState(key);
                infoMap.put(key, info.clone());
            }

            Hashtable floatTable = (Hashtable)floatingGroups.clone();
            for(Iterator it=floatingGroups.keySet().iterator(); it.hasNext();) {
                Object key = it.next();
View Full Code Here

TOP

Related Classes of org.flexdock.docking.state.DockingState

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.