Java Doc for MComponentPeer.java in  » 6.0-JDK-Platform » solaris » sun » awt » motif » 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 Platform » solaris » sun.awt.motif 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   sun.awt.motif.MComponentPeer

All known Subclasses:   sun.awt.motif.MLabelPeer,  sun.awt.motif.MTextAreaPeer,  sun.awt.motif.MListPeer,  sun.awt.motif.MCanvasPeer,  sun.awt.motif.MCheckboxPeer,  sun.awt.motif.MButtonPeer,  sun.awt.motif.MScrollbarPeer,  sun.awt.motif.MTextFieldPeer,  sun.awt.motif.MChoicePeer,
MComponentPeer
abstract public class MComponentPeer implements ComponentPeer,DropTargetPeer,X11ComponentPeer(Code)


Field Summary
final static  intMOTIF_NA
    
final static  intMOTIF_V1
    
final static  intMOTIF_V2
    
final static  FontdefaultFont
    
protected  booleandisposed
    
protected  X11GraphicsConfiggraphicsConfig
    
 booleanisLayouting
    
 longjniGlobalRef
    
 intoldHeight
    
 intoldWidth
    
 longpData
    
 booleanpaintPending
    
static  MethodrequestFocusWithCause
    
public  intserialNum
    
 SurfaceDatasurfaceData
    
 Componenttarget
    

Constructor Summary
 MComponentPeer(Component target, Object arg)
    
 MComponentPeer()
    
 MComponentPeer(Component target)
    

Method Summary
 voidEFcreate(MComponentPeer parent, int x)
    
native  boolean_requestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time, CausedFocusEvent.Cause cause)
    
public  voidaddDropTarget(DropTarget dt)
    
native  voidaddNativeDropTarget(DropTarget dt)
    
public  voidbeginLayout()
    
public  voidbeginValidate()
    
static  voidcallRequestFocusInWindow(Component target, CausedFocusEvent.Cause cause)
    
static  booleancanBeFocusedByClick(Component component)
     Checks whether or not this component would be focused by native system if it would be allowed to do so.
public  booleancanDetermineObscurity()
    
public  intcheckImage(Image img, int w, int h, ImageObserver o)
    
public  booleancheckNativePaintOnSetBounds(int width, int height)
    
public  voidcoalescePaintEvent(PaintEvent e)
    
abstract  voidcreate(MComponentPeer parent)
    
 voidcreate(MComponentPeer parent, Object arg)
    
public  voidcreateBuffers(int numBuffers, BufferCapabilities caps)
    
public  ImagecreateImage(ImageProducer producer)
    
public  ImagecreateImage(int width, int height)
    
public  VolatileImagecreateVolatileImage(int width, int height)
    
public  voiddestroyBuffers()
    
public  voiddisable()
     DEPRECATED: Replaced by setEnabled(boolean).
final public  voiddispose()
    
protected  voiddisposeImpl()
    
 voiddraw3DOval(Graphics g, Color bg, int x, int y, int w, int h, boolean raised)
    
 voiddraw3DRect(Graphics g, Color bg, int x, int y, int width, int height, boolean raised)
    
 voiddrawScrollbar(Graphics g, Color bg, int thickness, int length, int min, int max, int val, int vis, boolean horizontal)
    
public  voidenable()
     DEPRECATED: Replaced by setEnabled(boolean).
public  voidendLayout()
    
public  voidendValidate()
    
protected  voidfinalize()
    
public  voidflip(BufferCapabilities.FlipContents flipAction)
    
public  ImagegetBackBuffer()
    
public  RectanglegetBounds()
    
public  ColorModelgetColorModel()
    
public  ColorModelgetColorModel(int transparency)
    
native static  Component[]getComponents_NoClientCode(Container container)
    
public  longgetContentWindow()
    
public  FontMetricsgetFontMetrics(Font font)
    
public synchronized  GraphicsgetGraphics()
    
public  GraphicsConfigurationgetGraphicsConfiguration()
    
public  PointgetLocationOnScreen()
    
public  DimensiongetMinimumSize()
    
native  intgetNativeColor(Color clr, GraphicsConfiguration gc)
    
