public class DirectoryTreeNode extends LiveTreeNode
Modifier and Type | Field and Description |
---|---|
protected File |
afile |
protected String |
name |
children, parent
Constructor and Description |
---|
DirectoryTreeNode(String name,
File f) |
Modifier and Type | Method and Description |
---|---|
boolean |
canExpand()
This tries to find the address of a child given its path from the parent.
|
boolean |
collapse()
Tell it that it can release its children.
|
void |
copyFrom(Object other)
Copy all appropriate data from another object.
|
boolean |
expand()
Tell it to expand (ie gather its children).
|
String |
getName()
By default this returns the String "unnamed".
|
boolean |
isLeaf()
Returns whether this is a node or leaf.
|
String[] |
list() |
protected String[] |
listRoots(File forFile) |
File |
toFile() |
String |
toString()
Return a String representation of this object.
|
addChild, addressOfChild, clearChildren, freeOnCollapse, freeTreeNode, getChild, getChildAt, getChildCount, getChildren, getFullCopy, getFullDepth, getParent, getTestTree, indexOfChild, insertChild, removeChild, setParent
action, action, addMeToPanel, addObjectToPanel, addToPanel, editorCanExit, enableEditorScrolling, fieldChanged, fieldChanged, fieldEvent, getEditor, getEditorScroller, getIcon, input, isNamed, liveMain, main, makeNewEditor, menuItemSelected, prepareMainPanel, runAsApp, setToEditor, willBeSetToEditor
getParentObject, getParentObject, setParentObject
decode, decoded, decoded, decodeFields, decodeFields, encode, encoded, encoded, encodeFields, encodeFields, textDecode, textEncode
_getFieldType, _getSetField, cache, compareTo, copied, equals, getCopy, getDeclaredField, getDeclaredFieldValue, getMyFieldList, getNew
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
compareTo
textDecode, textEncode
public void copyFrom(Object other)
DataUnit
copyFrom
in interface DataUnit
copyFrom
in class DataObject
public String getName()
LiveObject
getName
in interface Named
getName
in class LiveObject
public File toFile()
public String[] list()
public boolean canExpand()
LiveTreeNode
canExpand
in interface TreeNode
canExpand
in class LiveTreeNode
public boolean isLeaf()
TreeNode
isLeaf
in interface TreeNode
isLeaf
in class LiveTreeNode
public boolean expand()
TreeNode
expand
in interface TreeNode
expand
in class LiveTreeNode
public boolean collapse()
TreeNode
collapse
in interface TreeNode
collapse
in class LiveTreeNode