public abstract class FileView extends java.lang.Object
| Constructor and Description |
|---|
FileView()
Creates a new
FileView instance. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription(java.io.File file)
Returns a description for the specified file.
|
javax.swing.Icon |
getIcon(java.io.File file)
Returns an
Icon to represent the specified file. |
java.lang.String |
getName(java.io.File file)
Returns the name for the specified file.
|
java.lang.String |
getTypeDescription(java.io.File file)
Returns a description for the type of the specified file.
|
java.lang.Boolean |
isTraversable(java.io.File directory)
Returns
Boolean.TRUE if the given directory is traversable, and
Boolean.FALSE if it is not. |
public FileView()
FileView instance.public java.lang.String getName(java.io.File file)
null and should be overridden by subclasses.file - the file.null.public java.lang.String getDescription(java.io.File file)
null and should be overridden by subclasses.file - the file.null.public java.lang.String getTypeDescription(java.io.File file)
null and should be overridden by subclasses.file - the file.null.public javax.swing.Icon getIcon(java.io.File file)
Icon to represent the specified file. This method
always returns null and should be overridden by subclasses.file - the file.null.public java.lang.Boolean isTraversable(java.io.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.