|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.filechooser.FileFilter
com.tensegrity.gui.swing.dialog.graphfilechooser.CustomFileFilter
Generic file filter class that can be created for any file extension.
| Field Summary | |
protected UIManager |
uiManager
The UIManager used to retrieve text resources |
| Constructor Summary | |
CustomFileFilter(int type,
java.util.List extensions,
UIManager uiMan)
Constructor. |
|
CustomFileFilter(int type,
java.util.List extensions,
UIManager uiMan,
java.lang.String name)
Constructor |
|
CustomFileFilter(int type,
java.lang.String[] extensions,
UIManager uiMan)
Constructor. |
|
CustomFileFilter(int type,
java.lang.String extension,
UIManager uiMan)
Constructor. |
|
CustomFileFilter(java.lang.String[] extensions,
UIManager uiMan)
Constructor. |
|
CustomFileFilter(java.lang.String extension,
UIManager uiMan)
Constructor. |
|
| Method Summary | |
boolean |
accept(java.io.File f)
Checks if the given file is accepted by this filter |
java.lang.String |
getDescription()
Returns the description of this file filter |
java.lang.String[] |
getExtensionList()
Returns an array with all valid extensions for this file type |
int |
getType()
Returns the type of the file this filter belongs to. |
java.lang.String |
getValidFilename(java.io.File file)
Returns a valid filename for the given file |
void |
openInViewer(java.io.File file)
Opens an external viewer for the given file. |
boolean |
supportsOpenInViewer()
Checks whether the file type can be opened by an external viewer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected UIManager uiManager
| Constructor Detail |
public CustomFileFilter(java.lang.String extension,
UIManager uiMan)
extension - The extension of this file typeuiMan - The UIManager to use to resolve resources
public CustomFileFilter(int type,
java.lang.String extension,
UIManager uiMan)
type - The type of the file this filter belongs toextension - The extension of this file typeuiMan - The UIManager to use to resolve resourcesGraphFileConstants
public CustomFileFilter(java.lang.String[] extensions,
UIManager uiMan)
extensions - The extensions of this file typeuiMan - The UIManager to use to resolve resources
public CustomFileFilter(int type,
java.lang.String[] extensions,
UIManager uiMan)
type - The type of the file this filter belongs toextensions - The extensions of this file typeuiMan - The UIManager to use to resolve resourcesGraphFileConstants
public CustomFileFilter(int type,
java.util.List extensions,
UIManager uiMan)
type - The type of the file this filter belongs toextensions - The extensions of this file type as a List of Strings.uiMan - The UIManager to use to resolve resourcesGraphFileConstants
public CustomFileFilter(int type,
java.util.List extensions,
UIManager uiMan,
java.lang.String name)
type - The type of the file this filter belongs toextensions - The extensions of this file type as a List of Strings.uiMan - The UIManager to use to resolve resourcesname - The name of the file typeGraphFileConstants| Method Detail |
public boolean accept(java.io.File f)
f - The file to check
public java.lang.String getDescription()
public java.lang.String getValidFilename(java.io.File file)
getValidFilename in interface ExtendedFileFilterfile - The file to create a valid filename for
public boolean supportsOpenInViewer()
supportsOpenInViewer in interface ExtendedFileFilterpublic int getType()
getType in interface ExtendedFileFilterpublic void openInViewer(java.io.File file)
openInViewer in interface ExtendedFileFilterfile - The file to openpublic java.lang.String[] getExtensionList()
ExtendedFileFilter
getExtensionList in interface ExtendedFileFilter
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||