fr.ifremer.isisfish.ui.widget.filter
Class FilterParamModel<M,T>

java.lang.Object
  extended by fr.ifremer.isisfish.ui.widget.filter.FilterParamModel<M,T>
All Implemented Interfaces:
Serializable

public class FilterParamModel<M,T>
extends Object
implements Serializable

This class represents the model for a parameter of a filter

See Also:
FilterAcceptor, FilterModel, Serialized Form

Nested Class Summary
static class FilterParamModel.ResultState
           
static class FilterParamModel.State
           
 
Field Summary
protected  FilterAcceptor<M,T> acceptor
          param acceptor
protected  int hits
          number of hits for this param
protected  String paramKey
          parameter identifier
protected  FilterParamModel.ResultState resultState
          current result state for this model
protected  FilterParamModel.State state
          current state for this model
protected  T val
          val coming fro ui
 
Constructor Summary
FilterParamModel(String paramKey, Class<T> type, ValueGetter<M,T> valueGetter)
           
 
Method Summary
 boolean accept(M item)
           
 boolean canUse(String... val)
           
 void extractParam(Object... val)
           
 void reset()
           
 void resetResult()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

paramKey

protected String paramKey
parameter identifier


val

protected T val
val coming fro ui


state

protected FilterParamModel.State state
current state for this model


resultState

protected FilterParamModel.ResultState resultState
current result state for this model


hits

protected int hits
number of hits for this param


acceptor

protected transient FilterAcceptor<M,T> acceptor
param acceptor

Constructor Detail

FilterParamModel

public FilterParamModel(String paramKey,
                        Class<T> type,
                        ValueGetter<M,T> valueGetter)
Method Detail

extractParam

public void extractParam(Object... val)

accept

public boolean accept(M item)

reset

public void reset()

resetResult

public void resetResult()

canUse

public boolean canUse(String... val)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 1999-2010 CodeLutin. All Rights Reserved.