View Javadoc

1   /*
2    * $Id: PreSelectionEvent.java,v 1.1 2010/11/02 10:04:36 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 jbmeslin@vedana.com
12   */
13  public class PreSelectionEvent extends CameliaEvent {
14     
15  	private static final long serialVersionUID = 6935088762418998766L;
16  	private static final String REVISION = "$Revision: 1.1 $";
17  
18  
19      public PreSelectionEvent(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 IPreSelectionListener);
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          ((IPreSelectionListener) listener).processPreSelection(this);
39      }
40  
41  }