public static class WTreeExample.ExampleTreeModel extends AbstractTreeItemModel
TreeItemModel.ShuffleType| Constructor and Description |
|---|
WTreeExample.ExampleTreeModel(List<PersonBean> data,
boolean useDocs) |
| Modifier and Type | Method and Description |
|---|---|
int |
getChildCount(List<Integer> row) |
List<PersonBean> |
getData() |
String |
getItemId(List<Integer> row) |
TreeItemImage |
getItemImage(List<Integer> row) |
String |
getItemLabel(List<Integer> row) |
int |
getRowCount() |
getItemShuffleType, hasChildren, isDisabled, isExpandablepublic WTreeExample.ExampleTreeModel(List<PersonBean> data, boolean useDocs)
data - the sample datauseDocs - use documents in the expand levelpublic List<PersonBean> getData()
public int getRowCount()
public String getItemId(List<Integer> row)
getItemId in interface TreeItemModelgetItemId in class AbstractTreeItemModelpublic TreeItemImage getItemImage(List<Integer> row)
getItemImage in interface TreeItemModelgetItemImage in class AbstractTreeItemModelCopyright © 2017. All rights reserved.