|
Graphics2D Actor API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.filechooser.FileFilter
g2d.swing.IOPFileFilter
public class IOPFileFilter
Subclass of FileFilter to allow custom filters for file choosers.
FileFilter,
JFileChooser| Constructor Summary | |
|---|---|
IOPFileFilter()
|
|
IOPFileFilter(String description)
|
|
| Method Summary | |
|---|---|
boolean |
accept(File f)
methods of abstract super class |
void |
addExtension(String extension)
Adds given extension to list of accepted extensions. |
String |
getDescription()
|
void |
removeExtension(String extension)
Removes given extenstion (in lower case) from list of accepted extensions. |
void |
setDescription(String description)
Sets new description for this file filter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IOPFileFilter()
public IOPFileFilter(String description)
| Method Detail |
|---|
public void setDescription(String description)
null is given, description will be empty string.
description - String used as description for this filterpublic void addExtension(String extension)
null. Extension will be
saved in lower case.
extension - String to denote extension of files accepted
by this filterpublic void removeExtension(String extension)
extension - String to denotes extension of files
no longer accepted by this filterpublic boolean accept(File f)
accept in class FileFilterpublic String getDescription()
getDescription in class FileFilter
|
Graphics2D Actor API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||