|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.filechooser.FileFilter com.alee.utils.filefilter.AbstractFileFilter com.alee.utils.filefilter.GroupedFileFilter
public class GroupedFileFilter
This file filter groups specified file filters in a certain way defined by filter group type.
Field Summary | |
---|---|
protected AbstractFileFilter |
defaultFilter
Default file filter used to display icon and description. |
protected FilterGroupType |
filterGroupType
The way file filters will be grouped. |
protected java.util.List<java.io.FileFilter> |
filters
List of grouped file filters. |
Constructor Summary | |
---|---|
GroupedFileFilter(AbstractFileFilter defaultFilter,
FilterGroupType filterGroupType,
java.io.FileFilter... filters)
Constructs grouped file filter with the specified parameters. |
|
GroupedFileFilter(java.io.FileFilter... filters)
Constructs grouped file filter with the specified parameters. |
|
GroupedFileFilter(FilterGroupType filterGroupType,
java.io.FileFilter... filters)
Constructs grouped file filter with the specified parameters. |
Method Summary | |
---|---|
boolean |
accept(java.io.File file)
Returns whether the given file is accepted by this filter or not. |
java.lang.String |
getDescription()
Returns short file filter description. |
javax.swing.ImageIcon |
getIcon()
Returns file filter icon. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected FilterGroupType filterGroupType
protected AbstractFileFilter defaultFilter
protected java.util.List<java.io.FileFilter> filters
Constructor Detail |
---|
public GroupedFileFilter(java.io.FileFilter... filters)
filters
- list of file filters to be groupedpublic GroupedFileFilter(FilterGroupType filterGroupType, java.io.FileFilter... filters)
filterGroupType
- the way file filters will be groupedfilters
- list of file filters to be groupedpublic GroupedFileFilter(AbstractFileFilter defaultFilter, FilterGroupType filterGroupType, java.io.FileFilter... filters)
defaultFilter
- default file filter used to display icon and descriptionfilterGroupType
- the way file filters will be groupedfilters
- list of file filters to be groupedMethod Detail |
---|
public javax.swing.ImageIcon getIcon()
getIcon
in class AbstractFileFilter
public java.lang.String getDescription()
getDescription
in class AbstractFileFilter
public boolean accept(java.io.File file)
accept
in interface Filter<java.io.File>
accept
in interface java.io.FileFilter
accept
in class AbstractFileFilter
file
- file to process
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |