Class RemoteFSNode

All Implemented Interfaces:
Serializable, Cloneable, MutableTreeNode, TreeNode

public class RemoteFSNode extends DefaultMutableTreeNode
See Also:
  • Constructor Details

    • RemoteFSNode

      public RemoteFSNode(String name, String remoteName, RemoteFSContext context)
      Set remoteName to null to indicate a RemoteFSNode that still has no corresponding physical directory
    • RemoteFSNode

      public RemoteFSNode(String name, boolean link, boolean leaf, RemoteFSContext context)
    • RemoteFSNode

      public RemoteFSNode(RemoteFile remoteFile, boolean leaf, RemoteFSContext context)
  • Method Details

    • isLateDiscovery

      public boolean isLateDiscovery()
    • setUserObject

      public void setUserObject(Object userObject)
      Specified by:
      setUserObject in interface MutableTreeNode
      Overrides:
      setUserObject in class DefaultMutableTreeNode
    • isLeaf

      public boolean isLeaf()
      Specified by:
      isLeaf in interface TreeNode
      Overrides:
      isLeaf in class DefaultMutableTreeNode
    • 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:
      getChildCount in interface TreeNode
      Overrides:
      getChildCount in class DefaultMutableTreeNode
    • getPlainFileCount

      public int getPlainFileCount()
    • isRealDirectory

      public boolean isRealDirectory()
      Temporary nodes (just created ones) have no physical remote directory
    • getRemoteName

      public String getRemoteName()
    • setRemoteName

      public void setRemoteName(String remoteName)
    • 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

      public String remotePath()
      convenience
    • oldRemotePath

      public String oldRemotePath()
    • remotePath

      public static String remotePath(TreePath tp, RemoteFSContext context)
    • oldRemotePath

      public static String oldRemotePath(TreePath tp, RemoteFSContext context)
      Returns full path to a directory as it was named prior to being renamed (support for rename)
    • treePath

      public static TreePath treePath(String remotePath, TreeModel model)