org.webdocwf.util.loader.wizard
Class OctopusFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by org.webdocwf.util.loader.wizard.OctopusFileFilter

public class OctopusFileFilter
extends javax.swing.filechooser.FileFilter

DomlFilter restricts file sets to only those files that are .doml files. Use this with JFileChooser to create a directory chooser.

Author:
Radoslav Dutina, Zoran Milakovic

Field Summary
static int OLJ
           
static int OPF
           
 
Constructor Summary
OctopusFileFilter()
          Create a FileFilter for use with the FileChooser dialog.
OctopusFileFilter(int type)
          Create a DomlFilter for use with the FileChooser dialog.
 
Method Summary
 boolean accept(java.io.File f)
          Check to see if the passed file is a directory.
 java.lang.String getDescription()
          Get a description of this filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OLJ

public static final int OLJ
See Also:
Constant Field Values

OPF

public static final int OPF
See Also:
Constant Field Values
Constructor Detail

OctopusFileFilter

public OctopusFileFilter()
Create a FileFilter for use with the FileChooser dialog. Default is olj file filter.


OctopusFileFilter

public OctopusFileFilter(int type)
Create a DomlFilter for use with the FileChooser dialog.

Method Detail

accept

public boolean accept(java.io.File f)
Check to see if the passed file is a directory.

Specified by:
accept in class javax.swing.filechooser.FileFilter
Parameters:
f - File to check.
Returns:
True if the file is a doml file (.doml).

getDescription

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

Specified by:
getDescription in class javax.swing.filechooser.FileFilter
Returns:
The description of this filter.


Copyright © 2002-2007 Together - the Workgroup. All Rights Reserved.