Java Doc for InputHandler.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

All known Subclasses:   org.syntax.jedit.DefaultInputHandler,
InputHandler
abstract public class InputHandler extends KeyAdapter (Code)
An input handler converts the user's key strokes into concrete actions. It also takes care of macro recording and action repetition.

This class provides all the necessary support code for an input handler, but doesn't actually do any key binding logic. It is up to the implementations of this class to do so.
author:
   Slava Pestov
version:
   $Id: InputHandler.java 1167 2008-01-15 18:49:05Z gtoffoli $
See Also:   org.syntax.jedit.DefaultInputHandler
See Also:   08/12/2002 Clipboard actions (Oliver Henning)


Inner Class :public interface NonRepeatable
Inner Class :public interface NonRecordable
Inner Class :public interface Wrapper
Inner Class :public interface MacroRecorder
Inner Class :public static class backspace implements ActionListener
Inner Class :public static class backspace_word implements ActionListener
Inner Class :public static class delete implements ActionListener
Inner Class :public static class delete_word implements ActionListener
Inner Class :public static class end implements ActionListener
Inner Class :public static class select_all implements ActionListener
Inner Class :public static class document_end implements ActionListener
Inner Class :public static class home implements ActionListener
Inner Class :public static class document_home implements ActionListener
Inner Class :public static class insert_break implements ActionListener
Inner Class :public static class insert_tab implements ActionListener
Inner Class :public static class next_char implements ActionListener
Inner Class :public static class next_line implements ActionListener
Inner Class :public static class next_page implements ActionListener
Inner Class :public static class next_word implements ActionListener
Inner Class :public static class overwrite implements ActionListener
Inner Class :public static class prev_char implements ActionListener
Inner Class :public static class prev_line implements ActionListener
Inner Class :public static class prev_page implements ActionListener
Inner Class :public static class prev_word implements ActionListener
Inner Class :public static class repeat implements ActionListener,InputHandler.NonRecordable
Inner Class :public static class toggle_rect implements ActionListener
Inner Class :public static class insert_char implements ActionListener,InputHandler.NonRepeatable
Inner Class :public static class clip_copy implements ActionListener
Inner Class :public static class clip_paste implements ActionListener
Inner Class :public static class clip_cut implements ActionListener
Inner Class :public static class undo implements ActionListener
Inner Class :public static class redo implements ActionListener

Field Summary
final public static  ActionListenerBACKSPACE
    
final public static  ActionListenerBACKSPACE_WORD
    
final public static  ActionListenerCLIP_COPY
    
final public static  ActionListenerCLIP_CUT
    
final public static  ActionListenerCLIP_PASTE
    
final public static  ActionListenerDELETE
    
final public static  ActionListenerDELETE_WORD
    
final public static  ActionListenerDOCUMENT_END
    
final public static  ActionListenerDOCUMENT_HOME
    
final public static  ActionListenerEND
    
final public static  ActionListenerHOME
    
final public static  ActionListenerINSERT_BREAK
    
final public static  ActionListenerINSERT_CHAR
    
final public static  ActionListenerINSERT_TAB
    
final public static  ActionListenerNEXT_CHAR
    
final public static  ActionListenerNEXT_LINE
    
final public static  ActionListenerNEXT_PAGE
    
final public static  ActionListenerNEXT_WORD
    
final public static  ActionListenerOVERWRITE
    
final public static  ActionListenerPREV_CHAR
    
final public static  ActionListenerPREV_LINE
    
final public static  ActionListenerPREV_PAGE
    
final public static  ActionListenerPREV_WORD
    
final public static  ActionListenerREDO
    
final public static  ActionListenerREPEAT
    
final public static  ActionListenerSELECT_ALL
    
final public static  ActionListenerSELECT_DOC_END
    
final public static  ActionListenerSELECT_DOC_HOME
    
final public static  ActionListenerSELECT_END
    
final public static  ActionListenerSELECT_HOME
    
final public static  ActionListenerSELECT_NEXT_CHAR
    
final public static  ActionListenerSELECT_NEXT_LINE
    
final public static  ActionListenerSELECT_NEXT_PAGE
    
final public static  ActionListenerSELECT_NEXT_WORD
    
final public static  ActionListenerSELECT_PREV_CHAR
    
final public static  ActionListenerSELECT_PREV_LINE
    
final public static  ActionListenerSELECT_PREV_PAGE
    
final public static  ActionListenerSELECT_PREV_WORD
    
final public static  StringSMART_HOME_END_PROPERTY
     If this client property is set to Boolean.TRUE on the text area, the home/end keys will support 'smart' BRIEF-like behaviour (one press = start/end of line, two presses = start/end of viewscreen, three presses = start/end of document).
final public static  ActionListenerTOGGLE_RECT
    
final public static  ActionListenerUNDO
    
protected  ActionListenergrabAction
    
protected  InputHandler.MacroRecorderrecorder
    
protected  booleanrepeat
    
protected  intrepeatCount
    


Method Summary
abstract public  voidaddDefaultKeyBindings()
     Adds the default key bindings to this input handler.
abstract public  voidaddKeyBinding(String keyBinding, ActionListener action)
     Adds a key binding to this input handler.
abstract public  InputHandlercopy()
     Returns a copy of this input handler that shares the same key bindings.
public  voidexecuteAction(ActionListener listener, Object source, String actionCommand)
     Executes the specified action, repeating and recording it as necessary.
public static  ActionListenergetAction(String name)
     Returns a named text area action.
public static  StringgetActionName(ActionListener listener)
     Returns the name of the specified text area action.
public static  EnumerationgetActions()
     Returns an enumeration of all available actions.
public  InputHandler.MacroRecordergetMacroRecorder()
     Returns the macro recorder.
public  intgetRepeatCount()
     Returns the number of times the next action will be repeated.
public static  JEditTextAreagetTextArea(EventObject evt)
     Returns the text area that fired the specified event.
public  voidgrabNextKeyStroke(ActionListener listener)
     Grabs the next key typed event and invokes the specified action with the key as a the action command.
protected  voidhandleGrabAction(KeyEvent evt)
     If a key is being grabbed, this method should be called with the appropriate key event.
public  booleanisRepeatEnabled()
     Returns if repeating is enabled.
abstract public  voidremoveAllKeyBindings()
     Removes all key bindings from this input handler.
abstract public  voidremoveKeyBinding(String keyBinding)
     Removes a key binding from this input handler.
public  voidsetMacroRecorder(InputHandler.MacroRecorder recorder)
     Sets the macro recorder.
public  voidsetRepeatCount(int repeatCount)
     Sets the number of times the next action will be repeated.
public  voidsetRepeatEnabled(boolean repeat)
     Enables repeating.

Field Detail
BACKSPACE
final public static ActionListener BACKSPACE(Code)



BACKSPACE_WORD
final public static ActionListener BACKSPACE_WORD(Code)



CLIP_COPY
final public static ActionListener CLIP_COPY(Code)



CLIP_CUT
final public static ActionListener CLIP_CUT(Code)



CLIP_PASTE
final public static ActionListener CLIP_PASTE(Code)



DELETE
final public static ActionListener DELETE(Code)



DELETE_WORD
final public static ActionListener DELETE_WORD(Code)



DOCUMENT_END
final public static ActionListener DOCUMENT_END(Code)



DOCUMENT_HOME
final public static ActionListener DOCUMENT_HOME(Code)



END
final public static ActionListener END(Code)



HOME
final public static ActionListener HOME(Code)



INSERT_BREAK
final public static ActionListener INSERT_BREAK(Code)



INSERT_CHAR
final public static ActionListener INSERT_CHAR(Code)



INSERT_TAB
final public static ActionListener INSERT_TAB(Code)



NEXT_CHAR
final public static ActionListener NEXT_CHAR(Code)



NEXT_LINE
final public static ActionListener NEXT_LINE(Code)



NEXT_PAGE
final public static ActionListener NEXT_PAGE(Code)



NEXT_WORD
final public static ActionListener NEXT_WORD(Code)



OVERWRITE
final public static ActionListener OVERWRITE(Code)



PREV_CHAR
final public static ActionListener PREV_CHAR(Code)



PREV_LINE
final public static ActionListener PREV_LINE(Code)



PREV_PAGE
final public static ActionListener PREV_PAGE(Code)



PREV_WORD
final public static ActionListener PREV_WORD(Code)



REDO
final public static ActionListener REDO(Code)



REPEAT
final public static ActionListener REPEAT(Code)



SELECT_ALL
final public static ActionListener SELECT_ALL(Code)



SELECT_DOC_END
final public static ActionListener SELECT_DOC_END(Code)



SELECT_DOC_HOME
final public static ActionListener SELECT_DOC_HOME(Code)



SELECT_END
final public static ActionListener SELECT_END(Code)



