Java Doc for KeyEventTranslator.java in  » Swing-Library » jEdit » org » gjt » sp » jedit » gui » 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 » Swing Library » jEdit » org.gjt.sp.jedit.gui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.gjt.sp.jedit.gui.KeyEventTranslator

KeyEventTranslator
public class KeyEventTranslator (Code)
In conjunction with the KeyEventWorkaround, hides some warts in the AWT key event API.
author:
   Slava Pestov
version:
   $Id: KeyEventTranslator.java 11176 2007-12-01 08:29:08Z k_satoda $

Inner Class :public static class Key

Field Summary
static  intcams
    
protected static  booleanlastKeyPressAccepted
    
protected static  KeyEventlastKeyPressEvent
    


Method Summary
public static  voidaddTranslation(Key key1, Key key2)
     Adds a keyboard translation.
public static  StringgetModifierString(InputEvent evt)
     Returns a string containing symbolic modifier names set in the specified event.
public static  chargetSymbolicModifierName(int mod)
     Returns a the symbolic modifier name for the specified Java modifier flag.
public static  StringmodifiersToString(int mods)
    
public static  KeyparseKey(String keyStroke)
     Converts a string to a keystroke.
public static  voidsetModifierMapping(int c, int a, int m, int s)
     Changes the mapping between symbolic modifier key names (C, A, M, S) and Java modifier flags.
public static  KeytranslateKeyEvent(KeyEvent evt)
     Pass this an event from KeyEventWorkaround.processKeyEvent(java.awt.event.KeyEvent) .
public static  KeytranslateKeyEvent2(KeyEvent evt)
     Pass this an event from KeyEventWorkaround.processKeyEvent(java.awt.event.KeyEvent) .

Field Detail
cams
static int cams(Code)



lastKeyPressAccepted
protected static boolean lastKeyPressAccepted(Code)



lastKeyPressEvent
protected static KeyEvent lastKeyPressEvent(Code)





Method Detail
addTranslation
public static void addTranslation(Key key1, Key key2)(Code)
Adds a keyboard translation.
Parameters:
  key1 - Translate this key
Parameters:
  key2 - Into this key
since:
   jEdit 4.2pre3



getModifierString
public static String getModifierString(InputEvent evt)(Code)
Returns a string containing symbolic modifier names set in the specified event.
Parameters:
  evt - The event
since:
   jEdit 4.2pre3



getSymbolicModifierName
public static char getSymbolicModifierName(int mod)(Code)
Returns a the symbolic modifier name for the specified Java modifier flag.
Parameters:
  mod - A modifier constant from InputEvent
since:
   jEdit 4.2pre3



modifiersToString
public static String modifiersToString(int mods)(Code)



parseKey
public static Key parseKey(String keyStroke)(Code)
Converts a string to a keystroke. The string should be of the form modifiers+shortcut where modifiers is any combination of A for Alt, C for Control, S for Shift or M for Meta, and shortcut is either a single character, or a keycode name from the KeyEvent class, without the VK_ prefix.
Parameters:
  keyStroke - A string description of the key stroke
since:
   jEdit 4.2pre3



setModifierMapping
public static void setModifierMapping(int c, int a, int m, int s)(Code)
Changes the mapping between symbolic modifier key names (C, A, M, S) and Java modifier flags. You can map more than one Java modifier to a symobolic modifier, for example :

 setModifierMapping(
 InputEvent.CTRL_MASK,
 InputEvent.ALT_MASK | InputEvent.META_MASK,
 0,
 InputEvent.SHIFT_MASK);
 

You cannot map a Java modifer to more than one symbolic modifier.
Parameters:
  c - The modifier(s) to map the C modifier to
Parameters:
  a - The modifier(s) to map the A modifier to
Parameters:
  m - The modifier(s) to map the M modifier to
Parameters:
  s - The modifier(s) to map the S modifier to
since:
   jEdit 4.2pre3



translateKeyEvent
public static Key translateKeyEvent(KeyEvent evt)(Code)
Pass this an event from KeyEventWorkaround.processKeyEvent(java.awt.event.KeyEvent) .
Parameters:
  evt - the KeyEvent to translate
since:
   jEdit 4.2pre3



translateKeyEvent2
public static Key translateKeyEvent2(KeyEvent evt)(Code)
Pass this an event from KeyEventWorkaround.processKeyEvent(java.awt.event.KeyEvent) .
Parameters:
  evt - the KeyEvent to translate
since:
   jEdit 4.2pre3



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.