fi.helsinki.dacopan.ui
Class DaCoPAnFileFilter
java.lang.Object
javax.swing.filechooser.FileFilter
fi.helsinki.dacopan.ui.DaCoPAnFileFilter
public class DaCoPAnFileFilter
- extends javax.swing.filechooser.FileFilter
This class is used to set the file filter to loading
and saving animation dialogs.
Constructor Summary |
DaCoPAnFileFilter(java.lang.String extension,
java.lang.String description)
|
Method Summary |
boolean |
accept(java.io.File file)
Checks if the given file is to be accepted. |
void |
addExtension(java.lang.String extension)
|
java.lang.String |
getDescription()
Returns the description of the file type |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DaCoPAnFileFilter
public DaCoPAnFileFilter(java.lang.String extension,
java.lang.String description)
- Parameters:
extension
- The extension of the files that we want to allowdescription
- A short textual description to be presented in the UI
accept
public boolean accept(java.io.File file)
- Checks if the given file is to be accepted. Overriden from FileFilter.
- Specified by:
accept
in class javax.swing.filechooser.FileFilter
getDescription
public java.lang.String getDescription()
- Returns the description of the file type
- Specified by:
getDescription
in class javax.swing.filechooser.FileFilter
addExtension
public void addExtension(java.lang.String extension)
© Dacopan2 team, 2005-