Java Doc for DefaultInputHandler.java in  » Report » iReport-2.0.5 » org » syntax » jedit » 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 » Report » iReport 2.0.5 » org.syntax.jedit 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.awt.event.KeyAdapter
      org.syntax.jedit.InputHandler
         org.syntax.jedit.DefaultInputHandler

DefaultInputHandler
public class DefaultInputHandler extends InputHandler (Code)
The default input handler. It maps sequences of keystrokes into actions and inserts key typed events into the text area.
author:
   Slava Pestov
version:
   $Id: DefaultInputHandler.java 1167 2008-01-15 18:49:05Z gtoffoli $



Constructor Summary
public  DefaultInputHandler()
     Creates a new input handler with no key bindings defined.

Method Summary
public  voidaddDefaultKeyBindings()
     Sets up the default key bindings.
public  voidaddKeyBinding(String keyBinding, ActionListener action)
     Adds a key binding to this input handler.
public  InputHandlercopy()
     Returns a copy of this input handler that shares the same key bindings.
public  voidkeyPressed(KeyEvent evt)
     Handle a key pressed event.
public  voidkeyTyped(KeyEvent evt)
     Handle a key typed event.
public static  KeyStrokeparseKeyStroke(String keyStroke)
     Converts a string to a keystroke.
public  voidremoveAllKeyBindings()
     Removes all key bindings from this input handler.
public  voidremoveKeyBinding(String keyBinding)
     Removes a key binding from this input handler.


Constructor Detail
DefaultInputHandler
public DefaultInputHandler()(Code)
Creates a new input handler with no key bindings defined.




Method Detail
addDefaultKeyBindings
public void addDefaultKeyBindings()(Code)
Sets up the default key bindings.



addKeyBinding
public void addKeyBinding(String keyBinding, ActionListener action)(Code)
Adds a key binding to this input handler. The key binding is a list of white space separated key strokes of the form [modifiers+]key where modifier is C for Control, A for Alt, or S for Shift, and key is either a character (a-z) or a field name in the KeyEvent class prefixed with VK_ (e.g., BACK_SPACE)
Parameters:
  keyBinding - The key binding
Parameters:
  action - The action



copy
public InputHandler copy()(Code)
Returns a copy of this input handler that shares the same key bindings. Setting key bindings in the copy will also set them in the original.



keyPressed
public void keyPressed(KeyEvent evt)(Code)
Handle a key pressed event. This will look up the binding for the key stroke and execute it.



keyTyped
public void keyTyped(KeyEvent evt)(Code)
Handle a key typed event. This inserts the key into the text area.



