|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.filechooser.FileView
public abstract class FileView
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 |
---|
public FileView()
FileView
instance.
Method Detail |
---|
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
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |