Package github.jaffe2718.mccs.jfx.unit
Class PathNodeItem
java.lang.Object
github.jaffe2718.mccs.jfx.unit.PathNodeItem
- Author:
- jaffe2718 Use this class to create a file tree
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
icon
public javafx.scene.Node iconThe icon of the file
-
-
Constructor Details
-
PathNodeItem
- Parameters:
path
- the path of the file
-
-
Method Details
-
getName
get the name of the file- Returns:
- the name of the 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
get the name of the file -
setFile
set the destination file- Parameters:
newFile
- the destination file object
-