Java Doc for ToolkitEventHandler.java in  » 6.0-JDK-Modules » j2me » sun » porting » toolkit » 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 » 6.0 JDK Modules » j2me » sun.porting.toolkit 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


sun.porting.toolkit.ToolkitEventHandler

ToolkitEventHandler
public interface ToolkitEventHandler (Code)
ToolkitEventHandler is the only interface that a toolkit presents to the underlying window system. It is the means for delivering events up into the toolkit. All of the other interactions between the window system and the toolkit are in the other direction, i.e. the toolkit issues a directive and the window system executes it.)
version:
   1.12, 08/19/02


Field Summary
final  intACTION_PRESSED
     Event ID for a press of special "non-keyboard" keys, like a "GO" key on a remote control.
final  intACTION_RELEASED
     Event ID for a release of special "non-keyboard" keys, like a "GO" key on a remote control.
final  intKEY_EVENT_END
     Delimiting number: a key event will be less than KEY_EVENT_END.
final  intKEY_EVENT_START
     Delimiting number: a key event will be greater than KEY_EVENT_START.
final  intKEY_PRESSED
     Event ID for a key press corresponding to a typewriter-style keyboard.
final  intKEY_RELEASED
     Event ID for a key press corresponding to a typewriter-style keyboard.
final  intKEY_TYPED
     Event ID for an event indicating that a character was typed.
final  intPOINTER_DRAGGED
     Event ID for a drag, i.e.
final  intPOINTER_EVENT_END
     Delimiting number: a pointer event will be less than POINTER_EVENT_END.
final  intPOINTER_EVENT_START
     Delimiting number: a pointer event will be greater than POINTER_EVENT_START.
final  intPOINTER_MOVED
     Event ID for a position change.
