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