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, setParentaction, action, addMeToPanel, addObjectToPanel, addToPanel, editorCanExit, enableEditorScrolling, fieldChanged, fieldChanged, fieldEvent, getEditor, getEditorScroller, getIcon, input, isNamed, liveMain, main, makeNewEditor, menuItemSelected, prepareMainPanel, runAsApp, setToEditor, willBeSetToEditorgetParentObject, getParentObject, setParentObjectdecode, decoded, decoded, decodeFields, decodeFields, encode, encoded, encoded, encodeFields, encodeFields, textDecode, textEncode_getFieldType, _getSetField, cache, compareTo, copied, equals, getCopy, getDeclaredField, getDeclaredFieldValue, getMyFieldList, getNewclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcompareTotextDecode, textEncodepublic void copyFrom(Object other)
DataUnitcopyFrom in interface DataUnitcopyFrom in class DataObjectpublic String getName()
LiveObjectgetName in interface NamedgetName in class LiveObjectpublic File toFile()
public String[] list()
public boolean canExpand()
LiveTreeNodecanExpand in interface TreeNodecanExpand in class LiveTreeNodepublic boolean isLeaf()
TreeNodeisLeaf in interface TreeNodeisLeaf in class LiveTreeNodepublic boolean expand()
TreeNodeexpand in interface TreeNodeexpand in class LiveTreeNodepublic boolean collapse()
TreeNodecollapse in interface TreeNodecollapse in class LiveTreeNode