Class BoundChildrenNode
java.lang.Object
com.webmethods.caf.faces.data.tree.object.DefaultNode
com.webmethods.caf.faces.data.tree.object.BoundChildrenNode
- All Implemented Interfaces:
INode
,Serializable
INode
implementation that wraps an arbitrary java object,
creating a tree structure defined by a set of arbitrary children bindings.
If the object has children, one of the configured children
binding expressions should resolve to the List
or Object
[] (array) of the object's children.
This node must be initialized with the java object to wrap,
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). Unless this node
is a root node, it must also be initialized with its direct parent INode
.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
EatsPropertyNotFoundException
s raised by standard content-providers. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ValueExpression>
protected ValueExpression
protected String
Fields inherited from class com.webmethods.caf.faces.data.tree.object.DefaultNode
m_children, m_data, m_id, m_parent
-
Constructor Summary
ConstructorsConstructorDescriptionNew uninitialized node.BoundChildrenNode
(Object data) New node, partially initialized with a java object to wrap.BoundChildrenNode
(Object data, String dataVariable, String idBinding, String childrenBinding) New node, initialized with a java object to wrap, 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).BoundChildrenNode
(Object data, String dataVariable, ValueExpression idBinding, List<ValueExpression> childrenBinding) New node, initialized with a java object to wrap, 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).BoundChildrenNode
(Object data, String dataVariable, ValueExpression idBinding, List<ValueExpression> childrenBinding, INode parent) New node, initialized with a java object to wrap, 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), a children binding (a value-binding which evaluates to the list or array of children for the current node), and its direct parentINode
.BoundChildrenNode
(Object data, String dataVariable, ValueBinding idBinding, List<ValueBinding> childrenBinding) Deprecated.use ValueExpression parameters insteadBoundChildrenNode
(Object data, String dataVariable, ValueBinding idBinding, List<ValueBinding> childrenBinding, INode parent) Deprecated.use ValueExpression parameters instead -
Method Summary
Modifier and TypeMethodDescriptionList ofINode
children, in order.Deprecated.usegetChildrenExpression()
insteadgetId()
Row id.Deprecated.usegetIdExpression()
insteadvoid
setChildrenBinding
(String binding) Deprecated.isesetChildrenExpression(String)
insteadvoid
setChildrenBinding
(List<ValueBinding> binding) Deprecated.usesetChildrenExpression(List)
insteadvoid
setChildrenExpression
(String binding) Set children binding list.void
setChildrenExpression
(List<ValueExpression> binding) Set children binding list.void
Set node data.void
setDataVariable
(String var) Set data variable name.void
setIdBinding
(String binding) Deprecated.usesetIdExpession(String)
insteadvoid
setIdBinding
(ValueBinding binding) Deprecated.usesetIdExpression(ValueExpression)
insteadvoid
setIdExpession
(String binding) Construct a binding using the binding string and set as ID binding.void
setIdExpression
(ValueExpression binding) Set ID binding.Methods inherited from class com.webmethods.caf.faces.data.tree.object.DefaultNode
addChild, getData, getParent, removeChild, setChildren, setId, setParent
-
Field Details
-
m_var
-
m_idBinding
-
m_childrenBinding
-
-
Constructor Details
-
BoundChildrenNode
public BoundChildrenNode()New uninitialized node. This node must be initialized with the java object to wrap, 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). Unless this node is a root node, it must also be initialized with its direct parentINode
. -
BoundChildrenNode
New node, partially initialized with a java object to wrap. This node must be initialized additionally with 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). Unless this node is a root node, it must also be initialized with its direct parentINode
. -
BoundChildrenNode
public BoundChildrenNode(Object data, String dataVariable, String idBinding, String childrenBinding) New node, initialized with a java object to wrap, 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). Unless this node is a root node, it must also be initialized with its direct parentINode
. -
BoundChildrenNode
@Deprecated public BoundChildrenNode(Object data, String dataVariable, ValueBinding idBinding, List<ValueBinding> childrenBinding) Deprecated.use ValueExpression parameters insteadNew node, initialized with a java object to wrap, 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). Unless this node is a root node, it must also be initialized with its direct parentINode
. -
BoundChildrenNode
public BoundChildrenNode(Object data, String dataVariable, ValueExpression idBinding, List<ValueExpression> childrenBinding) New node, initialized with a java object to wrap, 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). Unless this node is a root node, it must also be initialized with its direct parentINode
. -
BoundChildrenNode
@Deprecated public BoundChildrenNode(Object data, String dataVariable, ValueBinding idBinding, List<ValueBinding> childrenBinding, INode parent) Deprecated.use ValueExpression parameters insteadNew node, initialized with a java object to wrap, 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), a children binding (a value-binding which evaluates to the list or array of children for the current node), and its direct parentINode
. -
BoundChildrenNode
public BoundChildrenNode(Object data, String dataVariable, ValueExpression idBinding, List<ValueExpression> childrenBinding, INode parent) New node, initialized with a java object to wrap, 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), a children binding (a value-binding which evaluates to the list or array of children for the current node), and its direct parentINode
.
-
-
Method Details
-
getId
Description copied from interface:INode
Row id.- Specified by:
getId
in interfaceINode
- Overrides:
getId
in classDefaultNode
-
getChildren
Description copied from interface:INode
List ofINode
children, in order. Empty list (non-null) for leaf nodes.- Specified by:
getChildren
in interfaceINode
- Overrides:
getChildren
in classDefaultNode
-
setData
Description copied from class:DefaultNode
Set node data.- Overrides:
setData
in classDefaultNode
-
getDataVariable
- Returns:
- data variable name.
-
setDataVariable
Set data variable name.- Parameters:
var
-
-
getIdBinding
Deprecated.usegetIdExpression()
instead- Returns:
- ID binding.
-
setIdBinding
Deprecated.usesetIdExpression(ValueExpression)
insteadSet ID binding.- Parameters:
binding
-
-
getIdExpression
- Returns:
- ID binding.
-
setIdExpression
Set ID binding.- Parameters:
binding
-
-
setIdBinding
Deprecated.usesetIdExpession(String)
insteadConstruct a binding using the binding string and set as ID binding.- Parameters:
binding
-
-
setIdExpession
Construct a binding using the binding string and set as ID binding.- Parameters:
binding
-
-
getChildrenBinding
Deprecated.usegetChildrenExpression()
instead- Returns:
- children binding list.
-
setChildrenBinding
Deprecated.usesetChildrenExpression(List)
insteadSet children binding list.- Parameters:
binding
-
-
getChildrenExpression
- Returns:
- children binding list.
-
setChildrenExpression
Set children binding list.- Parameters:
binding
-
-
setChildrenBinding
Deprecated.isesetChildrenExpression(String)
insteadSet children binding list. The binding string will be converted to list usingListTools.stringToList(String)
and the children bindings are constructed based on the list.- Parameters:
binding
-
-
setChildrenExpression
Set children binding list. The binding string will be converted to list usingListTools.stringToList(String)
and the children bindings are constructed based on the list.- Parameters:
binding
-
-