Class PathNodeItem

java.lang.Object
github.jaffe2718.mccs.jfx.unit.PathNodeItem

public class PathNodeItem extends Object
Author:
jaffe2718 Use this class to create a file tree
  • Field Details

    • icon

      public javafx.scene.Node icon
      The icon of the file
  • Constructor Details

    • PathNodeItem

      public PathNodeItem(String path)
      Parameters:
      path - the path of the file
  • Method Details

    • getName

      public String getName()
      get the name of the file
      Returns:
      the name of the file
    • getFile

      public File getFile()
      get the File object of the file
      Returns:
      the File object of the file
    • isDirectory

      public boolean isDirectory()
      if the file is a directory
      Returns:
      if the file is a directory
    • toString

      public String toString()
      get the name of the file
      Overrides:
      toString in class Object
      Returns:
      the name of the file
    • setFile

      public void setFile(File newFile)
      set the destination file
      Parameters:
      newFile - the destination file object