This class represents a search criterion that presents a list of values to the user.
To use this criterion, you need to set a
List List of
CriterionListElement CriterionListElement
to the criterion. This list will be displayed as the selection of values.
author: Philippe Brouillette version: 1.0
addCriterionElement(CriterionListElement element) Method that adds a new allowable value to the list of elements.
Parameters: element - element of the list.
Constructor that takes all the properties to initialize a search
criterion. By default, the criterion is dynamic.
Parameters: name - name of the criterion. This name must be uniqueas it is a key in a map. Parameters: associatedEntity - class type associated to this criterion Parameters: property - property used for the query criterion Parameters: bundleName - bundle name Parameters: locale - locale information See Also:FormCriterion.FormCriterion(StringCriterionPropertyStringLocale) See Also: FormCriterion
Constructor that clones a query criterion. This constructor is used
to instanciate a criterion in a search form when the form
contains dynamic criteria.
Parameters: criterion - query criterion that must be oftype ListCriterion See Also:FormCriterion.FormCriterion(FormCriterion) See Also: FormCriterion
Method that adds a new allowable value to the list of elements.
Parameters: element - element of the list. Must be of type CriterionListElement CriterionListElement
Method that sets the list of allowable elements.
The list must contains objects of the
CriterionListElement CriterionListElement class type
Parameters: list - list of CriterionListElement
setOnChangeAction
public void setOnChangeAction(String onChangeAction)(Code)
Method that assigns the value of the criterion as a String. This method
is needed for the user interface which uses only string values.
Parameters: value - value to be assigned See Also:FormCriterion.setPropertyValue(java.lang.String)
Methods inherited from org.mdarad.framework.util.struts.criteria.FormCriterion