Xj3D 2.0 VRML/X3D Code API

org.xj3d.ui.awt.widgets
Class SelectableFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by org.xj3d.ui.awt.widgets.SelectableFileFilter

public class SelectableFileFilter
extends javax.swing.filechooser.FileFilter

File filter for restricting files to any arbitrary types set.

Version:
$Revision: 1.1 $
Author:
Alan Hudson

Constructor Summary
SelectableFileFilter(java.lang.String[] extensions, java.lang.String description)
          Create a new selectable filter for a collection of extensions, and a given description.
 
Method Summary
 boolean accept(java.io.File f)
          Should we accept this file
 java.lang.String getDescription()
          The description of this filter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectableFileFilter

public SelectableFileFilter(java.lang.String[] extensions,
                            java.lang.String description)
Create a new selectable filter for a collection of extensions, and a given description.

Parameters:
extensions - A non-null array of extensions to process for
description - An arbitrary description string
Method Detail

accept

public boolean accept(java.io.File f)
Should we accept this file

Specified by:
accept in class javax.swing.filechooser.FileFilter
Parameters:
f - The file to test
Returns:
true if acceptable

getDescription

public java.lang.String getDescription()
The description of this filter

Specified by:
getDescription in class javax.swing.filechooser.FileFilter

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium