View Javadoc

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