Source Code Cross Referenced for KeyEvent.java in  » J2EE » ICEfaces-1.6.1 » com » icesoft » faces » component » ext » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » ICEfaces 1.6.1 » com.icesoft.faces.component.ext 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Version: MPL 1.1/GPL 2.0/LGPL 2.1
003:         *
004:         * "The contents of this file are subject to the Mozilla Public License
005:         * Version 1.1 (the "License"); you may not use this file except in
006:         * compliance with the License. You may obtain a copy of the License at
007:         * http://www.mozilla.org/MPL/
008:         *
009:         * Software distributed under the License is distributed on an "AS IS"
010:         * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
011:         * License for the specific language governing rights and limitations under
012:         * the License.
013:         *
014:         * The Original Code is ICEfaces 1.5 open source software code, released
015:         * November 5, 2006. The Initial Developer of the Original Code is ICEsoft
016:         * Technologies Canada, Corp. Portions created by ICEsoft are Copyright (C)
017:         * 2004-2006 ICEsoft Technologies Canada, Corp. All Rights Reserved.
018:         *
019:         * Contributor(s): _____________________.
020:         *
021:         * Alternatively, the contents of this file may be used under the terms of
022:         * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"
023:         * License), in which case the provisions of the LGPL License are
024:         * applicable instead of those above. If you wish to allow use of your
025:         * version of this file only under the terms of the LGPL License and not to
026:         * allow others to use your version of this file under the MPL, indicate
027:         * your decision by deleting the provisions above and replace them with
028:         * the notice and other provisions required by the LGPL License. If you do
029:         * not delete the provisions above, a recipient may use your version of
030:         * this file under either the MPL or the LGPL License."
031:         *
032:         */
033:
034:        package com.icesoft.faces.component.ext;
035:
036:        import javax.faces.component.UIComponent;
037:        import javax.faces.event.ActionEvent;
038:        import javax.faces.event.FacesListener;
039:        import java.util.HashMap;
040:        import java.util.Map;
041:        import java.util.StringTokenizer;
042:
043:        public class KeyEvent extends ActionEvent {
044:            public static final int ESC = 27;
045:            public static final int TAB = 9;
046:            public static final int CAPSLOCK = 20;
047:            public static final int SHIFT = 16;
048:            public static final int CTRL = 17;
049:            public static final int START_LEFT = 91;
050:            public static final int START_RIGHT = 92;
051:            public static final int CONTEXT_MENU = 93;
052:            public static final int ALT = 18;
053:            public static final int SPACE = 32;
054:            public static final int CARRIAGE_RETURN = 13;
055:            public static final int LINE_FEED = 10;
056:            public static final int BACK_SLASH = 220;
057:            public static final int BACK_SPACE = 8;
058:
059:            public static final int INSERT = 45;
060:            public static final int DEL = 46;
061:            public static final int HOME = 36;
062:            public static final int END = 35;
063:            public static final int PAGE_UP = 33;
064:            public static final int PAGE_DOWN = 34;
065:
066:            public static final int PRINT_SCREEN = 44;
067:            public static final int SCR_LK = 145;
068:            public static final int PAUSE = 19;
069:
070:            public static final int LEFT_ARROW_KEY = 37;
071:            public static final int UP_ARROW_KEY = 38;
072:            public static final int RIGHT_ARROW_KEY = 39;
073:            public static final int DOWN_ARROW_KEY = 40;
074:
075:            public static final int F1 = 112;
076:            public static final int F2 = 113;
077:            public static final int F3 = 114;
078:            public static final int F4 = 115;
079:            public static final int F5 = 116;
080:            public static final int F6 = 117;
081:            public static final int F7 = 118;
082:            public static final int F8 = 119;
083:            public static final int F9 = 120;
084:            public static final int F10 = 121;
085:            public static final int F11 = 122;
086:            public static final int F12 = 123;
087:            private Map requestMap;
088:
089:            public KeyEvent(UIComponent uiComponent, Map requestMap) {
090:                super (uiComponent);
091:                this .requestMap = requestMap;
092:            }
093:
094:            public boolean isAltKey() {
095:                return Boolean.valueOf(
096:                        (String) this .requestMap.get("ice.event.alt"))
097:                        .booleanValue();
098:            }
099:
100:            public boolean isCtrlKey() {
101:                return Boolean.valueOf(
102:                        (String) this .requestMap.get("ice.event.ctrl"))
103:                        .booleanValue();
104:            }
105:
106:            public boolean isShiftKey() {
107:                return Boolean.valueOf(
108:                        (String) this .requestMap.get("ice.event.shift"))
109:                        .booleanValue();
110:            }
111:
112:            public int getKeyCode() {
113:                String s = (String) this .requestMap.get("ice.event.keycode");
114:                if (s == null)
115:                    return -1;
116:                return Integer.parseInt(s);
117:            }
118:
119:            public String getType() {
120:                return (String) this .requestMap.get("ice.event.type");
121:            }
122:
123:            public String getComponentId() {
124:                return (String) this .requestMap.get("ice.event.captured");
125:            }
126:
127:            public boolean isAppropriateListener(FacesListener arg0) {
128:                return false;
129:            }
130:
131:            public void processListener(FacesListener arg0) {
132:            }
133:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.