javax.swing.filechooser

Class FileView

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
StringgetDescription(File file)
Returns a description for the specified file.
IcongetIcon(File file)
Returns an {@link Icon} to represent the specified file.
StringgetName(File file)
Returns the name for the specified file.
StringgetTypeDescription(File file)
Returns a description for the type of the specified file.
BooleanisTraversable(File directory)
Returns {@link Boolean#TRUE} if the given directory is traversable, and {@link Boolean#FALSE} if it is not.

Constructor Detail

FileView

public FileView()
Creates a new FileView instance.

Method Detail

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.

getIcon

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

Parameters: file the file.

Returns: Always null.

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.

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.

isTraversable

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

Parameters: directory the directory.

Returns: Always null.