1 /*
2 * $Id: IPreSelectionEventCapability.java,v 1.1 2010/11/02 10:04:36 jbmeslin Exp $
3 */
4
5 package org.rcfaces.core.component.capability;
6
7 import javax.faces.event.FacesListener;
8
9 import org.rcfaces.core.event.IPreSelectionListener;
10
11 /**
12 * @author jbmeslin@vedana.com
13 */
14 public interface IPreSelectionEventCapability {
15
16 /**
17 * Adds a listener to the component for the preSelection event
18 *
19 * @param facesListener
20 * the preSelection listener to add
21 */
22 void addPreSelectionListener(IPreSelectionListener facesListener);
23
24 /**
25 * Removes a listener from the component for the preSelection event
26 *
27 * @param facesListener
28 * the PreSelection listener to remove
29 */
30 void removePreSelectionListener(IPreSelectionListener facesListener);
31
32 /**
33 * Returns a list of PreSelection listener for the component
34 *
35 * @return preSelection listeners' list
36 */
37 FacesListener[] listPreSelectionListeners();
38 }