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


java.lang.Object
   sun.awt.X11.XBaseWindow

All known Subclasses:   sun.awt.X11.XRootWindow,  sun.awt.X11.XWindow,  sun.awt.X11.XIconWindow,  sun.awt.X11.XFocusProxyWindow,
XBaseWindow
public class XBaseWindow implements XConstants,XUtilConstants(Code)

Inner Class :static enum InitialiseState
Inner Class :static class StateLock extends Object

Field Summary
final static  intDEF_LOCATION
    
final static  intMIN_SIZE
    
final public static  StringPARENT_WINDOWBOUNDSOVERRIDE_REDIRECTEVENT_MASKVALUE_MASKBORDER_PIXELCOLORMAPDEPTHVISUAL_CLASSVISUALEMBEDDEDDELAYEDPARENTBACKGROUND_PIXMAPVISIBLESAVE_UNDERBACKING_STOREBIT_GRAVITY
    
 Set<Long>children
    
 booleanembedded
    
 intheight
    
 booleanmapped
    
 RectanglemaxBounds
    
volatile  XBaseWindowparentWindow
    
protected  StateLockstate_lock
    
 booleanvisible
    
 intwidth
    
 longwindow
    
 intx
    
 inty
    

Constructor Summary
 XBaseWindow()
    
 XBaseWindow(long parentWindow, Rectangle bounds)
    
 XBaseWindow(Rectangle bounds)
    
public  XBaseWindow(XCreateWindowParams params)
    
 XBaseWindow(long parentWindow)
    

Method Summary
 voidawtLock()
    
 voidawtLockNotifyAll()
    
 voidawtLockWait()
    
 voidawtUnlock()
    
public  booleancheckInitialised()
    
protected  voidcheckParams(XCreateWindowParams params)
     Verifies that all required parameters are set.
static  voidcheckSecurity()
    
public  booleancontains(int x, int y)
     Returns whether the given point is inside of the window.
public  booleancontainsGlobal(int x, int y)
     Returns whether the given point is inside of the window.
 voiddestroy()
    
public  voiddispatchEvent(XEvent xev)
    
static  voiddispatchToWindow(XEvent ev)
    
 voidflush()
    
public  intgetAbsoluteX()
    
public  intgetAbsoluteY()
    
public  RectanglegetBounds()
    
public  Set<Long>getChildren()
    
public  longgetContentWindow()
    
public  XBaseWindowgetContentXWindow()
    
public  XCreateWindowParamsgetDelayedParams()
    
 intgetHeight()
    
public  XSizeHintsgetHints()
    
public  XBaseWindowgetParentWindow()
    
 longgetScreen()
    
 longgetScreenNumber()
    
static  longgetScreenOfWindow(long window)
    
public  DimensiongetSize()
    
 ObjectgetStateLock()
     This lock object can be used to protect instance data from concurrent access by two threads.
public  XWindowPeergetToplevelXWindow()
    
public  XWMHintsgetWMHints()
    
protected  StringgetWMName()
    
 intgetWidth()
    
public  longgetWindow()
    
 intgetX()
    
static  XRootWindowgetXAWTRootWindow()
    
 intgetY()
    
public  booleangrabInput()
     We should always grab both keyboard and pointer to control event flow on popups.
public  voidhandleButtonPressRelease(XEvent xev)
    
public  voidhandleClientMessage(XEvent xev)
    
public  voidhandleConfigureNotifyEvent(XEvent xev)
    
public  voidhandleCreateNotify(XEvent xev)
    
public  voidhandleDestroyNotify(XEvent xev)
    
public  voidhandleExposeEvent(XEvent xev)
    
public  voidhandleKeyPress(XEvent xev)
    
public  voidhandleKeyRelease(XEvent xev)
    
public  voidhandleMapNotifyEvent(XEvent xev)
    
public  voidhandleMotionNotify(XEvent xev)
    
public  voidhandlePropertyNotify(XEvent xev)
    
public  voidhandleReparentNotifyEvent(XEvent xev)
    
public  voidhandleUnmapNotifyEvent(XEvent xev)
    
public  voidhandleVisibilityEvent(XEvent xev)
    
public  voidhandleXCrossingEvent(XEvent xev)
    
final protected  voidinit(long parentWindow, Rectangle bounds)
    
final protected  voidinit(XCreateWindowParams params)
     Creates window using parameters params If params contain flag DELAYED doesn't do anything.
protected  voidinitClientLeader()
    
 voidinstantPreInit(XCreateWindowParams params)
    
 booleanisDisposed()
    
protected  booleanisEventDisabled(XEvent e)
    
static  booleanisFullRelease(int buttonState, int button)
    
static  booleanisGrabbedEvent(XEvent ev, XBaseWindow target)
    
 booleanisMapped()
    
public  booleanisMinSizeSet()
    
 booleanisVisible()
    
final protected  voidpostInit()
    
 voidpostInit(XCreateWindowParams params)
     Called after window creation, descendants should override to initialize Window with class-specific values and perform post-initialization actions.
