|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.filechooser.FileFilter
ilog.views.appframe.docview.IlvFileFilter
public class IlvFileFilter
Defines filters that select files that a file document template can open.
| Field Summary | |
|---|---|
static int |
READ
Access mode constant value that specifies that this filter can be used in a file chooser for opening a new file. |
static int |
WRITE
Access mode constant value that specifies that this filter can be used in a file chooser for saving a file. |
| Constructor Summary | |
|---|---|
IlvFileFilter(IlvFileDocumentTemplate docTemplate,
String extension,
String description)
Constructs an IlvFileFilter
that filters files with the specified extension. |
|
| Method Summary | |
|---|---|
boolean |
accept(File f)
Determines whether the specified file is accepted by this filter. |
boolean |
accept(String filename)
Determines whether the specified filename is accepted by this filter. |
int |
getAccessMode()
Returns the access mode of this filter. |
String |
getDescription()
Returns the description of this file filter. |
String |
getExtension()
Returns the file extension that this filters accepts. |
void |
setAccessMode(int accessMode)
Sets the access mode of this filter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int READ
public static final int WRITE
| Constructor Detail |
|---|
public IlvFileFilter(IlvFileDocumentTemplate docTemplate,
String extension,
String description)
IlvFileFilter
that filters files with the specified extension.
docTemplate - The file document template that this filter is used for.extension - The extension of files filtered by this object.description - The description of the files filtered by this object.
This description appears in file choosers initialized with this
file filter.| Method Detail |
|---|
public boolean accept(File f)
accept(String) method with
name of the specified file as the parameter.
accept in class FileFiltertrue if the file is accepted; false
otherwise.accept(String)public boolean accept(String filename)
true if the filename is accepted; false
otherwise.accept(File)public String getDescription()
getDescription in class FileFilterpublic String getExtension()
public int getAccessMode()
public void setAccessMode(int accessMode)
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||