Cloneable
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 | 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 | 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 | 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.
|
create, createLazy, findChild, getNode, getNodeAt, getNodes, getNodes, getNodesCount, getNodesCount, isInitialized, nodes, snapshot
initCollection, refresh
add, clone, destroyNodes, refreshKey, remove, setBefore, setKeys, setKeys
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
Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.