View Javadoc

1   /*
2    * $Id: CheckEvent.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.ActionEvent;
9   import javax.faces.event.FacesListener;
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 class CheckEvent extends ActionEvent {
16      private static final String REVISION = "$Revision: 1.18 $";
17  
18      private static final long serialVersionUID = -8297800672322392936L;
19  
20      public CheckEvent(UIComponent component) {
21          super(component);
22      }
23  
24      /*
25       * (non-Javadoc)
26       * 
27       * @see javax.faces.event.FacesEvent#isAppropriateListener(javax.faces.event.FacesListener)
28       */
29      public boolean isAppropriateListener(FacesListener listener) {
30          return (listener instanceof ICloseListener);
31      }
32  
33      /*
34       * (non-Javadoc)
35       * 
36       * @see javax.faces.event.FacesEvent#processListener(javax.faces.event.FacesListener)
37       */
38      public void processListener(FacesListener listener) {
39          ((ICheckListener) listener).processCheck(this);
40      }
41  
42  }