public class DefaultFileFilter extends java.lang.Object implements IAsyncFilter
IAsyncFilter.AlwaysFilter, IAsyncFilter.NeverFilter
Modifier and Type | Field and Description |
---|---|
protected boolean |
all
Boolean if all is selected.
|
protected java.util.List<java.lang.String> |
selected
The selected component list.
|
ALWAYS, NEVER
Constructor and Description |
---|
DefaultFileFilter()
Create a new file filter.
|
DefaultFileFilter(boolean all,
java.util.List<java.lang.String> selected)
Create a new file filter.
|
Modifier and Type | Method and Description |
---|---|
IFuture<java.lang.Boolean> |
filter(java.lang.Object obj)
Filter an object.
|
java.util.List<java.lang.String> |
getSelectedComponents()
Get the selected filter elements.
|
boolean |
isAll()
Test the all flag .
|
void |
setAll(boolean all)
Set the all flag.
|
void |
setSelectedComponents(java.util.List<java.lang.String> selected)
Set the selected elements.
|
protected boolean all
protected java.util.List<java.lang.String> selected
public DefaultFileFilter()
public DefaultFileFilter(boolean all, java.util.List<java.lang.String> selected)
public void setAll(boolean all)
all
- The all flag.public boolean isAll()
public java.util.List<java.lang.String> getSelectedComponents()
public void setSelectedComponents(java.util.List<java.lang.String> selected)
selectedcomponents
- The selected components.public IFuture<java.lang.Boolean> filter(java.lang.Object obj)
filter
in interface IAsyncFilter
obj
- The object to filter.