|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.filechooser.FileFilter | +--torero.util.ToreroFileFilter
FileFiler class used by the JFileChooser, doing the torero specific file-filtering for: .jpg, .jpeg, .trr, .torero, .y, .yacc, .g, .ox and .dot files.
Field Summary | |
static String[] |
DOT_FILTER
.dot files, dot output files. |
static String[] |
JPG_FILTER
.jpeg, and .jpg files |
static String[] |
NO_FILTER
all kinds of files |
static String[] |
OX_FILTER
.ox and .y files, ox output files. |
static String[] |
TRR_FILTER
.trr and .torero files, serialized torero classes. |
static String[] |
YACC_FILTER
.y, .yacc and .g files, input grammar files. |
Constructor Summary | |
ToreroFileFilter()
Creates a new filefilter, filtering is set to NO_FILTER. |
|
ToreroFileFilter(String[] filter_type)
Creates a new filefilter, filtering is set to NO_FILTER. |
Method Summary | |
boolean |
accept(File f)
Test if a given file f, is machted by any filter in this class. |
String |
getDescription()
Get the textual description of the filefilter. |
static String |
getExtension(File f)
Get the extension of the given file f. |
String[] |
getUseAs()
Get the file to fileextension associations. |
void |
setUseAs(String[] filter_type)
Set the file to fileextension association. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String[] NO_FILTER
public static final String[] JPG_FILTER
public static final String[] TRR_FILTER
public static final String[] YACC_FILTER
public static final String[] OX_FILTER
public static final String[] DOT_FILTER
Constructor Detail |
public ToreroFileFilter()
public ToreroFileFilter(String[] filter_type)
filter_type,
- an array describing a filetype and it's associated fileextensions.Method Detail |
public void setUseAs(String[] filter_type)
filter_type,
- an array describing a filetype and it's associated fileextensions.public String[] getUseAs()
public static String getExtension(File f)
public boolean accept(File f)
accept
in class FileFilter
f
- the file to testpublic String getDescription()
getDescription
in class FileFilter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |