1 /*
2 * $Id: IValidationEventCapability.java,v 1.1 2007/06/06 16:39:53 oeuillot Exp $
3 */
4 package org.rcfaces.core.component.capability;
5
6 import javax.faces.event.FacesListener;
7
8 import org.rcfaces.core.event.IValidationListener;
9
10 /**
11 * @author Olivier Oeuillot (latest modification by $Author: oeuillot $)
12 * @version $Revision: 1.1 $ $Date: 2007/06/06 16:39:53 $
13 */
14 public interface IValidationEventCapability {
15
16 /**
17 * Adds a listener to the component for the validation event
18 *
19 * @param facesListener
20 * the validation listener to add
21 */
22 void addValidationListener(IValidationListener facesListener);
23
24 /**
25 * Removes a listener from the component for the validation event
26 *
27 * @param facesListener
28 * the validation listener to remove
29 */
30 void removeValidationListener(IValidationListener facesListener);
31
32 /**
33 * Returns a list of validation listener for the component
34 *
35 * @return validation listeners' list
36 */
37 FacesListener[] listValidationListeners();
38
39 }