public abstract class AbstractFormatFilter
extends java.lang.Object
Constructor and Description |
---|
AbstractFormatFilter() |
Modifier and Type | Method and Description |
---|---|
abstract javax.swing.filechooser.FileFilter[] |
getChoosableFileFilters()
Gets the list of choosable file filters.
|
abstract javax.swing.filechooser.FileFilter |
getDefaultFileFilter()
Returns the default choosable file filter.
|
abstract java.lang.String |
getFilterDescription()
Short description of the filter that will appear as the selection item in the list of filters.
|
abstract boolean |
hasOptions()
Returns true if this filter has user configurable options, false otherwise.
|
abstract int |
showOptionsDialog(java.awt.Component parent)
Pops up a the options dialog for this filter if there is one
|
java.lang.String |
toString()
Overrides the default
toString method to return the filter description |
public abstract java.lang.String getFilterDescription()
public abstract javax.swing.filechooser.FileFilter[] getChoosableFileFilters()
FileFilter
array containing all choosable file filters.public abstract javax.swing.filechooser.FileFilter getDefaultFileFilter()
public abstract boolean hasOptions()
public abstract int showOptionsDialog(java.awt.Component parent)
parent
- the parent component of the dialog, can be null
; see showDialog
for
detailsjava.awt.HeadlessException
- if GraphicsEnvironment.isHeadless() returns true.GraphicsEnvironment.isHeadless()
public java.lang.String toString()
toString
method to return the filter descriptiontoString
in class java.lang.Object