GoGraph
v1.0


gograph.base.ui
Class GGFileFilter

java.lang.Object
  |
  +--javax.swing.filechooser.FileFilter
        |
        +--gograph.base.ui.GGFileFilter

public class GGFileFilter
extends javax.swing.filechooser.FileFilter

File filter for graph files opening and saving in standard dialog frame.

See Also:
GoGraph

Constructor Summary
GGFileFilter()
          Creates a new instance of GGFileFilter.
 
Method Summary
 boolean accept(java.io.File f)
          Check file extension for filtering.
 java.lang.String getDescription()
          File description getter.
 java.lang.String getExtension()
          File extensions getter.
 void setDescription(java.lang.String description)
          File description setter.
 void setExtension(java.lang.String extension)
          File extension adder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GGFileFilter

public GGFileFilter()
Creates a new instance of GGFileFilter.

Method Detail

accept

public boolean accept(java.io.File f)
Check file extension for filtering.

Specified by:
accept in class javax.swing.filechooser.FileFilter
Parameters:
f - File to check.
Returns:
Accepted boolean.

getDescription

public java.lang.String getDescription()
File description getter.

Specified by:
getDescription in class javax.swing.filechooser.FileFilter
Returns:
Description string.

setExtension

public void setExtension(java.lang.String extension)
File extension adder.

Parameters:
extension - Extension string.

getExtension

public java.lang.String getExtension()
File extensions getter.

Returns:
Extensions string.

setDescription

public void setDescription(java.lang.String description)
File description setter.

Parameters:
description - Description string.

GoGraph
v1.0


Copyright (C) 2003 Stewe Frei. All rights reserved.