final protected  voidpreInit()
    
 voidpreInit(XCreateWindowParams params)
     Called before window creation, descendants should override to initialize the data, initialize params.
 voidsetDisposed(boolean d)
    
public  voidsetSizeHints(long flags, int x, int y, int width, int height)
    
 voidsetWMClass(String[] cl)
    
final public  voidsetWMHints(XWMHints hints)
    
public  voidtoFront()
    
 RectangletoGlobal(Rectangle rec)
    
 PointtoGlobal(Point pt)
    
 PointtoGlobal(int x, int y)
    
 PointtoLocal(Point pt)
    
 PointtoLocal(int x, int y)
    
static  PointtoOtherWindow(long src, long dst, int x, int y)
     Translate coordinates from one window into another.
public  StringtoString()
    
static  voidungrabInput()
    
 voidungrabInputImpl()
    
 voidupdateWMName()
    
public static  longxGetInputFocus()
    
public  voidxRequestFocus(long time)
    
public  voidxRequestFocus()
    
public  voidxSetBounds(Rectangle bounds)
    
public  voidxSetBounds(int x, int y, int width, int height)
    
public  voidxSetVisible(boolean visible)
    

Field Detail
DEF_LOCATION
final static int DEF_LOCATION(Code)



MIN_SIZE
final static int MIN_SIZE(Code)



PARENT_WINDOWBOUNDSOVERRIDE_REDIRECTEVENT_MASKVALUE_MASKBORDER_PIXELCOLORMAPDEPTHVISUAL_CLASSVISUALEMBEDDEDDELAYEDPARENTBACKGROUND_PIXMAPVISIBLESAVE_UNDERBACKING_STOREBIT_GRAVITY
final public static String PARENT_WINDOWBOUNDSOVERRIDE_REDIRECTEVENT_MASKVALUE_MASKBORDER_PIXELCOLORMAPDEPTHVISUAL_CLASSVISUALEMBEDDEDDELAYEDPARENTBACKGROUND_PIXMAPVISIBLESAVE_UNDERBACKING_STOREBIT_GRAVITY(Code)



children
Set<Long> children(Code)



embedded
boolean embedded(Code)



height
int height(Code)



mapped
boolean mapped(Code)



maxBounds
Rectangle maxBounds(Code)



parentWindow
volatile XBaseWindow parentWindow(Code)



state_lock
protected StateLock state_lock(Code)



visible
boolean visible(Code)



width
int width(Code)



window
long window(Code)



x
int x(Code)



y
int y(Code)




Constructor Detail
XBaseWindow
XBaseWindow()(Code)



XBaseWindow
XBaseWindow(long parentWindow, Rectangle bounds)(Code)
Creates normal child window



XBaseWindow
XBaseWindow(Rectangle bounds)(Code)
Creates top-level window



XBaseWindow
public XBaseWindow(XCreateWindowParams params)(Code)



XBaseWindow
XBaseWindow(long parentWindow)(Code)




Method Detail
awtLock
void awtLock()(Code)



awtLockNotifyAll
void awtLockNotifyAll()(Code)



awtLockWait
void awtLockWait() throws InterruptedException(Code)



awtUnlock
void awtUnlock()(Code)



checkInitialised
public boolean checkInitialised()(Code)



checkParams
protected void checkParams(XCreateWindowParams params)(Code)
Verifies that all required parameters are set. If not, sets them to default values. Verifies values of critical parameters, adjust their values when needed.
throws:
  IllegalArgumentException - if params is null



checkSecurity
static void checkSecurity()(Code)



contains
public boolean contains(int x, int y)(Code)
Returns whether the given point is inside of the window. Coordinates are local.



containsGlobal
public boolean containsGlobal(int x, int y)(Code)
Returns whether the given point is inside of the window. Coordinates are global.



destroy
void destroy()(Code)



dispatchEvent
public void dispatchEvent(XEvent xev)(Code)



dispatchToWindow
static void dispatchToWindow(XEvent ev)(Code)
Dispatches event to the grab Window or event source window depending on whether the grab is active and on the event type



flush
void flush()(Code)



getAbsoluteX
public int getAbsoluteX()(Code)



getAbsoluteY
public int getAbsoluteY()(Code)



getBounds
public Rectangle getBounds()(Code)



getChildren
public Set<Long> getChildren()(Code)



getContentWindow
public long getContentWindow()(Code)



getContentXWindow
public XBaseWindow getContentXWindow()(Code)



getDelayedParams
public XCreateWindowParams getDelayedParams()(Code)



getHeight
int getHeight()(Code)



getHints
public XSizeHints getHints()(Code)



getParentWindow
public XBaseWindow getParentWindow()(Code)



getScreen
long getScreen()(Code)



getScreenNumber
long getScreenNumber()(Code)



getScreenOfWindow
static long getScreenOfWindow(long window)(Code)



getSize
public Dimension getSize()(Code)



