javax.swing.filechooser
public abstract class FileView extends Object
Constructor and Description |
---|
FileView()
Creates a new
FileView instance. |
Modifier and Type | Method and Description |
---|---|
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. |
public FileView()
FileView
instance.public String getName(File file)
null
and should be overridden by subclasses.file
- the file.null
.public String getDescription(File file)
null
and should be overridden by subclasses.file
- the file.null
.public String getTypeDescription(File file)
null
and should be overridden by subclasses.file
- the file.null
.public Icon getIcon(File file)
Icon
to represent the specified file. This method
always returns null
and should be overridden by subclasses.file
- the file.null
.public Boolean isTraversable(File directory)
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.directory
- the directory.null
.