Skip navigation links


com.essbase.eas.ui
Class DefaultFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by com.essbase.eas.ui.DefaultFileFilter


public class DefaultFileFilter
extends javax.swing.filechooser.FileFilter

implementation of the abstract file filter class designed to be used with the console's open file dialog. to create a panel that will be added to the New Dialog.

Notes:

Version:
1.00, 07/24/2000
Author:
Sree Menon

Constructor Summary
DefaultFileFilter()
           
DefaultFileFilter(java.lang.String desc, java.lang.String ext, javax.swing.AbstractAction a)
           

 

Method Summary
 boolean accept(java.io.File f)
          implementation of the FileFilter.accept() method.
 javax.swing.AbstractAction getAction()
          returns the action object for this filter.
 java.lang.String getDescription()
          implementation of the FileFilter.getDescription() method.
 java.lang.String getExtension()
          get the file extention
 java.lang.Object[] getObjects(java.lang.Object source)
          Returns an array of objects represented by this filter
 void setDescription(java.lang.String value)
          sets the description
 void setExtension(java.lang.String value)
          sets the file extention
 java.lang.String toString()
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

DefaultFileFilter

public DefaultFileFilter()

DefaultFileFilter

public DefaultFileFilter(java.lang.String desc,
                         java.lang.String ext,
                         javax.swing.AbstractAction a)

Method Detail

getAction

public javax.swing.AbstractAction getAction()
returns the action object for this filter.

getDescription

public java.lang.String getDescription()
implementation of the FileFilter.getDescription() method.
Specified by:
getDescription in class javax.swing.filechooser.FileFilter

setDescription

public void setDescription(java.lang.String value)
sets the description

getExtension

public java.lang.String getExtension()
get the file extention

setExtension

public void setExtension(java.lang.String value)
sets the file extention

accept

public boolean accept(java.io.File f)
implementation of the FileFilter.accept() method.
Specified by:
accept in class javax.swing.filechooser.FileFilter

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getObjects

public java.lang.Object[] getObjects(java.lang.Object source)
Returns an array of objects represented by this filter
Parameters:
source - The source for the filter objects
Returns:
null, if its not implemented, else an array of objects

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.