SELECT_HOME
final public static ActionListener SELECT_HOME(Code)



SELECT_NEXT_CHAR
final public static ActionListener SELECT_NEXT_CHAR(Code)



SELECT_NEXT_LINE
final public static ActionListener SELECT_NEXT_LINE(Code)



SELECT_NEXT_PAGE
final public static ActionListener SELECT_NEXT_PAGE(Code)



SELECT_NEXT_WORD
final public static ActionListener SELECT_NEXT_WORD(Code)



SELECT_PREV_CHAR
final public static ActionListener SELECT_PREV_CHAR(Code)



SELECT_PREV_LINE
final public static ActionListener SELECT_PREV_LINE(Code)



SELECT_PREV_PAGE
final public static ActionListener SELECT_PREV_PAGE(Code)



SELECT_PREV_WORD
final public static ActionListener SELECT_PREV_WORD(Code)



SMART_HOME_END_PROPERTY
final public static String SMART_HOME_END_PROPERTY(Code)
If this client property is set to Boolean.TRUE on the text area, the home/end keys will support 'smart' BRIEF-like behaviour (one press = start/end of line, two presses = start/end of viewscreen, three presses = start/end of document). By default, this property is not set.



TOGGLE_RECT
final public static ActionListener TOGGLE_RECT(Code)



UNDO
final public static ActionListener UNDO(Code)



grabAction
protected ActionListener grabAction(Code)



recorder
protected InputHandler.MacroRecorder recorder(Code)



repeat
protected boolean repeat(Code)



repeatCount
protected int repeatCount(Code)





Method Detail
addDefaultKeyBindings
abstract public void addDefaultKeyBindings()(Code)
Adds the default key bindings to this input handler. This should not be called in the constructor of this input handler, because applications might load the key bindings from a file, etc.



addKeyBinding
abstract public void addKeyBinding(String keyBinding, ActionListener action)(Code)
Adds a key binding to this input handler.
Parameters:
  keyBinding - The key binding (the format of this isinput-handler specific)
Parameters:
  action - The action



copy
abstract 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.



executeAction
public void executeAction(ActionListener listener, Object source, String actionCommand)(Code)
Executes the specified action, repeating and recording it as necessary.
Parameters:
  listener - The action listener
Parameters:
  source - The event source
Parameters:
  actionCommand - The action command



getAction
public static ActionListener getAction(String name)(Code)
Returns a named text area action.
Parameters:
  name - The action name



getActionName
public static String getActionName(ActionListener listener)(Code)
Returns the name of the specified text area action.
Parameters:
  listener - The action



getActions
public static Enumeration getActions()(Code)
Returns an enumeration of all available actions.



getMacroRecorder
public InputHandler.MacroRecorder getMacroRecorder()(Code)
Returns the macro recorder. If this is non-null, all executed actions should be forwarded to the recorder.



getRepeatCount
public int getRepeatCount()(Code)
Returns the number of times the next action will be repeated.



getTextArea
public static JEditTextArea getTextArea(EventObject evt)(Code)
Returns the text area that fired the specified event.
Parameters:
  evt - The event



grabNextKeyStroke
public void grabNextKeyStroke(ActionListener listener)(Code)
Grabs the next key typed event and invokes the specified action with the key as a the action command.
Parameters:
  action - The action



handleGrabAction
protected void handleGrabAction(KeyEvent evt)(Code)
If a key is being grabbed, this method should be called with the appropriate key event. It executes the grab action with the typed character as the parameter.



isRepeatEnabled
public boolean isRepeatEnabled()(Code)
Returns if repeating is enabled. When repeating is enabled, actions will be executed multiple times. This is usually invoked with a special key stroke in the input handler.



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



removeKeyBinding
abstract public void removeKeyBinding(String keyBinding)(Code)
Removes a key binding from this input handler.
Parameters:
  keyBinding - The key binding



setMacroRecorder
public void setMacroRecorder(InputHandler.MacroRecorder recorder)(Code)
Sets the macro recorder. If this is non-null, all executed actions should be forwarded to the recorder.
Parameters:
  recorder - The macro recorder



setRepeatCount
public void setRepeatCount(int repeatCount)(Code)
Sets the number of times the next action will be repeated.
Parameters:
  repeatCount - The repeat count



setRepeatEnabled
public void setRepeatEnabled(boolean repeat)(Code)
Enables repeating. When repeating is enabled, actions will be executed multiple times. Once repeating is enabled, the input handler should read a number from the keyboard.



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.