private JSFPagedTableModel _getModel() { JSFDefaultMutableTreeNode node = _getCurrentNode(); JSFPagedTableModel model = node.getChildModel(); if (model == null) { model = createChildModel(node.getUserObject()); node.setChildModel(model); } return model; }
public JSFPagingTreeModel( Object instance, String childNameProperty, TreePagingModelFactory pagingModelFactory, CoreTreeTable treeTable, int pageSize) { this.instance = instance; this.pagingModelFactory = pagingModelFactory; this.treeTable = treeTable; this.pageSize = pageSize; JSFPagedTableModel model = new JSFPagedTableModel(instance, pagingModelFactory, pageSize); JSFDefaultMutableTreeNode root = new JSFDefaultMutableTreeNode(instance); _path.add(root); root.childModel = model; super.setChildProperty(childNameProperty); }