Package org.flexdock.docking.state.tree

Examples of org.flexdock.docking.state.tree.DockableNode


* @version $Id: DockableNodeSerializer.java,v 1.7 2005-07-06 18:10:49 winnetou25 Exp $
*/
public class DockableNodeSerializer implements ISerializer {

    public Element serialize(Document document, Object object) {
        DockableNode dockableNode = (DockableNode) object;

        Element dockableNodeElement = document.createElement(PersistenceConstants.DOCKABLE_NODE_ELEMENT_NAME);
        dockableNodeElement.setAttribute(PersistenceConstants.DOCKABLE_NODE_ATTRIBUTE_DOCKABLE_ID, dockableNode.getDockableId());

        return dockableNodeElement;
    }
View Full Code Here


    }

    public Object deserialize(Element element) {
        String dockableId = element.getAttribute(PersistenceConstants.DOCKABLE_NODE_ATTRIBUTE_DOCKABLE_ID);

        DockableNode dockableNode = new DockableNode();
        dockableNode.setDockableId(dockableId);

        return dockableNode;
    }
View Full Code Here

    private LayoutNode createLayout(Dockable dockable) {
        if(dockable==null)
            return null;

        DockableNode node = new DockableNode();
        node.setDockableId(dockable.getPersistentId());
        return node;
    }
View Full Code Here

TOP

Related Classes of org.flexdock.docking.state.tree.DockableNode

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.