native static  WindowgetNativeFocusedWindow()
    
native static  ContainergetParent_NoClientCode(Component component)
    
public  DimensiongetPreferredSize()
    
public  SurfaceDatagetSurfaceData()
    
public  ObjectgetTarget()
    
public  java.awt.ToolkitgetToolkit()
    
public  intgetZOrderPosition_NoClientCode()
    
public  voidhandleEvent(AWTEvent e)
    
 voidhandleExpose(int x, int y, int w, int h)
    
 voidhandleRepaint(int x, int y, int w, int h)
    
public  booleanhandlesWheelScrolling()
    
public  voidhide()
     DEPRECATED: Replaced by setVisible(boolean).
public  voidinit(Component target, Object arg)
    
public  voidinit(Component target)
    
 voidinitialize()
    
public  booleanisFocusable()
    
public  booleanisObscured()
    
public  booleanisPaintPending()
    
public  booleanisReparentSupported()
    
public  voidlayout()
    
public  DimensionminimumSize()
     DEPRECATED: Replaced by getMinimumSize().
native  voidnativeHandleEvent(AWTEvent e)
    
public  voidnotifyTextComponentChange(boolean add)
    
native  voidpDisable()
    
native  voidpDispose()
    
native  voidpEnable()
    
native  PointpGetLocationOnScreen()
    
native  PointpGetLocationOnScreen2(Window win, MWindowPeer wpeer)
    
native  voidpHide()
    
native  voidpInitialize()
    
native  voidpMakeCursorVisible()
    
native  voidpReshape(int x, int y, int width, int height)
    
native  voidpSetBackground(Color c)
    
native public  voidpSetCursor(Cursor c)
    
native  voidpSetForeground(Color c)
    
native public  voidpSetInnerForeground(Color c)
    
native public  voidpSetScrollbarBackground(Color c)
    
native  voidpShow()
    
public  voidpaint(Graphics g)
    
 voidpostEvent(AWTEvent event)
    
public  DimensionpreferredSize()
     DEPRECATED: Replaced by getPreferredSize().
public  booleanprepareImage(Image img, int w, int h, ImageObserver o)
    
public  voidprint(Graphics g)
    
native static  booleanprocessSynchronousLightweightTransfer(Component heavyweight, Component descendant, boolean temporary, boolean focusedWindowChangeAllowed, long time)
    
public  voidremoveDropTarget(DropTarget dt)
    
native  voidremoveNativeDropTarget(DropTarget dt)
    
public  voidrepaint(long tm, int x, int y, int width, int height)
    
public  voidreparent(ContainerPeer newNativeParent)
    
public  booleanrequestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time, CausedFocusEvent.Cause cause)
    
public  voidreshape(int x, int y, int width, int height)
     DEPRECATED: Replaced by setBounds(int, int, int, int).
native  voidrestoreFocus()
    
public  voidsetBackground(Color c)
    
 voidsetBounds(int x, int y, int width, int height)
    
public  voidsetBounds(int x, int y, int width, int height, int op)
    
public  voidsetEnabled(boolean b)
    
public  voidsetFont(Font f)
    
public  voidsetForeground(Color c)
    
native public  voidsetTargetBackground(Color c)
    
public  voidsetVisible(boolean b)
    
protected  booleanshouldFocusOnClick()
     Returns whether or not this component should be given focus on mouse click.
public  voidshow()
     DEPRECATED: Replaced by setVisible(boolean).
public  StringtoString()
    
public  voidupdateCursorImmediately()
    
public  intupdatePriority()
    
 voidvalidateSurface(int width, int height)
    

Field Detail
MOTIF_NA
final static int MOTIF_NA(Code)



MOTIF_V1
final static int MOTIF_V1(Code)



MOTIF_V2
final static int MOTIF_V2(Code)



defaultFont
final static Font defaultFont(Code)



disposed
protected boolean disposed(Code)



graphicsConfig
protected X11GraphicsConfig graphicsConfig(Code)



isLayouting
boolean isLayouting(Code)



jniGlobalRef
long jniGlobalRef(Code)



oldHeight
int oldHeight(Code)



