|
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.option.IconFilter
public class IconFilter
Custom file filter prepared to deal with a range of image icon formats.
Field Summary | |
---|---|
static java.lang.String |
gif
|
static java.lang.String |
jpeg
|
static java.lang.String |
jpg
|
static java.lang.String |
png
|
static java.lang.String |
svg
|
static java.lang.String |
svgz
|
static java.lang.String |
tif
|
static java.lang.String |
tiff
|
Constructor Summary | |
---|---|
IconFilter()
|
Method Summary | |
---|---|
boolean |
accept(java.io.File f)
This filter accepts all files which end with one of the static constants in this class, except for SVG images. |
java.lang.String |
getDescription()
Return the description of this filter. |
static java.lang.String |
getExtension(java.io.File f)
Return the extension of this file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String jpeg
public static final java.lang.String jpg
public static final java.lang.String gif
public static final java.lang.String tiff
public static final java.lang.String tif
public static final java.lang.String png
public static final java.lang.String svg
public static final java.lang.String svgz
Constructor Detail |
---|
public IconFilter()
Method Detail |
---|
public boolean accept(java.io.File f)
accept
in class javax.swing.filechooser.FileFilter
public java.lang.String getDescription()
getDescription
in class javax.swing.filechooser.FileFilter
"Icon files"
public static java.lang.String getExtension(java.io.File f)
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |