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


java.lang.Object
   java.awt.ComponentXWindow

All known Subclasses:   java.awt.HeavyweightComponentXWindow,
ComponentXWindow
class ComponentXWindow (Code)
The X window used by a component to get mouse events from the X server. This winow represents an InputOnly window in X (an invisible window that can be used to select and receive events).
version:
   1.15, 08/19/02
author:
   Nicholas Allen


Field Summary
 Componentcomponent
     The component this X window is for.
 intwindowID
     The native X Window id.
 booleanzeroSize
     true if size is set to zero in either width or height.

Constructor Summary
 ComponentXWindow(Component component)
    

Method Summary
 voidcreate()
     Creates the component's X window.
native  voiddispose()
     Destroys the X window.
native  PointgetLocationOnScreen()
     Gets the location of the X window on the screen.
 voidmap()
     Maps the X window.
native  voidmapNative()
     Maps the X window using XMapWindow xlib function.
 voidpostMouseButtonEvent(int id, long when, int modifiers, int x, int y)
     Called when a mouse button event is received from the X server for this X window. Posts required AWTEvents into the Java event queue for processing.
 voidpostMouseEvent(int id, long when, int modifiers, int x, int y)
     Called when a mouse motion event is received from the X server for this X window. Posts required AWTEvents into the Java event queue for processing.
 voidsetBackground(Color c)
     Sets the background for this x window.
 voidsetBounds(int x, int y, int width, int height)
    
native  voidsetBoundsNative(int x, int y, int width, int height)
     Sets the bounds for this X window using XMoveResizeWindow xlib function.
 voidsetCursor(Cursor cursor)
    
native  voidsetCursorNative(int type)
    
native  voidsetMouseEventMask(long mask)
     Sets the event mask for the X window using the supplied event mask (see AWTEvent). This lets the X server know what kinds of events we are interested in.
native  voidunmap()
     Unmaps the X window using the XUnmapWindow xlib function.

Field Detail
component
Component component(Code)
The component this X window is for.



windowID
int windowID(Code)
The native X Window id.



zeroSize
boolean zeroSize(Code)
true if size is set to zero in either width or height. This is necessary as X doesn't allow 0 size windows.




Constructor Detail
ComponentXWindow
ComponentXWindow(Component component)(Code)




Method Detail
create
void create()(Code)
Creates the component's X window.



dispose
native void dispose()(Code)
Destroys the X window.



getLocationOnScreen
native Point getLocationOnScreen()(Code)
Gets the location of the X window on the screen.



map
void map()(Code)
Maps the X window. This will only map the window if the size is non zero for both the width and height.



mapNative
native void mapNative()(Code)
Maps the X window using XMapWindow xlib function.



postMouseButtonEvent
void postMouseButtonEvent(int id, long when, int modifiers, int x, int y)(Code)
Called when a mouse button event is received from the X server for this X window. Posts required AWTEvents into the Java event queue for processing. This method will determine the click count.



postMouseEvent
void postMouseEvent(int id, long when, int modifiers, int x, int y)(Code)
Called when a mouse motion event is received from the X server for this X window. Posts required AWTEvents into the Java event queue for processing.



setBackground
void setBackground(Color c)(Code)
Sets the background for this x window. As this is an InputOnly X window we don't do anything but sub classes need to override this if the X window is an InputOutput X window.



setBounds
void setBounds(int x, int y, int width, int height)(Code)



setBoundsNative
native void setBoundsNative(int x, int y, int width, int height)(Code)
Sets the bounds for this X window using XMoveResizeWindow xlib function. Note that this function should not be called with a width or height of zero as X will generate errors.



setCursor
void setCursor(Cursor cursor)(Code)



setCursorNative
native void setCursorNative(int type)(Code)



setMouseEventMask
native void setMouseEventMask(long mask)(Code)
Sets the event mask for the X window using the supplied event mask (see AWTEvent). This lets the X server know what kinds of events we are interested in.



unmap
native void unmap()(Code)
Unmaps the X window using the XUnmapWindow xlib function.



Methods inherited from java.lang.Object
public boolean equals(Object obj)(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.