public class BoundChildrenTreeContentProvider extends NodeTreeContentProvider
Tree provider initialized with a list of roots, where the tree structure is defined by a set of children bindings. For each node, these bindings are evaluated to determine the current node's list of children.
The nodes of this content provider may be arbitrary java objects
(they will be wrapped by BoundChildrenNode
s).
If the object has tree children, one of the configured children
binding expressions should resolve to the List
or Object
[] (array) of children.
This provider must be initialized with a list (or array) of root nodes, a row variable (used in binding expressions to indicate the current node), a row id binding (a value-binding which evaluates to the unique id of the current node), and a children binding (a value-binding which evaluates to the list or array of children for the current node).
NodeTreeContentProvider.DummyValueExpression, NodeTreeContentProvider.NodeComparator, NodeTreeContentProvider.NodeIdsIterator
FilterableSelectableListTableContentProvider.RowFilterableValueDecorator
SelectableListTableContentProvider.Row, SelectableListTableContentProvider.RowComparator
Modifier and Type | Field and Description |
---|---|
protected List<ValueExpression> |
m_childrenBinding |
m_helper, m_roots, openToDepth
m_filter, m_filterable, m_filterValue, m_unfilteredlist
m_autoIdCounter, m_map, m_originalList, m_selectableHelper
m_array, m_canTemplateRow, m_index, m_list, m_onCreateRow, m_onDeleteRow, m_rowId, m_rowType, m_sort, m_templateRow, m_var
fExpireWithPageFlow
Constructor and Description |
---|
BoundChildrenTreeContentProvider()
New, un-initialized tree provider.
|
BoundChildrenTreeContentProvider(List<?> roots,
String rowVariable,
String rowIdBinding,
String childrenBinding)
New tree provider initialized with a list of root nodes.
|
BoundChildrenTreeContentProvider(Object[] roots,
String rowVariable,
String rowIdBinding,
String childrenBinding)
New tree provider initialized with an array of root nodes.
|
BoundChildrenTreeContentProvider(Object root,
String rowVariable,
String rowIdBinding,
String childrenBinding)
New tree provider initialized with a single root node.
|
Modifier and Type | Method and Description |
---|---|
List<ValueBinding> |
getChildrenBinding()
Deprecated.
use
getChildrenExpression() instead |
List<ValueExpression> |
getChildrenExpression() |
void |
setChildrenBinding(List<ValueBinding> binding)
Deprecated.
use
setChildrenExpression(List) instead |
void |
setChildrenBinding(String binding)
Deprecated.
use
setChildrenExpression(String) instead |
void |
setChildrenExpression(List<ValueExpression> binding)
Set children binding list.
|
void |
setChildrenExpression(String binding)
Set children binding list.
|
void |
setList(List<?> list)
Sets a list to wrap
|
void |
setRowIdBinding(String binding)
Construct value binding using the binding string and set it to row id binding.
|
calculateRowId, flatten, getCanTemplateRow, getChildIds, getCurrentNode, getCurrentRow, getDepth, getHasChildren, getLastChildAncestors, getOpenIds, getOpenToDepth, getParentId, getRootIds, getUnopenIds, getUseUnopenModel, isFirstChild, isLastChild, isOpen, isRowMixed, isVisible, openTreeNodes, setOpen, setOpenIds, setOpenToDepth, setUnopenIds, sort, sort
filter, getFilter, getRowFilterValueBinding, getRowFilterValueBindingAsString, getRowFilterValueExpression, isFilterable, setFilter, setFilterable, setRowFilterValueBinding, setRowFilterValueBindingAsString, setRowFilterValueExpression
createRow, deleteRow, getList, getNeedRefresh, getRowId, getRowSelectedCount, getRowSelectedIds, getRowUnselectedIds, getSelectedRows, getUseUnselectedModel, isAddressable, isAutoRefresh, isRowSelected, moveTo, refresh, setAutoRefresh, setCurrentRow, setNeedRefresh, setRowById, setRowSelected, setRowSelectedIds, setRowUnselectedIds, setRowVariable, setTemplateRow, supportsAutoRefresh, updateOriginalList
calculateRowId, getArray, getOnCreateRow, getOnCreateRowExpression, getOnDeleteRow, getOnDeleteRowExpression, getPropertyKeys, getRowCount, getRowIdBinding, getRowIdExpression, getRowIndex, getRowType, getRowVariable, getSort, getType, getValue, hasProperty, isReadOnly, isReorderable, isRowAvailable, isTemplateRow, newRow, setArray, setCanTemplateRow, setOnCreateRow, setOnCreateRowExpression, setOnDeleteRow, setOnDeleteRowExpression, setRowId, setRowIdBinding, setRowIdExpression, setRowIndex, setRowType, setSort, setValue, toString
getExpireWithPageFlow, setExpireWithPageFlow
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getRowSelectedCount, getRowSelectedIds, getRowUnselectedIds, getUseUnselectedModel, isRowSelected, setRowSelected, setRowSelectedIds, setRowUnselectedIds
getRowId, isAddressable, setRowById
getRowCount, getRowIndex, getRowVariable, isRowAvailable, setRowIndex, setRowVariable
getPropertyKeys, getType, getValue, hasProperty, toString
protected List<ValueExpression> m_childrenBinding
public BoundChildrenTreeContentProvider()
public BoundChildrenTreeContentProvider(Object root, String rowVariable, String rowIdBinding, String childrenBinding)
public BoundChildrenTreeContentProvider(List<?> roots, String rowVariable, String rowIdBinding, String childrenBinding)
public void setList(List<?> list)
SelectableListTableContentProvider
setList
in class NodeTreeContentProvider
list
- a listpublic void setRowIdBinding(String binding)
@Deprecated public List<ValueBinding> getChildrenBinding()
getChildrenExpression()
instead@Deprecated public void setChildrenBinding(List<ValueBinding> binding)
setChildrenExpression(List)
insteadbinding
- public List<ValueExpression> getChildrenExpression()
public void setChildrenExpression(List<ValueExpression> binding)
binding
- @Deprecated public void setChildrenBinding(String binding)
setChildrenExpression(String)
insteadListTools.stringToList(String)
and the children bindings are constructed based on the list.binding
- public void setChildrenExpression(String binding)
ListTools.stringToList(String)
and the children bindings are constructed based on the list.binding
-