Xj3D 2.0 VRML/X3D Code API

org.xj3d.ui.awt.widgets
Class X3DFileFilter

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

public class X3DFileFilter
extends javax.swing.filechooser.FileFilter

File filter for restricting files to just X3D types.

Version:
$Revision: 1.2 $
Author:
Alan Hudson

Constructor Summary
X3DFileFilter()
          Create a new file filter instance.
 
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

X3DFileFilter

public X3DFileFilter()
Create a new file filter instance.

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