1 /*
2 * $Id: ICloseEventCapability.java,v 1.18 2011/06/16 09:29:40 jbmeslin 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.ICloseListener;
11
12 /**
13 *
14 *
15 * @author Olivier Oeuillot (latest modification by $Author: jbmeslin $)
16 * @version $Revision: 1.18 $ $Date: 2011/06/16 09:29:40 $
17 */
18 public interface ICloseEventCapability {
19
20 /**
21 * Adds a listener to the component for the close event
22 *
23 * @param facesListener
24 * the close listener to add
25 */
26 void addCloseListener(ICloseListener facesListener);
27
28 /**
29 * Removes a listener from the component for the close event
30 *
31 * @param facesListener
32 * the close listener to remove
33 */
34 void removeCloseListener(ICloseListener facesListener);
35
36 /**
37 * Returns a list of close listener for the component
38 *
39 * @return close listeners' list
40 */
41 FacesListener[] listCloseListeners();
42 }