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

Examples of org.apache.wicket.extensions.markup.html.repeater.tree.nested.BranchItem


    else
      checkedNodes.getObject().remove(node);
  }
 
  protected void addRemoveAncestorNodes(T node, Boolean nodeStatus) {
    BranchItem currentConatiner = findParent(BranchItem.class);
   
    if(currentConatiner == null) return;
   
    BranchItem ancestor = currentConatiner.findParent(BranchItem.class);
   
    while(ancestor != null)
    {
      T nodeObject = (T) ancestor.getDefaultModelObject();
     
      if(nodeStatus)
      {
        checkedNodes.getObject().add(nodeObject);
      }
      else
      {
        if(!hasNodeCheckedChildren(nodeObject))
          checkedNodes.getObject().remove(nodeObject);       
      }
     
      ancestor = ancestor.findParent(BranchItem.class);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.extensions.markup.html.repeater.tree.nested.BranchItem

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.