Class RemoteFSNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
se.datadosen.jalbum.RemoteFSNode
-
Field Summary
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject -
Constructor Summary
ConstructorsConstructorDescriptionRemoteFSNode(String name, boolean link, boolean leaf, RemoteFSContext context) RemoteFSNode(String name, String remoteName, RemoteFSContext context) Set remoteName to null to indicate a RemoteFSNode that still has no corresponding physical directoryRemoteFSNode(RemoteFile remoteFile, boolean leaf, RemoteFSContext context) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintintlonggetSize()voidIndicate that underlying directory structure has changed and needs to be rebuilt Remember to call DefaultTreeModel.nodeStructureChanged afterwardsvoidbooleanisAlbum()booleanbooleanisLeaf()booleanisLink()booleanbooleanTemporary nodes (just created ones) have no physical remote directorystatic StringoldRemotePath(TreePath tp, RemoteFSContext context) Returns full path to a directory as it was named prior to being renamed (support for rename)conveniencestatic StringremotePath(TreePath tp, RemoteFSContext context) voidsetRemoteName(String remoteName) voidsetUserObject(Object userObject) static TreePathMethods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, 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, toString
-
Constructor Details
-
RemoteFSNode
Set remoteName to null to indicate a RemoteFSNode that still has no corresponding physical directory -
RemoteFSNode
-
RemoteFSNode
-
-
Method Details
-
isLateDiscovery
public boolean isLateDiscovery() -
setUserObject
- Specified by:
setUserObjectin interfaceMutableTreeNode- Overrides:
setUserObjectin classDefaultMutableTreeNode
-
isLeaf
public boolean isLeaf()- Specified by:
isLeafin interfaceTreeNode- Overrides:
isLeafin classDefaultMutableTreeNode
-
isLink
public boolean isLink() -
getSize
public long getSize() -
isPasswordProtected
public boolean isPasswordProtected() -
isAlbum
public boolean isAlbum() -
areChildrenDefined
public boolean areChildrenDefined() -
getChildCount
public int getChildCount()- Specified by:
getChildCountin interfaceTreeNode- Overrides:
getChildCountin classDefaultMutableTreeNode
-
getPlainFileCount
public int getPlainFileCount() -
isRealDirectory
public boolean isRealDirectory()Temporary nodes (just created ones) have no physical remote directory -
getRemoteName
-
setRemoteName
-
invalidate
public void invalidate()Indicate that underlying directory structure has changed and needs to be rebuilt Remember to call DefaultTreeModel.nodeStructureChanged afterwards -
invalidateNodeOnly
public void invalidateNodeOnly() -
remotePath
convenience -
oldRemotePath
-
remotePath
-
oldRemotePath
Returns full path to a directory as it was named prior to being renamed (support for rename) -
treePath
-