Package jadex.base
Class DefaultFileFilter
- java.lang.Object
-
- jadex.base.DefaultFileFilter
-
- All Implemented Interfaces:
IAsyncFilter
public class DefaultFileFilter extends java.lang.Object implements IAsyncFilter
The default file filter allows using different file extensions. This class needs to handle remote transfer.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jadex.commons.IAsyncFilter
IAsyncFilter.AlwaysFilter<E>, IAsyncFilter.NeverFilter<E>
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
all
Boolean if all is selected.protected java.util.List<java.lang.String>
selected
The selected component list.-
Fields inherited from interface jadex.commons.IAsyncFilter
ALWAYS, NEVER
-
-
Constructor Summary
Constructors Constructor Description DefaultFileFilter()
Create a new file filter.DefaultFileFilter(boolean all, java.util.List<java.lang.String> selected)
Create a new file filter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
setAll
public void setAll(boolean all)
Set the all flag.- Parameters:
all
- The all flag.
-
isAll
public boolean isAll()
Test the all flag .- Returns:
- True, if all is set.
-
getSelectedComponents
public java.util.List<java.lang.String> getSelectedComponents()
Get the selected filter elements.- Returns:
- The list of elements.
-
setSelectedComponents
public void setSelectedComponents(java.util.List<java.lang.String> selected)
Set the selected elements.- Parameters:
selectedcomponents
- The selected components.
-
filter
public IFuture<java.lang.Boolean> filter(java.lang.Object obj)
Filter an object.- Specified by:
filter
in interfaceIAsyncFilter
- Parameters:
obj
- The object to filter.- Returns:
- True, if passes filter.
-
-