public class BeanChildren extends Children.Keys
BeanNodes 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, setKeysinitCollection, refreshcreate, createLazy, findChild, getNode, getNodeAt, getNodes, getNodes, getNodesCount, getNodesCount, isInitialized, nodes, snapshotpublic 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.Keyssubbean - the bean from bean contextprotected void addNotify()
ChildrenChildren.Keys etc.).addNotify in class ChildrenChildren.isInitialized()protected void removeNotify()
removeNotify in class ChildrenBuilt on August 24 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.