getStateLock
Object getStateLock()(Code)
This lock object can be used to protect instance data from concurrent access by two threads. If both state lock and AWT lock are taken, AWT Lock should be taken first.



getToplevelXWindow
public XWindowPeer getToplevelXWindow()(Code)



getWMHints
public XWMHints getWMHints()(Code)



getWMName
protected String getWMName()(Code)



getWidth
int getWidth()(Code)



getWindow
public long getWindow()(Code)



getX
int getX()(Code)



getXAWTRootWindow
static XRootWindow getXAWTRootWindow()(Code)



getY
int getY()(Code)



grabInput
public boolean grabInput()(Code)
We should always grab both keyboard and pointer to control event flow on popups. This also simplifies synthetic grab implementation. The active grab overrides activated automatic grab.



handleButtonPressRelease
public void handleButtonPressRelease(XEvent xev)(Code)
Activate automatic grab on first ButtonPress, deactivate on full mouse release



handleClientMessage
public void handleClientMessage(XEvent xev)(Code)



handleConfigureNotifyEvent
public void handleConfigureNotifyEvent(XEvent xev)(Code)



handleCreateNotify
public void handleCreateNotify(XEvent xev)(Code)



handleDestroyNotify
public void handleDestroyNotify(XEvent xev)(Code)



handleExposeEvent
public void handleExposeEvent(XEvent xev)(Code)



handleKeyPress
public void handleKeyPress(XEvent xev)(Code)



handleKeyRelease
public void handleKeyRelease(XEvent xev)(Code)



handleMapNotifyEvent
public void handleMapNotifyEvent(XEvent xev)(Code)



handleMotionNotify
public void handleMotionNotify(XEvent xev)(Code)



handlePropertyNotify
public void handlePropertyNotify(XEvent xev)(Code)



handleReparentNotifyEvent
public void handleReparentNotifyEvent(XEvent xev)(Code)



handleUnmapNotifyEvent
public void handleUnmapNotifyEvent(XEvent xev)(Code)



handleVisibilityEvent
public void handleVisibilityEvent(XEvent xev)(Code)



handleXCrossingEvent
public void handleXCrossingEvent(XEvent xev)(Code)



init
final protected void init(long parentWindow, Rectangle bounds)(Code)



init
final protected void init(XCreateWindowParams params)(Code)
Creates window using parameters params If params contain flag DELAYED doesn't do anything. Note: Descendants can call this method to create the window at the time different to instance construction.



initClientLeader
protected void initClientLeader()(Code)



instantPreInit
void instantPreInit(XCreateWindowParams params)(Code)
Called for delayed inits during construction



isDisposed
boolean isDisposed()(Code)



isEventDisabled
protected boolean isEventDisabled(XEvent e)(Code)



isFullRelease
static boolean isFullRelease(int buttonState, int button)(Code)
Checks ButtonRelease released all Mouse buttons



isGrabbedEvent
static boolean isGrabbedEvent(XEvent ev, XBaseWindow target)(Code)



isMapped
boolean isMapped()(Code)



isMinSizeSet
public boolean isMinSizeSet()(Code)



isVisible
boolean isVisible()(Code)



postInit
final protected void postInit()(Code)



postInit
void postInit(XCreateWindowParams params)(Code)
Called after window creation, descendants should override to initialize Window with class-specific values and perform post-initialization actions.



preInit
final protected void preInit()(Code)



preInit
void preInit(XCreateWindowParams params)(Code)
Called before window creation, descendants should override to initialize the data, initialize params.



setDisposed
void setDisposed(boolean d)(Code)



setSizeHints
public void setSizeHints(long flags, int x, int y, int width, int height)(Code)



setWMClass
void setWMClass(String[] cl)(Code)



setWMHints
final public void setWMHints(XWMHints hints)(Code)
Helper function to set W



toFront
public void toFront()(Code)



toGlobal
Rectangle toGlobal(Rectangle rec)(Code)



toGlobal
Point toGlobal(Point pt)(Code)



toGlobal
Point toGlobal(int x, int y)(Code)



toLocal
Point toLocal(Point pt)(Code)



toLocal
Point toLocal(int x, int y)(Code)



toOtherWindow
static Point toOtherWindow(long src, long dst, int x, int y)(Code)
Translate coordinates from one window into another. Optimized for XAWT - uses cached data when possible. Preferable over pure XTranslateCoordinates. coordinates relative to dst, or null if error happened



toString
public String toString()(Code)



ungrabInput
static void ungrabInput()(Code)



ungrabInputImpl
void ungrabInputImpl()(Code)



updateWMName
void updateWMName()(Code)



xGetInputFocus
public static long xGetInputFocus()(Code)



xRequestFocus
public void xRequestFocus(long time)(Code)



xRequestFocus
public void xRequestFocus()(Code)



xSetBounds
public void xSetBounds(Rectangle bounds)(Code)



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



xSetVisible
public void xSetVisible(boolean visible)(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.