View Javadoc

1   /*
2    * $Id: MenuEvent.java,v 1.18 2011/06/16 09:29:40 jbmeslin Exp $
3    * 
4    */
5   package org.rcfaces.core.event;
6   
7   import javax.faces.component.UIComponent;
8   import javax.faces.event.FacesListener;
9   
10  /**
11   * @author Olivier Oeuillot (latest modification by $Author: jbmeslin $)
12   * @version $Revision: 1.18 $ $Date: 2011/06/16 09:29:40 $
13   */
14  public class MenuEvent extends CameliaEvent {
15      private static final String REVISION = "$Revision: 1.18 $";
16  
17      private static final long serialVersionUID = -5811470604287524737L;
18  
19      public MenuEvent(UIComponent component, int type) {
20          super(component, type);
21      }
22  
23      public boolean isAppropriateListener(FacesListener listener) {
24          return (listener instanceof IMenuListener);
25      }
26  
27      public void processListener(FacesListener listener) {
28          ((IMenuListener) listener).menuShown(this);
29      }
30  
31  }