public class BeanChildren extends Children.Keys
BeanNode
s are created for all
child beans, but this behaviour can be changed by
providing a different factory to the constructor.Modifier and Type | Class and Description |
---|---|
static interface |
BeanChildren.Factory
Controls which nodes
are created for a child bean.
|
Children.Array, Children.Keys<T>, Children.Map<T>, Children.SortedArray, Children.SortedMap<T>
nodes
Constructor and Description |
---|
BeanChildren(BeanContext bean)
Create
BeanNode children based on a Bean context. |
BeanChildren(BeanContext bean,
BeanChildren.Factory factory)
Create children based on a Bean context.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addNotify()
Called when children are first asked for nodes.
|
protected Node[] |
createNodes(Object subbean)
Creates a node representant for given bean.
|
protected void |
removeNotify()
Removes the listener and does some necessary clean up.
|
add, clone, destroyNodes, refreshKey, remove, setBefore, setKeys, setKeys
initCollection, refresh
create, createLazy, findChild, getNode, getNodeAt, getNodes, getNodes, getNodesCount, getNodesCount, isInitialized, nodes, snapshot
public BeanChildren(BeanContext bean)
BeanNode
children based on a Bean context.bean
- the contextpublic BeanChildren(BeanContext bean, BeanChildren.Factory factory)
bean
- the contextfactory
- a factory to use for creation of child nodesprotected Node[] createNodes(Object subbean)
createNodes
in class Children.Keys
subbean
- the bean from bean contextprotected void addNotify()
Children
Children.Keys
etc.).addNotify
in class Children
Children.isInitialized()
protected void removeNotify()
removeNotify
in class Children