oldWidth
int oldWidth(Code)



pData
long pData(Code)



paintPending
boolean paintPending(Code)



requestFocusWithCause
static Method requestFocusWithCause(Code)



serialNum
public int serialNum(Code)



surfaceData
SurfaceData surfaceData(Code)



target
Component target(Code)




Constructor Detail
MComponentPeer
MComponentPeer(Component target, Object arg)(Code)



MComponentPeer
MComponentPeer()(Code)



MComponentPeer
MComponentPeer(Component target)(Code)




Method Detail
EFcreate
void EFcreate(MComponentPeer parent, int x)(Code)



_requestFocus
native boolean _requestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time, CausedFocusEvent.Cause cause)(Code)



addDropTarget
public void addDropTarget(DropTarget dt)(Code)



addNativeDropTarget
native void addNativeDropTarget(DropTarget dt)(Code)



beginLayout
public void beginLayout()(Code)



beginValidate
public void beginValidate()(Code)



callRequestFocusInWindow
static void callRequestFocusInWindow(Component target, CausedFocusEvent.Cause cause)(Code)



canBeFocusedByClick
static boolean canBeFocusedByClick(Component component)(Code)
Checks whether or not this component would be focused by native system if it would be allowed to do so. Currently it checks that it displayable, visible, enabled and focusable.



canDetermineObscurity
public boolean canDetermineObscurity()(Code)



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



checkNativePaintOnSetBounds
public boolean checkNativePaintOnSetBounds(int width, int height)(Code)



coalescePaintEvent
public void coalescePaintEvent(PaintEvent e)(Code)



create
abstract void create(MComponentPeer parent)(Code)



create
void create(MComponentPeer parent, Object arg)(Code)



createBuffers
public void createBuffers(int numBuffers, BufferCapabilities caps) throws AWTException(Code)



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)



destroyBuffers
public void destroyBuffers()(Code)



disable
public void disable()(Code)
DEPRECATED: Replaced by setEnabled(boolean).



dispose
final public void dispose()(Code)



disposeImpl
protected void disposeImpl()(Code)



draw3DOval
void draw3DOval(Graphics g, Color bg, int x, int y, int w, int h, boolean raised)(Code)



draw3DRect
void draw3DRect(Graphics g, Color bg, int x, int y, int width, int height, boolean raised)(Code)



drawScrollbar
void drawScrollbar(Graphics g, Color bg, int thickness, int length, int min, int max, int val, int vis, boolean horizontal)(Code)



enable
public void enable()(Code)
DEPRECATED: Replaced by setEnabled(boolean).



endLayout
public void endLayout()(Code)



endValidate
public void endValidate()(Code)



finalize
protected void finalize() throws Throwable(Code)



flip
public void flip(BufferCapabilities.FlipContents flipAction)(Code)



getBackBuffer
public Image getBackBuffer()(Code)



getBounds
public Rectangle getBounds()(Code)



getColorModel
public ColorModel getColorModel()(Code)



getColorModel
public ColorModel getColorModel(int transparency)(Code)



getComponents_NoClientCode
native static Component[] getComponents_NoClientCode(Container container)(Code)



getContentWindow
public long getContentWindow()(Code)



getFontMetrics
public FontMetrics getFontMetrics(Font font)(Code)



getGraphics
public synchronized Graphics getGraphics()(Code)



getGraphicsConfiguration
public GraphicsConfiguration getGraphicsConfiguration()(Code)



getLocationOnScreen
public Point getLocationOnScreen()(Code)



getMinimumSize
public Dimension getMinimumSize()(Code)



getNativeColor
native int getNativeColor(Color clr, GraphicsConfiguration gc)(Code)



getNativeFocusedWindow
native static Window getNativeFocusedWindow()(Code)



getParent_NoClientCode
native static Container getParent_NoClientCode(Component component)(Code)



getPreferredSize
public Dimension getPreferredSize()(Code)



getSurfaceData
public SurfaceData getSurfaceData()(Code)



getTarget
public Object getTarget()(Code)



getToolkit
public java.awt.Toolkit getToolkit()(Code)



