com.mf.kennewick.swing
Class WindowsAlternateFileSystemView

java.lang.Object
  extended byjavax.swing.filechooser.FileSystemView
      extended bycom.mf.kennewick.swing.WindowsAlternateFileSystemView

public class WindowsAlternateFileSystemView
extends javax.swing.filechooser.FileSystemView


Constructor Summary
WindowsAlternateFileSystemView()
           
 
Method Summary
 java.io.File createNewFolder(java.io.File containingDir)
          creates a new folder with a default folder name.
 java.io.File[] getRoots()
          Returns all root partitians on this system.
 boolean isHiddenFile(java.io.File f)
          Returns whether a file is hidden or not.
 boolean isRoot(java.io.File f)
          Returns true if the given file is a root.
 
Methods inherited from class javax.swing.filechooser.FileSystemView
createFileObject, createFileObject, createFileSystemRoot, getChild, getDefaultDirectory, getFiles, getFileSystemView, getHomeDirectory, getParentDirectory, getSystemDisplayName, getSystemIcon, getSystemTypeDescription, isComputerNode, isDrive, isFileSystem, isFileSystemRoot, isFloppyDrive, isParent, isTraversable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowsAlternateFileSystemView

public WindowsAlternateFileSystemView()
Method Detail

isRoot

public boolean isRoot(java.io.File f)
Returns true if the given file is a root.


createNewFolder

public java.io.File createNewFolder(java.io.File containingDir)
                             throws java.io.IOException
creates a new folder with a default folder name.

Throws:
java.io.IOException

isHiddenFile

public boolean isHiddenFile(java.io.File f)
Returns whether a file is hidden or not. On Windows there is currently no way to get this information from io.File, therefore always return false.


getRoots

public java.io.File[] getRoots()
Returns all root partitians on this system. On Windows, this will be the A: through Z: drives.



Copyright © 2004 Media Fortress, LLC, LLC. Licensed for commercial use under the Apache 2.0 License.