Package org.apache.wicket.extensions.markup.html.tree

Examples of org.apache.wicket.extensions.markup.html.tree.ITreeState


     * @param selectedCategory the selectedCategory to set
     */
    public void setSelectedCategory(Category selectedCategory) {
        this.selectedCategory = selectedCategory;
       
        ITreeState treeState = classesTree.getTreeState();
        if(selectedCategory != null) {
            //Select in the tree
            TreeNode currentTreeNode = categoryRootNode.getNodeByItem(selectedCategory);
            treeState.expandNode(currentTreeNode);
            treeState.selectNode(currentTreeNode, true);
        } else {
            Collection<Object> selectedNodes = treeState.getSelectedNodes();
            for(Object node: selectedNodes){
                treeState.selectNode(node, false);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.wicket.extensions.markup.html.tree.ITreeState

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.