View Javadoc

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