public class MoleculeArchiveSwingTreeNode extends MoleculeArchiveTreeNode implements javax.swing.tree.MutableTreeNode
Constructor and Description |
---|
MoleculeArchiveSwingTreeNode(java.lang.String path) |
MoleculeArchiveSwingTreeNode(java.lang.String path,
javax.swing.tree.DefaultTreeModel model) |
MoleculeArchiveSwingTreeNode(java.lang.String path,
MoleculeArchiveSwingTreeNode parent) |
MoleculeArchiveSwingTreeNode(java.lang.String path,
MoleculeArchiveSwingTreeNode parent,
javax.swing.tree.DefaultTreeModel model) |
Modifier and Type | Method and Description |
---|---|
void |
add(MoleculeArchiveSwingTreeNode child) |
MoleculeArchiveSwingTreeNode |
addChildPath(java.lang.String path) |
MoleculeArchiveSwingTreeNode |
addPath(java.lang.String path)
Adds a node at the specified full path and any parent nodes along the path,
if they do not already exist.
|
java.util.Enumeration |
children() |
static void |
fromFlatList(MoleculeArchiveSwingTreeNode root,
java.lang.String[] pathList,
java.lang.String groupSeparator) |
boolean |
getAllowsChildren() |
MoleculeArchiveSwingTreeNode |
getChildAt(int i) |
int |
getChildCount() |
int |
getIndex(javax.swing.tree.TreeNode n) |
javax.swing.tree.TreeNode |
getParent() |
void |
insert(javax.swing.tree.MutableTreeNode child,
int index) |
boolean |
isLeaf() |
void |
remove(int index) |
void |
remove(javax.swing.tree.MutableTreeNode node) |
void |
removeFromParent() |
void |
setLeaf(boolean leaf) |
void |
setParent(javax.swing.tree.MutableTreeNode newParent) |
void |
setUserObject(java.lang.Object object) |
add, addPath, childrenList, flattenTree, fromFlatList, fromFlatList, getDescendant, getDescendants, getNodeName, getParentPath, getPath, printRecursive, remove, removeAllChildren, removeLeadingSlash, structureEquals, toString
public MoleculeArchiveSwingTreeNode(java.lang.String path)
public MoleculeArchiveSwingTreeNode(java.lang.String path, javax.swing.tree.DefaultTreeModel model)
public MoleculeArchiveSwingTreeNode(java.lang.String path, MoleculeArchiveSwingTreeNode parent)
public MoleculeArchiveSwingTreeNode(java.lang.String path, MoleculeArchiveSwingTreeNode parent, javax.swing.tree.DefaultTreeModel model)
public java.util.Enumeration children()
children
in interface javax.swing.tree.TreeNode
public void add(MoleculeArchiveSwingTreeNode child)
public MoleculeArchiveSwingTreeNode addPath(java.lang.String path)
MoleculeArchiveTreeNode
addPath
in class MoleculeArchiveTreeNode
path
- the full path to nodepublic MoleculeArchiveSwingTreeNode addChildPath(java.lang.String path)
public boolean getAllowsChildren()
getAllowsChildren
in interface javax.swing.tree.TreeNode
public MoleculeArchiveSwingTreeNode getChildAt(int i)
getChildAt
in interface javax.swing.tree.TreeNode
public int getChildCount()
getChildCount
in interface javax.swing.tree.TreeNode
public int getIndex(javax.swing.tree.TreeNode n)
getIndex
in interface javax.swing.tree.TreeNode
public javax.swing.tree.TreeNode getParent()
getParent
in interface javax.swing.tree.TreeNode
public boolean isLeaf()
isLeaf
in interface javax.swing.tree.TreeNode
public void setLeaf(boolean leaf)
public static void fromFlatList(MoleculeArchiveSwingTreeNode root, java.lang.String[] pathList, java.lang.String groupSeparator)
public void insert(javax.swing.tree.MutableTreeNode child, int index)
insert
in interface javax.swing.tree.MutableTreeNode
public void remove(int index)
remove
in interface javax.swing.tree.MutableTreeNode
public void remove(javax.swing.tree.MutableTreeNode node)
remove
in interface javax.swing.tree.MutableTreeNode
public void removeFromParent()
removeFromParent
in interface javax.swing.tree.MutableTreeNode
public void setParent(javax.swing.tree.MutableTreeNode newParent)
setParent
in interface javax.swing.tree.MutableTreeNode
public void setUserObject(java.lang.Object object)
setUserObject
in interface javax.swing.tree.MutableTreeNode