View Javadoc

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.myfaces.component;
20  
21  import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFProperty;
22  
23  /**
24   * 
25   * @since 1.1.7
26   * @author Leonardo Uribe (latest modification by $Author: lu4242 $)
27   * @version $Revision: 691856 $ $Date: 2008-09-03 21:40:30 -0500 (miƩ, 03 sep 2008) $
28   */
29  public interface EventAware
30  {
31      
32      /**
33       * HTML: Script to be invoked when the element is clicked.
34       * 
35       */
36      @JSFProperty(clientEvent="click")
37      public String getOnclick();
38  
39      /**
40       * HTML: Script to be invoked when the element is double-clicked.
41       * 
42       */
43      @JSFProperty(clientEvent="dblclick")
44      public String getOndblclick();
45  
46      /**
47       * HTML: Script to be invoked when a key is pressed down over this element.
48       * 
49       */
50      @JSFProperty(clientEvent="keydown")
51      public String getOnkeydown();
52  
53      /**
54       * HTML: Script to be invoked when a key is pressed over this element.
55       * 
56       */
57      @JSFProperty(clientEvent="keypress")
58      public String getOnkeypress();
59  
60      /**
61       * HTML: Script to be invoked when a key is released over this element.
62       * 
63       */
64      @JSFProperty(clientEvent="keyup")
65      public String getOnkeyup();
66  
67      /**
68       * HTML: Script to be invoked when the pointing device is pressed over this element.
69       * 
70       */
71      @JSFProperty(clientEvent="mousedown")
72      public String getOnmousedown();
73  
74      /**
75       * HTML: Script to be invoked when the pointing device is moved while it is in this element.
76       * 
77       */
78      @JSFProperty(clientEvent="mousemove")
79      public String getOnmousemove();
80  
81      /**
82       * HTML: Script to be invoked when the pointing device is moves out of this element.
83       * 
84       */
85      @JSFProperty(clientEvent="mouseout")
86      public String getOnmouseout();
87  
88      /**
89       * HTML: Script to be invoked when the pointing device is moved into this element.
90       * 
91       */
92      @JSFProperty(clientEvent="mouseover")
93      public String getOnmouseover();
94  
95      /**
96       * HTML: Script to be invoked when the pointing device is released over this element.
97       * 
98       */
99      @JSFProperty(clientEvent="mouseup")
100     public String getOnmouseup();
101 
102 }