Class FileTree.Visitor

java.lang.Object
eu.bandm.tools.util.files.FileVisitor
eu.bandm.tools.util.files.FileTree.Visitor
Enclosing class:
FileTree

protected static class FileTree.Visitor extends FileVisitor
Translates all visited files into a Swing tree node and collects them into the node of the containing directory.
  • Field Details

  • Constructor Details

    • Visitor

      public Visitor()
      Only constructor
  • Method Details

    • process

      Service Access Point: Visit the given file and all its descendants, and return the corresponding swing tree node.
      Parameters:
      f - the file where to start the tree generation process
      Returns:
      the Swing graphics which corresponds to the given file tree
    • visit

      public void visit(File f)
      Worker methode, overridden here and called by the superclass. Central entry method.
      Is called for applying the visitor. Normally it will not be overwritten. Calls directly FileVisitor.visitNonDir(File) or FileVisitor.visitDir(File), depending on the type of the file.
      Overrides:
      visit in class FileVisitor
      Parameters:
      f - position in the file system from which visiting shall descend.