|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webmethods.caf.faces.bean.PageFlowScopeAdapter
com.webmethods.caf.faces.data.tree.object.LazyNodeTreeContentProvider
com.webmethods.caf.faces.data.tree.object.FilterableListTreeContentProvider
public class FilterableListTreeContentProvider
Filterable list of rows in a tree, where the tree structure is defined either by
parentId
value-binding, or by childIds
value-binding.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.webmethods.caf.faces.data.tree.object.LazyNodeTreeContentProvider |
---|
LazyNodeTreeContentProvider.BreadthFirstTreeWalker, LazyNodeTreeContentProvider.DepthFirstTreeWalker, LazyNodeTreeContentProvider.NodeComparator, LazyNodeTreeContentProvider.NodeFilterableValueDecorator, LazyNodeTreeContentProvider.NodeIdsIterator, LazyNodeTreeContentProvider.ReverseDepthFirstTreeWalker |
Field Summary | |
---|---|
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. |
Fields inherited from class com.webmethods.caf.faces.data.tree.object.LazyNodeTreeContentProvider |
---|
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 |
Fields inherited from class com.webmethods.caf.faces.bean.PageFlowScopeAdapter |
---|
fExpireWithPageFlow |
Constructor Summary | |
---|---|
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)
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.webmethods.caf.faces.bean.PageFlowScopeAdapter |
---|
getExpireWithPageFlow, setExpireWithPageFlow |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected List m_list
protected ValueBinding m_parentId
protected ValueBinding m_childIds
protected ValueBinding m_rowId
Constructor Detail |
---|
public FilterableListTreeContentProvider()
public FilterableListTreeContentProvider(List list)
public FilterableListTreeContentProvider(List list, String rowVariable, String rowIdBinding, String parentIdBinding, String childIdsBinding)
public FilterableListTreeContentProvider(List list, String rowVariable, String rowIdBinding, String parentIdBinding, String childIdsBinding, String rowFilterValueBinding)
Method Detail |
---|
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
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |