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