javax.swing.filechooser
Class FileView

java.lang.Object
  extended by javax.swing.filechooser.FileView
Direct Known Subclasses:
BasicFileChooserUI.BasicFileView

public abstract class FileView
extends Object

An abstract class that provides presentation information about files and directories. .


Constructor Summary
FileView()
          Creates a new FileView instance.
 
Method Summary
 String getDescription(File file)
          Returns a description for the specified file.
 Icon getIcon(File file)
          Returns an Icon to represent the specified file.
 String getName(File file)
          Returns the name for the specified file.
 String getTypeDescription(File file)
          Returns a description for the type of the specified file.
 Boolean isTraversable(File directory)
          Returns Boolean.TRUE if the given directory is traversable, and Boolean.FALSE if it is not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileView

public FileView()
Creates a new FileView instance.

Method Detail

getName

public String getName(File file)
Returns the name for the specified file. This method always returns null and should be overridden by subclasses.

Parameters:
file - the file.
Returns:
Always null.

getDescription

public String getDescription(File file)
Returns a description for the specified file. This method always returns null and should be overridden by subclasses.

Parameters:
file - the file.
Returns:
Always null.

getTypeDescription

public String getTypeDescription(File file)
Returns a description for the type of the specified file. This method always returns null and should be overridden by subclasses.

Parameters:
file - the file.
Returns:
Always null.

getIcon

public Icon getIcon(File file)
Returns an Icon to represent the specified file. This method always returns null and should be overridden by subclasses.

Parameters:
file - the file.
Returns:
Always null.

isTraversable

public Boolean isTraversable(File directory)
Returns Boolean.TRUE if the given directory is traversable, and Boolean.FALSE if it is not. This method always returns null and should be overridden by subclasses.

Parameters:
directory - the directory.
Returns:
Always null.