file
Class FileType
java.lang.Object
file.FileType
public class FileType
- extends java.lang.Object
Constructor Summary |
FileType(java.lang.String tnm,
java.lang.String sfx,
java.lang.String inm)
new FileType(tnm, sfx, inm) returns a new FileType with type name
tnm, suffixes sfx, and icon name inm. |
Method Summary |
java.io.FileFilter |
getFilter()
ft.getFilter() returns the file filter for ft. |
javax.swing.Icon |
getIcon()
ft.getIcon() returns the icon for ft. |
static FileType |
getType(java.io.File f)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FOLDER_TYPE
public static final FileType FOLDER_TYPE
UNKNOWN_TYPE
public static final FileType UNKNOWN_TYPE
JAVA_TYPE
public static FileType JAVA_TYPE
CLASS_TYPE
public static FileType CLASS_TYPE
JAR_TYPE
public static FileType JAR_TYPE
SH_TYPE
public static FileType SH_TYPE
CSH_TYPE
public static FileType CSH_TYPE
GIF_TYPE
public static FileType GIF_TYPE
JPEG_TYPE
public static FileType JPEG_TYPE
PGM_TYPE
public static FileType PGM_TYPE
HTML_TYPE
public static FileType HTML_TYPE
XML_TYPE
public static FileType XML_TYPE
PS_TYPE
public static FileType PS_TYPE
SQL_TYPE
public static FileType SQL_TYPE
TEX_TYPE
public static FileType TEX_TYPE
FileType
public FileType(java.lang.String tnm,
java.lang.String sfx,
java.lang.String inm)
- new FileType(tnm, sfx, inm) returns a new FileType with type name
tnm, suffixes sfx, and icon name inm.
getType
public static FileType getType(java.io.File f)
getIcon
public javax.swing.Icon getIcon()
- ft.getIcon() returns the icon for ft.
getFilter
public java.io.FileFilter getFilter()
- ft.getFilter() returns the file filter for ft.