getZOrderPosition_NoClientCode
public int getZOrderPosition_NoClientCode()(Code)



handleEvent
public void handleEvent(AWTEvent e)(Code)



handleExpose
void handleExpose(int x, int y, int w, int h)(Code)



handleRepaint
void handleRepaint(int x, int y, int w, int h)(Code)



handlesWheelScrolling
public boolean handlesWheelScrolling()(Code)



hide
public void hide()(Code)
DEPRECATED: Replaced by setVisible(boolean).



init
public void init(Component target, Object arg)(Code)



init
public void init(Component target)(Code)



initialize
void initialize()(Code)



isFocusable
public boolean isFocusable()(Code)



isObscured
public boolean isObscured()(Code)



isPaintPending
public boolean isPaintPending()(Code)



isReparentSupported
public boolean isReparentSupported()(Code)

See Also:   java.awt.peer.ComponentPeer.isReparentSupported



layout
public void layout()(Code)



minimumSize
public Dimension minimumSize()(Code)
DEPRECATED: Replaced by getMinimumSize().



nativeHandleEvent
native void nativeHandleEvent(AWTEvent e)(Code)



notifyTextComponentChange
public void notifyTextComponentChange(boolean add)(Code)



pDisable
native void pDisable()(Code)



pDispose
native void pDispose()(Code)



pEnable
native void pEnable()(Code)



pGetLocationOnScreen
native Point pGetLocationOnScreen()(Code)



pGetLocationOnScreen2
native Point pGetLocationOnScreen2(Window win, MWindowPeer wpeer)(Code)



pHide
native void pHide()(Code)



pInitialize
native void pInitialize()(Code)



pMakeCursorVisible
native void pMakeCursorVisible()(Code)



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



pSetBackground
native void pSetBackground(Color c)(Code)



pSetCursor
native public void pSetCursor(Cursor c)(Code)



pSetForeground
native void pSetForeground(Color c)(Code)



pSetInnerForeground
native public void pSetInnerForeground(Color c)(Code)



pSetScrollbarBackground
native public void pSetScrollbarBackground(Color c)(Code)



pShow
native void pShow()(Code)



paint
public void paint(Graphics g)(Code)



postEvent
void postEvent(AWTEvent event)(Code)



preferredSize
public Dimension preferredSize()(Code)
DEPRECATED: Replaced by getPreferredSize().



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



print
public void print(Graphics g)(Code)



processSynchronousLightweightTransfer
native static boolean processSynchronousLightweightTransfer(Component heavyweight, Component descendant, boolean temporary, boolean focusedWindowChangeAllowed, long time)(Code)



removeDropTarget
public void removeDropTarget(DropTarget dt)(Code)



removeNativeDropTarget
native void removeNativeDropTarget(DropTarget dt)(Code)



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



reparent
public void reparent(ContainerPeer newNativeParent)(Code)

See Also:   java.awt.peer.ComponentPeer.reparent



requestFocus
public boolean requestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time, CausedFocusEvent.Cause cause)(Code)



reshape
public void reshape(int x, int y, int width, int height)(Code)
DEPRECATED: Replaced by setBounds(int, int, int, int).



restoreFocus
native void restoreFocus()(Code)



setBackground
public void setBackground(Color c)(Code)



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



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



setEnabled
public void setEnabled(boolean b)(Code)



setFont
public void setFont(Font f)(Code)



setForeground
public void setForeground(Color c)(Code)



setTargetBackground
native public void setTargetBackground(Color c)(Code)



setVisible
public void setVisible(boolean b)(Code)



shouldFocusOnClick
protected boolean shouldFocusOnClick()(Code)
Returns whether or not this component should be given focus on mouse click. Default implementation return whether or not this peer is "focusable" Descendants might want to override it to extend/restrict conditions at which this component should be focused by click (see MCanvasPeer and MPanelPeer)



show
public void show()(Code)
DEPRECATED: Replaced by setVisible(boolean).



toString
public String toString()(Code)



updateCursorImmediately
public void updateCursorImmediately()(Code)



updatePriority
public int updatePriority()(Code)



validateSurface
void validateSurface(int width, int height)(Code)



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.