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


java.lang.Object
   sun.awt.qt.QtComponentPeer

All known Subclasses:   sun.awt.qt.QtScrollbarPeer,  sun.awt.qt.QtCheckboxPeer,  sun.awt.qt.QtListPeer,  sun.awt.qt.QtContainerPeer,  sun.awt.qt.QtCanvasPeer,  sun.awt.qt.QtLabelPeer,  sun.awt.qt.QtTextComponentPeer,  sun.awt.qt.QtButtonPeer,  sun.awt.qt.QtChoicePeer,
QtComponentPeer
abstract class QtComponentPeer implements ComponentPeer,UpdateClient,ClipboardOwner(Code)
QtComponentPeer.java
author:
   Indrayana Rustandi
author:
   Nicholas Allen


Field Summary
 intdata
     Used by native code as a pointer to the Qt widget.
 Componenttarget
     The Component this is the peer for.
 QtToolkittoolkit
     The Toolkit that created this peer.

Constructor Summary
 QtComponentPeer(QtToolkit toolkit, Component target)
    

Method Summary
static  booleancanBeFocusedByClick(Component component)
    
protected  booleancanHavePixmapBackground()
     Decides whether it is possible for this component to have a pixmap background (i.e.
public  intcheckImage(Image img, int w, int h, ImageObserver o)
    
abstract protected  voidcreate(QtComponentPeer parentPeer)
     Creates this component peer.
public  ImagecreateImage(ImageProducer producer)
    
public  ImagecreateImage(int width, int height)
    
public  VolatileImagecreateVolatileImage(int width, int height)
    
public  voiddispose()
    
public  ColorModelgetColorModel()
    
public  FontMetricsgetFontMetrics(Font font)
    
public  GraphicsgetGraphics()
    
native public  PointgetLocationOnScreen()
    
public  DimensiongetMinimumSize()
    
public  longgetNativeComponent()
    
native public  DimensiongetPreferredSize()
    
public  ToolkitgetToolkit()
    
public  voidhandleEvent(AWTEvent event)
    
native  voidhide()
    
public  booleanisFocusTraversable()
    
public  booleanisFocusable()
    
native static  booleanisPacked(Component component)
    
public  voidlostOwnership(Clipboard clipboard, Transferable contents)
    
native public  booleannativeRequestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time)
    
public  voidpaint(Graphics g)
    
 voidpostEvent(AWTEvent event)
    
 voidpostMouseEvent(int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int nativeEvent)
    
 voidpostPaintEvent(int x, int y, int width, int height)
     Posts a paint event for this component.
public  booleanprepareImage(Image img, int w, int h, ImageObserver o)
    
public  voidprint(Graphics g)
    
public  voidrepaint(long tm, int x, int y, int width, int height)
    
public  booleanrequestFocus(Component child, Window parent, boolean temporary, boolean focusedWindowChangeAllowed, long time)
    
public  voidsetBackground(Color c)
    
public  voidsetBounds(int x, int y, int width, int height)
    
native  voidsetBoundsNative(int x, int y, int width, int height)
    
public  voidsetCursor(Cursor cursor)
    
native public  voidsetEnabled(boolean b)
    
native public  voidsetFocusable(boolean focusable)
    
public  voidsetFont(Font f)
    
public  voidsetForeground(Color c)
    
public  voidsetVisible(boolean b)
    
protected  booleanshouldFocusOnClick()
    
native  voidshow()
     Shows this widget.
protected  byte[]stringToNulMultiByte(String string)
    
public  voidupdate(Graphics g)
    
public  voidupdateClient(Object arg)
     Called by the ScreenUpdater to update the component.

Field Detail
data
int data(Code)
Used by native code as a pointer to the Qt widget.



target
Component target(Code)
The Component this is the peer for.



toolkit
QtToolkit toolkit(Code)
The Toolkit that created this peer.




Constructor Detail
QtComponentPeer
QtComponentPeer(QtToolkit toolkit, Component target)(Code)




Method Detail
canBeFocusedByClick
static boolean canBeFocusedByClick(Component component)(Code)



canHavePixmapBackground
protected boolean canHavePixmapBackground()(Code)
Decides whether it is possible for this component to have a pixmap background (i.e. a non solid color). We allow all components except Window, Frame, Dialog, Panel and Canvas to have pixmaps as the user can, and typically does, override the paint for these components. Thus update can be called which will clear the background with a solid color for these components. However, we would still like to have support for Qt themes where a button, for example, may hava a pixmap background.



checkImage
public int checkImage(Image img, int w, int h, ImageObserver o)(Code)



create
abstract protected void create(QtComponentPeer parentPeer)(Code)
Creates this component peer. This requires setting the data field to point to a struct QtComponentData.



createImage
public Image createImage(ImageProducer producer)(Code)



createImage
public Image createImage(int width, int height)(Code)



createVolatileImage
public VolatileImage createVolatileImage(int width, int height)(Code)



dispose
public void dispose()(Code)



getColorModel
public ColorModel getColorModel()(Code)



getFontMetrics
public FontMetrics getFontMetrics(Font font)(Code)



getGraphics
public Graphics getGraphics()(Code)



getLocationOnScreen
native public Point getLocationOnScreen()(Code)



getMinimumSize
public Dimension getMinimumSize()(Code)



getNativeComponent
public long getNativeComponent()(Code)



getPreferredSize
native public Dimension getPreferredSize()(Code)



getToolkit
public Toolkit getToolkit()(Code)



handleEvent
public void handleEvent(AWTEvent event)(Code)



hide
native void hide()(Code)
Hides this widget



isFocusTraversable
public boolean isFocusTraversable()(Code)



isFocusable
public boolean isFocusable()(Code)



isPacked
native static boolean isPacked(Component component)(Code)



lostOwnership
public void lostOwnership(Clipboard clipboard, Transferable contents)(Code)



nativeRequestFocus
native public boolean nativeRequestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time)(Code)



paint
public void paint(Graphics g)(Code)



postEvent
void postEvent(AWTEvent event)(Code)



postMouseEvent
void postMouseEvent(int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int nativeEvent)(Code)



postPaintEvent
void postPaintEvent(int x, int y, int width, int height)(Code)
Posts a paint event for this component. This is called when an area of the component is exposed. The area that needs to be painted is specified by the parameters.



prepareImage
public boolean prepareImage(Image img, int w, int h, ImageObserver o)(Code)



print
public void print(Graphics g)(Code)



repaint
public void repaint(long tm, int x, int y, int width, int height)(Code)



requestFocus
public boolean requestFocus(Component child, Window parent, boolean temporary, boolean focusedWindowChangeAllowed, long time)(Code)



setBackground
public void setBackground(Color c)(Code)



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



setBoundsNative
native void setBoundsNative(int x, int y, int width, int height)(Code)



setCursor
public void setCursor(Cursor cursor)(Code)



setEnabled
native public void setEnabled(boolean b)(Code)



setFocusable
native public void setFocusable(boolean focusable)(Code)



setFont
public void setFont(Font f)(Code)



setForeground
public void setForeground(Color c)(Code)



setVisible
public void setVisible(boolean b)(Code)



shouldFocusOnClick
protected boolean shouldFocusOnClick()(Code)



show
native void show()(Code)
Shows this widget.



stringToNulMultiByte
protected byte[] stringToNulMultiByte(String string)(Code)



update
public void update(Graphics g)(Code)



updateClient
public void updateClient(Object arg)(Code)
Called by the ScreenUpdater to update the component.



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.