Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.batik.apps.svgbrowser
Class WindowsAltFileSystemView  view WindowsAltFileSystemView download WindowsAltFileSystemView.java

java.lang.Object
  extended byjavax.swing.filechooser.FileSystemView
      extended byorg.apache.batik.apps.svgbrowser.WindowsAltFileSystemView

class WindowsAltFileSystemView
extends javax.swing.filechooser.FileSystemView

Work around FileSystemView implementation bug on the Windows platform. See: Using JFileChooser in WebStart-deployed application

Version:
$Id: WindowsAltFileSystemView.java,v 1.4 2004/08/18 07:12:27 vhardy Exp $

Nested Class Summary
(package private)  class WindowsAltFileSystemView.FileSystemRoot
           
 
Field Summary
static java.lang.String EXCEPTION_CONTAINING_DIR_NULL
           
static java.lang.String EXCEPTION_DIRECTORY_ALREADY_EXISTS
           
static java.lang.String FLOPPY_DRIVE
           
private static java.lang.reflect.Method listRootsMethod
           
private static boolean listRootsMethodChecked
           
static java.lang.String NEW_FOLDER_NAME
           
private static java.lang.Object[] noArgs
           
private static java.lang.Class[] noArgTypes
           
 
Fields inherited from class javax.swing.filechooser.FileSystemView
 
Constructor Summary
(package private) WindowsAltFileSystemView()
           
 
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
 

Field Detail

EXCEPTION_CONTAINING_DIR_NULL

public static final java.lang.String EXCEPTION_CONTAINING_DIR_NULL
See Also:
Constant Field Values

EXCEPTION_DIRECTORY_ALREADY_EXISTS

public static final java.lang.String EXCEPTION_DIRECTORY_ALREADY_EXISTS
See Also:
Constant Field Values

NEW_FOLDER_NAME

public static final java.lang.String NEW_FOLDER_NAME
See Also:
Constant Field Values

FLOPPY_DRIVE

public static final java.lang.String FLOPPY_DRIVE
See Also:
Constant Field Values

noArgs

private static final java.lang.Object[] noArgs

noArgTypes

private static final java.lang.Class[] noArgTypes

listRootsMethod

private static java.lang.reflect.Method listRootsMethod

listRootsMethodChecked

private static boolean listRootsMethodChecked
Constructor Detail

WindowsAltFileSystemView

WindowsAltFileSystemView()
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.


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.