public class FilterableListTreeContentProvider extends LazyNodeTreeContentProvider
parentId
value-binding, or by childIds
value-binding.LazyNodeTreeContentProvider.BreadthFirstTreeWalker, LazyNodeTreeContentProvider.DepthFirstTreeWalker, LazyNodeTreeContentProvider.NodeComparator, LazyNodeTreeContentProvider.NodeFilterableValueDecorator, LazyNodeTreeContentProvider.NodeIdsIterator, LazyNodeTreeContentProvider.ReverseDepthFirstTreeWalker
Modifier and Type | Field and Description |
---|---|
protected ValueBinding |
m_childIds
Value binding used to calculate child ids for the current row.
|
protected List |
m_list
Original list of rows.
|
protected ValueBinding |
m_parentId
Value binding used to calculate the parent id for the current row.
|
protected ValueBinding |
m_rowId
Value binding used to calculate row id for the current row.
|
m_count, m_current, m_filter, m_filterable, m_filteredChildren, m_filterValue, m_index, m_nodes, m_roots, m_selectableHelper, m_sort, m_sortedChildren, m_treeHelper, m_var, NO_SORT
fExpireWithPageFlow
Constructor and Description |
---|
FilterableListTreeContentProvider() |
FilterableListTreeContentProvider(List list) |
FilterableListTreeContentProvider(List list,
String rowVariable,
String rowIdBinding,
String parentIdBinding,
String childIdsBinding) |
FilterableListTreeContentProvider(List list,
String rowVariable,
String rowIdBinding,
String parentIdBinding,
String childIdsBinding,
String rowFilterValueBinding) |
Modifier and Type | Method and Description |
---|---|
ValueBinding |
getChildIdsBinding() |
List |
getList() |
ValueBinding |
getParentIdBinding() |
ValueBinding |
getRowIdBinding() |
void |
setChildIdsBinding(ValueBinding childIds)
Set children id bindings.
|
void |
setList(List list) |
void |
setParentIdBinding(ValueBinding parentId)
Set parent id binding.
|
void |
setRowIdBinding(ValueBinding binding)
Set row ID binding
|
void |
setRowVariable(String var)
Sets row variable name to use for accessing row specific data.
|
findNodeById, getChildIds, getChildren, getCurrent, getCurrentRow, getDepth, getFilter, getHasChildren, getLastChildAncestors, getNeedRefresh, getOpenIds, getParentId, getPropertyKeys, getRootIds, getRoots, getRowCount, getRowFilterValueBinding, getRowId, getRowIndex, getRowSelectedCount, getRowSelectedIds, getRowUnselectedIds, getRowVariable, getSiblings, getSort, getType, getUnopenIds, getUseUnopenModel, getUseUnselectedModel, getValue, hasProperty, isAddressable, isAutoRefresh, isFilterable, isFirstChild, isLastChild, isOpen, isReadOnly, isRowAvailable, isRowMixed, isRowSelected, isVisible, refresh, setAutoRefresh, setCurrent, setFilter, setFilterable, setNeedRefresh, setOpen, setOpenIds, setOpenToDepth, setRoots, setRowById, setRowFilterValueBinding, setRowFilterValueBindingAsString, setRowIndex, setRowSelected, setRowSelectedIds, setRowUnselectedIds, setSort, setUnopenIds, setValue, supportsAutoRefresh, toString
getExpireWithPageFlow, setExpireWithPageFlow
protected List m_list
protected ValueBinding m_parentId
protected ValueBinding m_childIds
protected ValueBinding m_rowId
public FilterableListTreeContentProvider()
public FilterableListTreeContentProvider(List list)
public FilterableListTreeContentProvider(List list, String rowVariable, String rowIdBinding, String parentIdBinding, String childIdsBinding)
public void setRowVariable(String var)
ITableContentProvider
Sets row variable name to use for accessing row specific data. For
example, if the provider wrapps an array of a data objects with
id
property and the variable name is item
, then
the provider implementation can access id
property of each
record as item.id
.
This property should set only once at the provider initialization time
setRowVariable
in interface ITableContentProvider
setRowVariable
in class LazyNodeTreeContentProvider
public List getList()
public void setList(List list)
public ValueBinding getRowIdBinding()
public void setRowIdBinding(ValueBinding binding)
binding
- public ValueBinding getParentIdBinding()
public void setParentIdBinding(ValueBinding parentId)
parentId
- public ValueBinding getChildIdsBinding()
public void setChildIdsBinding(ValueBinding childIds)
childIds
-