View Javadoc

1   /*
2    * $Id: AdditionalInformationEvent.java,v 1.1 2007/07/05 13:32:58 oeuillot 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: oeuillot $)
12   * @version $Revision: 1.1 $ $Date: 2007/07/05 13:32:58 $
13   */
14  public class AdditionalInformationEvent extends CameliaEvent {
15      private static final String REVISION = "$Revision: 1.1 $";
16  
17      private static final long serialVersionUID = -2936160640888525068L;
18  
19      public AdditionalInformationEvent(UIComponent component) {
20          super(component);
21      }
22  
23      /*
24       * (non-Javadoc)
25       * 
26       * @see javax.faces.event.FacesEvent#isAppropriateListener(javax.faces.event.FacesListener)
27       */
28      public boolean isAppropriateListener(FacesListener listener) {
29          return (listener instanceof IAdditionalInformationListener);
30      }
31  
32      /*
33       * (non-Javadoc)
34       * 
35       * @see javax.faces.event.FacesEvent#processListener(javax.faces.event.FacesListener)
36       */
37      public void processListener(FacesListener listener) {
38          ((IAdditionalInformationListener) listener)
39                  .processAdditionalInformation(this);
40      }
41  }