|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--javax.swing.tree.DefaultMutableTreeNode
|
+--org.bioquery.gui.BQTreeNode
A MutableTreeNode customized to present files and directories. This TreeNode is initialized by a file path String and determines whether a node is a file or directory based on whether the path ends with a FileSeparator character. Files are automatically leaves, while directories are not.
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Constructor Summary | |
BQTreeNode()
|
|
BQTreeNode(java.lang.Object userObject)
|
|
BQTreeNode(java.lang.Object userObject,
boolean allowsChildren)
|
|
| Method Summary | |
java.lang.String |
getFilePath()
|
java.lang.String |
getFileSeparator()
|
boolean |
getIsLoaded()
|
boolean |
getModifiable()
|
boolean |
isLeaf()
Overrides parent method to link the isLeaf() designation with the getAllowsChildren() designation, which should ideally be explicitly set in the constructor. |
void |
setFileSeparator(java.lang.String separator)
|
void |
setIsLoaded(boolean loaded)
|
void |
setModifiable(boolean canModify)
|
java.lang.String |
toString()
|
| 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, 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 |
| Constructor Detail |
public BQTreeNode()
public BQTreeNode(java.lang.Object userObject)
public BQTreeNode(java.lang.Object userObject,
boolean allowsChildren)
| Method Detail |
public boolean isLeaf()
isLeaf in class javax.swing.tree.DefaultMutableTreeNodepublic java.lang.String getFileSeparator()
public void setFileSeparator(java.lang.String separator)
public boolean getIsLoaded()
public void setIsLoaded(boolean loaded)
public boolean getModifiable()
public void setModifiable(boolean canModify)
public java.lang.String getFilePath()
public java.lang.String toString()
toString in class javax.swing.tree.DefaultMutableTreeNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||