示例#1
0
  private JSFPagedTableModel _getModel() {
    JSFDefaultMutableTreeNode node = _getCurrentNode();
    JSFPagedTableModel model = node.getChildModel();

    if (model == null) {
      model = createChildModel(node.getUserObject());
      node.setChildModel(model);
    }
    return model;
  }
示例#2
0
 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);
 }