UIComponent nodeComponent = getNodeComponent(list,null,getRootNode(),row,depth,0); addObject(iwc, getRootNode(), nodeComponent, row, depth);
ICTreeNode page = getRootNode(); List pageList = new ArrayList(); pageList.add(page); UIComponent nodeComponent = getNodeComponent(list,pageList,page,row,depth,0); ((PresentationObject) nodeComponent).setStyleClass("firstChild"); addObject(iwc, page, nodeComponent, row, depth); if (isSelected(page)) { rootSelected = true; }
	protected UIComponent getTree(IWContext iwc) {		//TODO: implement a CSS version here		Lists list = new Lists();		if (iListID != null) {			list.setID(iListID);		}		String styleClass = getStyleClass();		if(styleClass!=null){			list.setStyleClass(styleClass);		}		int row = 1;		int depth = 0;		//row = addHeaderObject(table, row);		if (getShowRoot()) {			UIComponent nodeComponent = getNodeComponent(list,null,getRootNode(),row,depth,0);			addObject(iwc, getRootNode(), nodeComponent, row, depth);			//setRowAttributes(list, getRootNode(), row, depth, false);		}		row = addToTree(iwc, getRootNode().getChildren(), list, row, depth);		return list;	}