Package org.encuestame.utils.web

Examples of org.encuestame.utils.web.UtilTreeNode


    /**
     * Test {@link UtilTreeNode}.
     */
    @Test
    public void testUtilTreeNode(){
        final UtilTreeNode treeNode = new UtilTreeNode();
        treeNode.setId(1L);
        treeNode.setName("test node");
        treeNode.setNode(TypeTreeNode.FOLDER);
        assertNotNull(treeNode.getId());
        assertNotNull(treeNode.getName());
        assertNotNull(treeNode.getNode().name());
        treeNode.setNode(TypeTreeNode.ITEM);
    }
View Full Code Here


    public static List<UtilTreeNode> convertFolderToDragrable(
            final List<UnitLocationFolder> unitFolderLocationBeans,
            final TypeTreeNode typeTreeNode) {
        final List<UtilTreeNode> itemDragables = new ArrayList<UtilTreeNode>();
        for (UnitLocationFolder unitLocation : unitFolderLocationBeans) {
            final UtilTreeNode dragable = new UtilTreeNode();
            dragable.setId(unitLocation.getId());
            dragable.setName(unitLocation.getName());
            dragable.setNode(typeTreeNode);
            itemDragables.add(dragable);
        }
        return itemDragables;
    }
View Full Code Here

    public static List<UtilTreeNode> convertItemToDragrable(
            final List<UnitLocationBean> unitLocationBeans,
            final TypeTreeNode typeTreeNode) {
        final List<UtilTreeNode> itemDragables = new ArrayList<UtilTreeNode>();
        for (UnitLocationBean unitLocation : unitLocationBeans) {
            final UtilTreeNode dragable = new UtilTreeNode();
            log.info("convertItemToDragrable " + unitLocation.getId() + " "
                    + unitLocation.getName());
            dragable.setId(unitLocation.getId());
            dragable.setName(unitLocation.getName());
            dragable.setNode(typeTreeNode);
            itemDragables.add(dragable);
        }
        log.info("itemDragables " + itemDragables.size());
        return itemDragables;
    }
View Full Code Here

TOP

Related Classes of org.encuestame.utils.web.UtilTreeNode

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.