cz.cuni.amis.nb.util.collections
Class ObservableCollectionChildren<T>

Package class diagram package ObservableCollectionChildren
java.lang.Object
  extended by org.openide.nodes.Children
      extended by org.openide.nodes.Children.Array
          extended by org.openide.nodes.Children.Keys<T>
              extended by cz.cuni.amis.nb.util.collections.ObservableCollectionChildren<T>
All Implemented Interfaces:
Cloneable

public abstract class ObservableCollectionChildren<T>
extends org.openide.nodes.Children.Keys<T>

Listens for changes on the observable collection and creates/removes children nodes according to it.

Author:
ik

Nested Class Summary
 
Nested classes/interfaces inherited from class org.openide.nodes.Children
org.openide.nodes.Children.Array, org.openide.nodes.Children.Keys<T>, org.openide.nodes.Children.Map<T>, org.openide.nodes.Children.SortedArray, org.openide.nodes.Children.SortedMap<T>
 
Field Summary
protected  cz.cuni.amis.utils.collections.ObservableCollection<T> col
          Collection with objects that will be translated into nodes
protected  cz.cuni.amis.utils.collections.CollectionEventListener<T> listener
           
 
Fields inherited from class org.openide.nodes.Children.Array
nodes
 
Fields inherited from class org.openide.nodes.Children
LEAF, MUTEX
 
Constructor Summary
ObservableCollectionChildren(cz.cuni.amis.utils.collections.ObservableCollection<T> col)
           
 
Method Summary
 
Methods inherited from class org.openide.nodes.Children.Keys
add, clone, createNodes, destroyNodes, refreshKey, remove, setBefore, setKeys, setKeys
 
Methods inherited from class org.openide.nodes.Children.Array
initCollection, refresh
 
Methods inherited from class org.openide.nodes.Children
addNotify, create, createLazy, findChild, getNode, getNodeAt, getNodes, getNodes, getNodesCount, getNodesCount, isInitialized, nodes, removeNotify, snapshot
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

col

protected cz.cuni.amis.utils.collections.ObservableCollection<T> col
Collection with objects that will be translated into nodes


listener

protected cz.cuni.amis.utils.collections.CollectionEventListener<T> listener
Constructor Detail

ObservableCollectionChildren

public ObservableCollectionChildren(cz.cuni.amis.utils.collections.ObservableCollection<T> col)


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.