|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.filechooser.FileFilter
y.io.SuffixFileFilter
public class SuffixFileFilter
A file filter that accepts file names with a specific suffix.

| Constructor Summary | |
|---|---|
SuffixFileFilter(java.lang.String acceptingSuffix,
java.lang.String description)
Creates a new instance of YFileFilter. |
|
SuffixFileFilter(java.lang.String acceptingSuffix,
java.lang.String description,
boolean acceptDir)
Creates a new instance of YFileFilter. |
|
| Method Summary | |
|---|---|
boolean |
accept(java.io.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(java.lang.Object o)
|
java.lang.String |
getAcceptingSuffix()
Returns the filename suffix that determines which files are accepted. |
java.lang.String |
getDescription()
Returns the description for this SuffixFileFilter. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SuffixFileFilter(java.lang.String acceptingSuffix,
java.lang.String description)
acceptingSuffix - the suffix string for accepted file names.description - a descriptive String for the accepted file format
public SuffixFileFilter(java.lang.String acceptingSuffix,
java.lang.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 directories| Method Detail |
|---|
public boolean accept(java.io.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 javax.swing.filechooser.FileFilterf - 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 java.lang.String getAcceptingSuffix()
public java.lang.String getDescription()
SuffixFileFilter.
getDescription in class javax.swing.filechooser.FileFilterSuffixFileFilter.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
© Copyright 2000-2025, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||