simtools.ui
Class SourceTree.CollectionNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by simtools.ui.SourceTree.LockableTreeNode
          extended by simtools.ui.SourceTree.CollectionNode
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode
Direct Known Subclasses:
SourceTree.CompoundCollectionNode
Enclosing class:
SourceTree

protected class SourceTree.CollectionNode
extends SourceTree.LockableTreeNode

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Method Summary
protected  void addDataSource(DataSource ds)
           
 void changeCollection(DataSourceCollection dsc)
           
 boolean isLocked()
          A collection node is locked if one of its source is locked
protected  void setSourceNodes(java.util.Iterator it)
           
 java.lang.String toString()
           
 
Methods inherited from class simtools.ui.SourceTree.LockableTreeNode
getLocked, setLocked
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class javax.swing.tree.DefaultMutableTreeNode

changeCollection

public void changeCollection(DataSourceCollection dsc)

setSourceNodes

protected void setSourceNodes(java.util.Iterator it)

addDataSource

protected void addDataSource(DataSource ds)

isLocked

public boolean isLocked()
A collection node is locked if one of its source is locked

Overrides:
isLocked in class SourceTree.LockableTreeNode