parseKeyStroke
public static KeyStroke parseKeyStroke(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



removeAllKeyBindings
public void removeAllKeyBindings()(Code)
Removes all key bindings from this input handler.



removeKeyBinding
public void removeKeyBinding(String keyBinding)(Code)
Removes a key binding from this input handler. This is not yet implemented.
Parameters:
  keyBinding - The key binding



Fields inherited from org.syntax.jedit.InputHandler
final public static ActionListener BACKSPACE(Code)(Java Doc)
final public static ActionListener BACKSPACE_WORD(Code)(Java Doc)
final public static ActionListener CLIP_COPY(Code)(Java Doc)
final public static ActionListener CLIP_CUT(Code)(Java Doc)
final public static ActionListener CLIP_PASTE(Code)(Java Doc)
final public static ActionListener DELETE(Code)(Java Doc)
final public static ActionListener DELETE_WORD(Code)(Java Doc)
final public static ActionListener DOCUMENT_END(Code)(Java Doc)
final public static ActionListener DOCUMENT_HOME(Code)(Java Doc)
final public static ActionListener END(Code)(Java Doc)
final public static ActionListener HOME(Code)(Java Doc)
final public static ActionListener INSERT_BREAK(Code)(Java Doc)
final public static ActionListener INSERT_CHAR(Code)(Java Doc)
final public static ActionListener INSERT_TAB(Code)(Java Doc)
final public static ActionListener NEXT_CHAR(Code)(Java Doc)
final public static ActionListener NEXT_LINE(Code)(Java Doc)
final public static ActionListener NEXT_PAGE(Code)(Java Doc)
final public static ActionListener NEXT_WORD(Code)(Java Doc)
final public static ActionListener OVERWRITE(Code)(Java Doc)
final public static ActionListener PREV_CHAR(Code)(Java Doc)
final public static ActionListener PREV_LINE(Code)(Java Doc)
final public static ActionListener PREV_PAGE(Code)(Java Doc)
final public static ActionListener PREV_WORD(Code)(Java Doc)
final public static ActionListener REDO(Code)(Java Doc)
final public static ActionListener REPEAT(Code)(Java Doc)
final public static ActionListener SELECT_ALL(Code)(Java Doc)
final public static ActionListener SELECT_DOC_END(Code)(Java Doc)
final public static ActionListener SELECT_DOC_HOME(Code)(Java Doc)
final public static ActionListener SELECT_END(Code)(Java Doc)
final public static ActionListener SELECT_HOME(Code)(Java Doc)
final public static ActionListener SELECT_NEXT_CHAR(Code)(Java Doc)
final public static ActionListener SELECT_NEXT_LINE(Code)(Java Doc)
final public static ActionListener SELECT_NEXT_PAGE(Code)(Java Doc)
final public static ActionListener SELECT_NEXT_WORD(Code)(Java Doc)
final public static ActionListener SELECT_PREV_CHAR(Code)(Java Doc)
final public static ActionListener SELECT_PREV_LINE(Code)(Java Doc)
final public static ActionListener SELECT_PREV_PAGE(Code)(Java Doc)
final public static ActionListener SELECT_PREV_WORD(Code)(Java Doc)
final public static String SMART_HOME_END_PROPERTY(Code)(Java Doc)
final public static ActionListener TOGGLE_RECT(Code)(Java Doc)
final public static ActionListener UNDO(Code)(Java Doc)
protected ActionListener grabAction(Code)(Java Doc)
protected InputHandler.MacroRecorder recorder(Code)(Java Doc)
protected boolean repeat(Code)(Java Doc)
protected int repeatCount(Code)(Java Doc)

Methods inherited from org.syntax.jedit.InputHandler
abstract public void addDefaultKeyBindings()(Code)(Java Doc)
abstract public void addKeyBinding(String keyBinding, ActionListener action)(Code)(Java Doc)
abstract public InputHandler copy()(Code)(Java Doc)
public void executeAction(ActionListener listener, Object source, String actionCommand)(Code)(Java Doc)
public static ActionListener getAction(String name)(Code)(Java Doc)
public static String getActionName(ActionListener listener)(Code)(Java Doc)
public static Enumeration getActions()(Code)(Java Doc)
public InputHandler.MacroRecorder getMacroRecorder()(Code)(Java Doc)
public int getRepeatCount()(Code)(Java Doc)
public static JEditTextArea getTextArea(EventObject evt)(Code)(Java Doc)
public void grabNextKeyStroke(ActionListener listener)(Code)(Java Doc)
protected void handleGrabAction(KeyEvent evt)(Code)(Java Doc)
public boolean isRepeatEnabled()(Code)(Java Doc)
abstract public void removeAllKeyBindings()(Code)(Java Doc)
abstract public void removeKeyBinding(String keyBinding)(Code)(Java Doc)
public void setMacroRecorder(InputHandler.MacroRecorder recorder)(Code)(Java Doc)
public void setRepeatCount(int repeatCount)(Code)(Java Doc)
public void setRepeatEnabled(boolean repeat)(Code)(Java Doc)

Methods inherited from java.awt.event.KeyAdapter
public void keyPressed(KeyEvent e)(Code)(Java Doc)
public void keyReleased(KeyEvent e)(Code)(Java Doc)
public void keyTyped(KeyEvent e)(Code)(Java Doc)

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.