Methods Summary |
---|
public java.lang.String | getDescription(java.io.File f)
return null; // let the L&F FileView figure this out
|
public javax.swing.Icon | getIcon(java.io.File f)
String extension = Utils.getExtension(f);
Icon icon = null;
if (extension != null) {
if (extension.equals(Utils.jpeg) ||
extension.equals(Utils.jpg)) {
icon = jpgIcon;
} else if (extension.equals(Utils.gif)) {
icon = gifIcon;
} else if (extension.equals(Utils.tiff) ||
extension.equals(Utils.tif)) {
icon = tiffIcon;
}
}
return icon;
|
public java.lang.String | getName(java.io.File f)
return null; // let the L&F FileView figure this out
|
public java.lang.String | getTypeDescription(java.io.File f)
String extension = Utils.getExtension(f);
String type = null;
if (extension != null) {
if (extension.equals(Utils.jpeg) ||
extension.equals(Utils.jpg)) {
type = "JPEG Image";
} else if (extension.equals(Utils.gif)){
type = "GIF Image";
} else if (extension.equals(Utils.tiff) ||
extension.equals(Utils.tif)) {
type = "TIFF Image";
}
}
return type;
|
public java.lang.Boolean | isTraversable(java.io.File f)
return null; // let the L&F FileView figure this out
|