|
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 String |
gif
|
static String |
jpeg
|
static String |
jpg
|
static String |
png
|
static String |
svg
|
static String |
svgz
|
static String |
tif
|
static String |
tiff
|
Constructor Summary | |
---|---|
IconFilter()
|
Method Summary | |
---|---|
boolean |
accept(File f)
This filter accepts all files which end with one of the static constants in this class, except for SVG images. |
String |
getDescription()
Return the description of this filter. |
static String |
getExtension(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 String jpeg
public static final String jpg
public static final String gif
public static final String tiff
public static final String tif
public static final String png
public static final String svg
public static final String svgz
Constructor Detail |
---|
public IconFilter()
Method Detail |
---|
public boolean accept(File f)
accept
in class FileFilter
public String getDescription()
getDescription
in class FileFilter
"Icon files"
public static String getExtension(File f)
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |