public class ChooseFileView
extends javax.swing.filechooser.FileView
构造器和说明 |
---|
ChooseFileView() |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getDescription(java.io.File f)
A human readable description of the file.
|
java.lang.String |
getExtension(java.io.File f)
Conveinience method that returnsa the "dot" extension for the
given file.
|
javax.swing.Icon |
getIcon(java.io.File f)
Icon that reperesents this file.
|
java.lang.String |
getName(java.io.File f)
The name of the file.
|
java.lang.String |
getTypeDescription(java.io.File f)
A human readable description of the type of the file.
|
java.lang.Boolean |
isHidden(java.io.File f)
Whether the file is hidden or not.
|
boolean |
isRootFile(java.io.File file)
Is root file
|
java.lang.Boolean |
isTraversable(java.io.File f)
Whether the directory is traversable or not.
|
void |
putDescription(java.io.File f,
java.lang.String fileDescription)
Adds a human readable description of the file.
|
void |
putIcon(java.lang.String extension,
javax.swing.Icon icon)
Adds an icon based on the file type "dot" extension
string, e.g: ".gif".
|
void |
putTypeDescription(java.io.File f,
java.lang.String typeDescription)
Adds a human readable type description for files of the type of
the passed in file.
|
void |
putTypeDescription(java.lang.String extension,
java.lang.String typeDescription)
Adds a human readable type description for files.
|
public boolean isRootFile(java.io.File file)
public java.lang.String getName(java.io.File f)
getName
在类中 javax.swing.filechooser.FileView
FileView.getName(java.io.File)
public void putDescription(java.io.File f, java.lang.String fileDescription)
public java.lang.String getDescription(java.io.File f)
getDescription
在类中 javax.swing.filechooser.FileView
FileView.getDescription(java.io.File)
public void putTypeDescription(java.lang.String extension, java.lang.String typeDescription)
public void putTypeDescription(java.io.File f, java.lang.String typeDescription)
public java.lang.String getTypeDescription(java.io.File f)
getTypeDescription
在类中 javax.swing.filechooser.FileView
FileView.getTypeDescription(java.io.File)
public java.lang.String getExtension(java.io.File f)
public void putIcon(java.lang.String extension, javax.swing.Icon icon)
public javax.swing.Icon getIcon(java.io.File f)
getIcon
在类中 javax.swing.filechooser.FileView
FileView.getIcon(java.io.File)
public java.lang.Boolean isHidden(java.io.File f)
public java.lang.Boolean isTraversable(java.io.File f)
isTraversable
在类中 javax.swing.filechooser.FileView
FileView.isTraversable(java.io.File)