final  intPOINTER_PRESSED
     Event ID for a pointer press (i.e.
final  intPOINTER_RELEASED
     Event ID for a pointer release (i.e.
final  intWINDOW_DAMAGED
     Event ID for indicating that a region of a window needs to be repainted.
final  intWINDOW_ENTERED
     Event ID for indicating that the pointing device has entered the window.
final  intWINDOW_EVENT_END
     Delimiting number: a window event will be less than WINDOW_EVENT_END.
final  intWINDOW_EVENT_START
     Delimiting number: a window event will be greater than WINDOW_EVENT_START.
final  intWINDOW_EXITED
     Event ID for indicating that the pointing device has left the window.
final  intWINDOW_GOT_FOCUS
     Event ID for indicating that a window has been assigned keyboard focus.
final  intWINDOW_INVISIBLE
     Event ID for indicating that a mapped window has been clipped and/or completely covered by one or more other windows (this could include its children).
final  intWINDOW_LOST_FOCUS
     Event ID for indicating that a window no longer has the keyboard focus.
final  intWINDOW_MAPPED
     Event ID for indicating that a window has been mapped (made visible).
final  intWINDOW_RESHAPED
     Event ID for indicating that a window has been reshaped (moved and/or resized).
final  intWINDOW_UNMAPPED
     Event ID for indicating that a window has been unmapped (made invisible).


Method Summary
 voidkeyboardEventOccurred(Window win, long when, int ID, int keycode, char keychar)
     Called by the window system in order to deliver a keyboard event.
 voidpointerEventOccurred(Window w, long when, int x, int y, int ID, int number)
     Called by the window system in order to deliver a pointer event.
 voidwindowEventOccurred(Window win, long when, int x, int y, int w, int h, int ID)
     Called by the window system in order to deliver a window event.
Parameters:
  win - The window on which the event occurred.
Parameters:
  when - Time at which the event occurred, in milliseconds since1/1/70 UTC.
Parameters:
  x - x coordinate of position at which the event occurred.
Parameters:
  y - y coordinate of position at which the event occurred.

Field Detail
ACTION_PRESSED
final int ACTION_PRESSED(Code)
Event ID for a press of special "non-keyboard" keys, like a "GO" key on a remote control.



ACTION_RELEASED
final int ACTION_RELEASED(Code)
Event ID for a release of special "non-keyboard" keys, like a "GO" key on a remote control.



KEY_EVENT_END
final int KEY_EVENT_END(Code)
Delimiting number: a key event will be less than KEY_EVENT_END. (Note that this must be updated if new key events are added.)



KEY_EVENT_START
final int KEY_EVENT_START(Code)
Delimiting number: a key event will be greater than KEY_EVENT_START.



KEY_PRESSED
final int KEY_PRESSED(Code)
Event ID for a key press corresponding to a typewriter-style keyboard.



KEY_RELEASED
final int KEY_RELEASED(Code)
Event ID for a key press corresponding to a typewriter-style keyboard.



KEY_TYPED
final int KEY_TYPED(Code)
Event ID for an event indicating that a character was typed. This event is only generated if the window system has taken responsiblity for translating KEY_PRESSED/KEY_RELEASED events into characters.



POINTER_DRAGGED
final int POINTER_DRAGGED(Code)
Event ID for a drag, i.e. a position change that occurs between POINTER_PRESSED and POINTER_RELEASED. The window system is responsible for delivering all drags to the same window that got the press, unless the focus is explicitly redirected by the toolkit.



POINTER_EVENT_END
final int POINTER_EVENT_END(Code)
Delimiting number: a pointer event will be less than POINTER_EVENT_END. (Note that this must be updated if new pointer events are added.)



POINTER_EVENT_START
final int POINTER_EVENT_START(Code)
Delimiting number: a pointer event will be greater than POINTER_EVENT_START.



POINTER_MOVED
final int POINTER_MOVED(Code)
Event ID for a position change. This ID is used when the pointer is being moved but no buttons (etc) are pressed, i.e. not a "drag" event.



POINTER_PRESSED
final int POINTER_PRESSED(Code)
Event ID for a pointer press (i.e. a press associated with position information, like a mouse click, touchscreen press, etc).



POINTER_RELEASED
final int POINTER_RELEASED(Code)
Event ID for a pointer release (i.e. a press associated with position information, like a mouse click, touchscreen press, etc). The window system must guarantee that the release is delivered to the same window that got the press, unless the focus was explicitly redirected by the toolkit.



WINDOW_DAMAGED
final int WINDOW_DAMAGED(Code)
Event ID for indicating that a region of a window needs to be repainted.



WINDOW_ENTERED
final int WINDOW_ENTERED(Code)
Event ID for indicating that the pointing device has entered the window.



WINDOW_EVENT_END
final int WINDOW_EVENT_END(Code)
Delimiting number: a window event will be less than WINDOW_EVENT_END. (Note that this must be updated if new window events are added.)



WINDOW_EVENT_START
final int WINDOW_EVENT_START(Code)
Delimiting number: a window event will be greater than WINDOW_EVENT_START.



WINDOW_EXITED
final int WINDOW_EXITED(Code)
Event ID for indicating that the pointing device has left the window.



WINDOW_GOT_FOCUS
final int WINDOW_GOT_FOCUS(Code)
Event ID for indicating that a window has been assigned keyboard focus.



WINDOW_INVISIBLE
final int WINDOW_INVISIBLE(Code)
Event ID for indicating that a mapped window has been clipped and/or completely covered by one or more other windows (this could include its children). When the window is no longer completely invisible, window system is expected to generate WINDOW_DAMAGED events for the newly-visible portions of the window.) WINDOW_INVISIBLE events must not be generated when the window is unmapped. The toolkit is allowed to use this event for optimization purposes but must not depend on it, because it is optional.



WINDOW_LOST_FOCUS
final int WINDOW_LOST_FOCUS(Code)
Event ID for indicating that a window no longer has the keyboard focus.



WINDOW_MAPPED
final int WINDOW_MAPPED(Code)
Event ID for indicating that a window has been mapped (made visible). The toolkit is allowed to use this event for optimization purposes but must not depend on it, because it is optional.



WINDOW_RESHAPED
final int WINDOW_RESHAPED(Code)
Event ID for indicating that a window has been reshaped (moved and/or resized). For this event, {x, y, w, h} are DELTA VALUES, not absolute.



WINDOW_UNMAPPED
final int WINDOW_UNMAPPED(Code)
Event ID for indicating that a window has been unmapped (made invisible). The toolkit is allowed to use this event for optimization purposes but must not depend on it, because it is optional.





Method Detail
keyboardEventOccurred
void keyboardEventOccurred(Window win, long when, int ID, int keycode, char keychar)(Code)
Called by the window system in order to deliver a keyboard event. Keyboard events are delivered to the window that currently has input focus; whether this is the window that contains the pointer depends on the focus policy implemented by the toolkit.
Parameters:
  win - The window to which the event is directed (the focus window).
Parameters:
  when - Time at which the event occurred, in milliseconds since1/1/70 UTC.
Parameters:
  ID - Type identifier indicating the kind of event
Parameters:
  keycode - A code identifying which key was pressed.
Parameters:
  keychar - Unicode character -- for KEY_TYPED only.
See Also:   java.awt.event.KeyEvent
See Also:   java.lang.System.currentTimeMillis



pointerEventOccurred
void pointerEventOccurred(Window w, long when, int x, int y, int ID, int number)(Code)
Called by the window system in order to deliver a pointer event.
Parameters:
  w - The window in which the event occurred.
Parameters:
  when - Time at which the event occurred, in milliseconds since1/1/70 UTC.
Parameters:
  x - x coordinate of position at which the event occurred.Coordinates are relative to the window.
Parameters:
  y - y coordinate of position at which the event occurred.Coordinates are relative to the window.
Parameters:
  ID - Type identifier indicating the kind of event
Parameters:
  number - Used to distinguish among several buttons (etc) that could have been pressed or released.
See Also:   java.lang.System.currentTimeMillis



windowEventOccurred
void windowEventOccurred(Window win, long when, int x, int y, int w, int h, int ID)(Code)
Called by the window system in order to deliver a window event.
Parameters:
  win - The window on which the event occurred.
Parameters:
  when - Time at which the event occurred, in milliseconds since1/1/70 UTC.
Parameters:
  x - x coordinate of position at which the event occurred.
Parameters:
  y - y coordinate of position at which the event occurred. Coordinates are relativeto the window's parent for a reshape or map event, but relative to the window itself for other events (enter, exit, and damage).
Parameters:
  w - Width of window (reshape or map event) or of thearea to be repainted (damage event).
Parameters:
  h - Width of window (reshape or map event) or of thearea to be repainted (damage event).
Parameters:
  ID - Type identifier indicating the kind of event
See Also:   java.awt.event.KeyEvent
See Also:   java.lang.System.currentTimeMillis



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