com.webmethods.caf.faces.data.tree.object
Class FilterableListTreeContentProvider

java.lang.Object
  extended by com.webmethods.caf.faces.bean.PageFlowScopeAdapter
      extended by com.webmethods.caf.faces.data.tree.object.LazyNodeTreeContentProvider
          extended by com.webmethods.caf.faces.data.tree.object.FilterableListTreeContentProvider
All Implemented Interfaces:
IPageFlowScopeAdapter, IAddressableTableContentProvider, IContentProvider, IFilterableTableContentProvider, IRefreshable, IRefreshableContentProvider, ISelectableTableContentProvider, ISortableTableContentProvider, ITableContentProvider, ISelectableTreeContentProvider, ITreeContentProvider

public class FilterableListTreeContentProvider
extends LazyNodeTreeContentProvider

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.data.tree.object.LazyNodeTreeContentProvider
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
 
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

m_list

protected List m_list
Original list of rows.


m_parentId

protected ValueBinding m_parentId
Value binding used to calculate the parent id for the current row.


m_childIds

protected ValueBinding m_childIds
Value binding used to calculate child ids for the current row.


m_rowId

protected ValueBinding m_rowId
Value binding used to calculate row id for the current row.

Constructor Detail

FilterableListTreeContentProvider

public FilterableListTreeContentProvider()

FilterableListTreeContentProvider

public FilterableListTreeContentProvider(List list)

FilterableListTreeContentProvider

public FilterableListTreeContentProvider(List list,
                                         String rowVariable,
                                         String rowIdBinding,
                                         String parentIdBinding,
                                         String childIdsBinding)

FilterableListTreeContentProvider

public FilterableListTreeContentProvider(List list,
                                         String rowVariable,
                                         String rowIdBinding,
                                         String parentIdBinding,
                                         String childIdsBinding,
                                         String rowFilterValueBinding)
Method Detail

setRowVariable

public void setRowVariable(String var)
Description copied from interface: 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

Specified by:
setRowVariable in interface ITableContentProvider
Overrides:
setRowVariable in class LazyNodeTreeContentProvider

getList

public List getList()

setList

public void setList(List list)

getRowIdBinding

public ValueBinding getRowIdBinding()
Returns:
row id binding

setRowIdBinding

public void setRowIdBinding(ValueBinding binding)
Set row ID binding

Parameters:
binding -

getParentIdBinding

public ValueBinding getParentIdBinding()
Returns:
parent id binding

setParentIdBinding

public void setParentIdBinding(ValueBinding parentId)
Set parent id binding.

Parameters:
parentId -

getChildIdsBinding

public ValueBinding getChildIdsBinding()
Returns:
children id bindings

setChildIdsBinding

public void setChildIdsBinding(ValueBinding childIds)
Set children id bindings.

Parameters:
childIds -