K
- the type of key you would like to use to represent nodespublic interface NodeList<K>
NodeFactory
,
NodeFactorySupport
,
Children.Keys
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ChangeListener l)
Adds a listener to a change in keys.
|
void |
addNotify()
Called when the node list is to be active.
|
List<K> |
keys()
Obtains child keys which will be passed to
NodeList.node(K) . |
Node |
node(K key)
Creates a node for a given key.
|
void |
removeChangeListener(ChangeListener l)
Removes a change listener.
|
void |
removeNotify()
Called when the node list is no longer needed.
|
List<K> keys()
NodeList.node(K)
.
If there is a change in the set of keys based on external events,
fire a ChangeEvent
.void addChangeListener(ChangeListener l)
l
- a listener to addvoid removeChangeListener(ChangeListener l)
l
- a listener to removeNode node(K key)
key
- a key which was included in NodeList.keys()
void addNotify()
Children.addNotify()
.
If there is any need to register listeners or begin caching of state, do it here.Children.addNotify()
void removeNotify()
Children.removeNotify()
.Children.removeNotify()