|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.ifremer.isisfish.ui.widget.filter.FilterModel<M,R>
public abstract class FilterModel<M,R>
This class represents a generic filter model.
It contains all data to be used for filter process.
| Field Summary | |
|---|---|
protected boolean |
exclusiveMode
flag to says inclusive mode (need one param accept) or exclusive mode (need all params to accept) |
protected List<M> |
original
list of original items |
protected List<String> |
paramKeys
list of param keys to be used |
protected Map<String,FilterParamModel<M,?>> |
paramModels
map -> paramKey to param models |
protected List<M> |
result
current filter result list of items |
| Constructor Summary | |
|---|---|
protected |
FilterModel(List<M> original,
Map<String,FilterParamModel<M,?>> paramModels)
|
| Method Summary | |
|---|---|
abstract R |
convertToResult(M item)
|
List<M> |
doFilter()
|
List<M> |
getFiltered()
|
List<R> |
getFilteredResult()
|
int |
getNbOriginal()
|
int |
getNbResult()
|
List<M> |
getOriginal()
|
FilterParamModel<M,?> |
getParamModel(String paramKey)
|
void |
reset()
|
void |
selectAll()
|
void |
setFiltered(List<M> filtered)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected List<M> original
protected List<M> result
protected List<String> paramKeys
protected Map<String,FilterParamModel<M,?>> paramModels
protected boolean exclusiveMode
| Constructor Detail |
|---|
protected FilterModel(List<M> original,
Map<String,FilterParamModel<M,?>> paramModels)
| Method Detail |
|---|
public abstract R convertToResult(M item)
item - item to convert to result
public FilterParamModel<M,?> getParamModel(String paramKey)
public void reset()
public List<M> doFilter()
public void selectAll()
public List<M> getFiltered()
public List<R> getFilteredResult()
public List<M> getOriginal()
public int getNbResult()
public int getNbOriginal()
public String toString()
toString in class Objectpublic void setFiltered(List<M> filtered)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||