|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.filechooser.FileFilter y.io.SuffixFileFilter
public class SuffixFileFilter
A file filter that accepts file names with a specific suffix.
Constructor Summary | |
---|---|
SuffixFileFilter(String acceptingSuffix,
String description)
Creates a new instance of YFileFilter. |
|
SuffixFileFilter(String acceptingSuffix,
String description,
boolean acceptDir)
Creates a new instance of YFileFilter. |
Method Summary | |
---|---|
boolean |
accept(File f)
Returns true iff the specified File does not
represent a directory and its filename extension matches this
SuffixFileFilter 's accepting suffix or the accepting suffix'
length is 0 . |
boolean |
equals(Object o)
|
String |
getAcceptingSuffix()
Returns the filename suffix that determines which files are accepted. |
String |
getDescription()
Returns the description for this SuffixFileFilter . |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SuffixFileFilter(String acceptingSuffix, String description)
acceptingSuffix
- the suffix string for accepted file names.description
- a descriptive String for the accepted file formatpublic SuffixFileFilter(String acceptingSuffix, String description, boolean acceptDir)
acceptingSuffix
- the suffix string for accepted file names.description
- a descriptive String for the accepted file formatacceptDir
- whether or not this filter accepts directoriesMethod Detail |
---|
public boolean accept(File f)
true
iff the specified File
does not
represent a directory and its filename extension matches this
SuffixFileFilter
's accepting suffix or the accepting suffix'
length is 0
.
accept
in class FileFilter
f
- the File
to check
true
iff the specified File
does not
represent a directory and its filename extension matches this
SuffixFileFilter
's accepting suffix or the accepting suffix'
length is 0
.public String getAcceptingSuffix()
public String getDescription()
SuffixFileFilter
.
getDescription
in class FileFilter
SuffixFileFilter
.public boolean equals(Object o)
equals
in class Object
public String toString()
toString
in class Object
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |