catalog.view.validator
Class SelectedItemsRangeValidator
java.lang.Object
catalog.view.validator.SelectedItemsRangeValidator
- All Implemented Interfaces:
- java.util.EventListener, javax.faces.validator.Validator
- public class SelectedItemsRangeValidator
- extends java.lang.Object
- implements javax.faces.validator.Validator
The JSF validator class for SelectedItemRange validator.
This validator is to validate the number of the selected items.
Two parameters are associated with this validator:
- minNum: the minimum number of the items to be selected.
- maxNum: the maximum number of the items to be selected.
- Author:
- Derek Y. Shen
Fields inherited from interface javax.faces.validator.Validator |
NOT_IN_RANGE_MESSAGE_ID |
Method Summary |
void |
setMaxNum(int newMaxNum)
|
void |
setMinNum(int newMinNum)
|
void |
validate(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object value)
Main method to implement for Validator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SelectedItemsRangeValidator
public SelectedItemsRangeValidator()
validate
public void validate(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object value)
- Main method to implement for
Validator
- Specified by:
validate
in interface javax.faces.validator.Validator
setMinNum
public void setMinNum(int newMinNum)
setMaxNum
public void setMaxNum(int newMaxNum)
Copyright (c) 2004 The JCatalog Project.