Class BeanXFile

java.lang.Object
java.io.File
com.sun.xfilechooser.BeanXFile
All Implemented Interfaces:
Serializable, Comparable<File>

public class BeanXFile extends File
The BeanXFile class is the interface that makes an XFile object look like a File object. This class is needed to support the UI of the JFileChooser which accesses file objects. Thus all the methods would call the corresponding XFile methods.
See Also:
  • Constructor Details

    • BeanXFile

      public BeanXFile(String path)
    • BeanXFile

      public BeanXFile(File dir, String name)
  • Method Details

    • getPath

      public String getPath()
      Overrides:
      getPath in class File
    • getAbsolutePath

      public String getAbsolutePath()
      Overrides:
      getAbsolutePath in class File
    • getCanonicalPath

      public String getCanonicalPath()
      Overrides:
      getCanonicalPath in class File
    • getName

      public String getName()
      Overrides:
      getName in class File
    • renameTo

      public boolean renameTo(File dest)
      Overrides:
      renameTo in class File
    • getParent

      public String getParent()
      Overrides:
      getParent in class File
    • exists

      public boolean exists()
      Overrides:
      exists in class File
    • canWrite

      public boolean canWrite()
      Overrides:
      canWrite in class File
    • canRead

      public boolean canRead()
      Overrides:
      canRead in class File
    • isFile

      public boolean isFile()
      Overrides:
      isFile in class File
    • isDirectory

      public boolean isDirectory()
      Overrides:
      isDirectory in class File
    • isAbsolute

      public boolean isAbsolute()
      Overrides:
      isAbsolute in class File
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class File
    • lastModified

      public long lastModified()
      Overrides:
      lastModified in class File
    • length

      public long length()
      Overrides:
      length in class File
    • mkdir

      public boolean mkdir()
      Overrides:
      mkdir in class File
    • mkdirs

      public boolean mkdirs()
      Overrides:
      mkdirs in class File
    • list

      public String[] list()
      Overrides:
      list in class File
    • toString

      public String toString()
      Overrides:
      toString in class File
    • delete

      public boolean delete()
      Overrides:
      delete in class File