View Javadoc

1   /*
2    * $Id: IFocusBlurEventCapability.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.IBlurListener;
10  import org.rcfaces.core.event.IFocusListener;
11  
12  /**
13   * 
14   * @author Olivier Oeuillot (latest modification by $Author: jbmeslin $)
15   * @version $Revision: 1.18 $ $Date: 2011/06/16 09:29:40 $
16   */
17  public interface IFocusBlurEventCapability {
18  
19      /**
20       * Adds a listener to the component for the focus event
21       * 
22       * @param facesListener
23       *            the focus listener to add
24       */
25      void addFocusListener(IFocusListener facesListener);
26  
27      /**
28       * Removes a listener from the component for the focus event
29       * 
30       * @param facesListener
31       *            the focus listener to remove
32       */
33      void removeFocusListener(IFocusListener facesListener);
34  
35      /**
36       * Returns a list of focus listener for the component
37       * 
38       * @return focus listeners' list
39       */
40      FacesListener[] listFocusListeners();
41  
42      /**
43       * Adds a listener to the component for the blur event
44       * 
45       * @param facesListener
46       *            the blur listener to add
47       */
48      void addBlurListener(IBlurListener facesListener);
49  
50      /**
51       * Removes a listener from the component for the blur event
52       * 
53       * @param facesListener
54       *            the blur listener to remove
55       */
56      void removeBlurListener(IBlurListener facesListener);
57  
58      /**
59       * Returns a list of blur listener for the component
60       * 
61       * @return blur listeners' list
62       */
63      FacesListener[] listBlurListeners();
64  }