View Javadoc

1   /*
2    * Copyright 2006-2016 The JGUIraffe Team.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License")
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package net.sf.jguiraffe.gui.builder.event;
17  
18  /**
19   * <p>
20   * An enumeration class defining constants for special keys on a standard
21   * keyboard.
22   * </p>
23   * <p>
24   * This enumeration class is used for defining special keys in a way independent
25   * on a specific GUI library. It contains constants for keys that do not
26   * represent normal alphanumeric letters or viewable characters, but have a
27   * special meaning.
28   * </p>
29   *
30   * @author Oliver Heger
31   * @version $Id: Keys.java 205 2012-01-29 18:29:57Z oheger $
32   */
33  public enum Keys
34  {
35      /** The backspace key. */
36      BACKSPACE,
37  
38      /** The delete key. */
39      DELETE,
40  
41      /** The down arrow key. */
42      DOWN,
43  
44      /** The end key. */
45      END,
46  
47      /** The enter key. */
48      ENTER,
49  
50      /** The escape key. */
51      ESCAPE,
52  
53      /** The function key F1. */
54      F1,
55  
56      /** The function key F2. */
57      F2,
58  
59      /** The function key F3. */
60      F3,
61  
62      /** The function key F4. */
63      F4,
64  
65      /** The function key F5. */
66      F5,
67  
68      /** The function key F6. */
69      F6,
70  
71      /** The function key F7. */
72      F7,
73  
74      /** The function key F8. */
75      F8,
76  
77      /** The function key F9. */
78      F9,
79  
80      /** The function key F10. */
81      F10,
82  
83      /** The function key F11. */
84      F11,
85  
86      /** The function key F12. */
87      F12,
88  
89      /** The function key F13. */
90      F13,
91  
92      /** The function key F14. */
93      F14,
94  
95      /** The function key F15. */
96      F15,
97  
98      /** The function key F16. */
99      F16,
100 
101     /** The home key. */
102     HOME,
103 
104     /** The insert key. */
105     INSERT,
106 
107     /** The left arrow key. */
108     LEFT,
109 
110     /** The page down key. */
111     PAGE_DOWN,
112 
113     /** The page up key. */
114     PAGE_UP,
115 
116     /** The print screen key. */
117     PRINT_SCREEN,
118 
119     /** The right arrow key. */
120     RIGHT,
121 
122     /** The space key. */
123     SPACE,
124 
125     /** The tab key. */
126     TAB,
127 
128     /** The up arrow key. */
129     UP
130 }