APIdia Launch Partner
Top Fields Constructors Methods
sun.awt.X11

pack-priv final Class XAwtState

extends Object
Class Inheritance
Imports
java.awt.Component, java.lang.ref.WeakReference

Field Summary

Modifier and TypeField and Description
private static WeakReference<Component>
componentMouseEnteredRef

The mouse is over this component.

private static WeakReference<XBaseWindow>
private static boolean
inManualGrab

The XBaseWindow is created with OwnerGrabButtonMask (see X vol. 1, 8.3.3.2) so inside the app Key, Motion, and Button events are received by the window they actually happened on, not the grabber.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static Component
pack-priv static XBaseWindow
pack-priv static boolean
pack-priv static void
setAutoGrabWindow(XBaseWindow grabWindow)

Automatic passive grab doesn't override active grab see XGrabButton

pack-priv static void
pack-priv static void
setGrabWindow(XBaseWindow grabWindow)

The X Active Grab overrides any other active grab by the same client see XGrabPointer, XGrabKeyboard

private static void
setGrabWindow(XBaseWindow grabWindow, boolean isAutoGrab)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

componentMouseEnteredRefback to summary
private static WeakReference<Component> componentMouseEnteredRef

The mouse is over this component. If the component is not disabled, it received MOUSE_ENTERED but no MOUSE_EXITED.

grabWindowRefback to summary
private static WeakReference<XBaseWindow> grabWindowRef
inManualGrabback to summary
private static boolean inManualGrab

The XBaseWindow is created with OwnerGrabButtonMask (see X vol. 1, 8.3.3.2) so inside the app Key, Motion, and Button events are received by the window they actually happened on, not the grabber. Then XBaseWindow dispatches them to the grabber. As a result XAnyEvent.get_window() returns actual window the event is originated, though the event is dispatched by the grabber.

Constructor Detail

XAwtStateback to summary
pack-priv XAwtState()

Method Detail

getComponentMouseEnteredback to summary
pack-priv static Component getComponentMouseEntered()
getGrabWindowback to summary
pack-priv static XBaseWindow getGrabWindow()
isManualGrabback to summary
pack-priv static boolean isManualGrab()
setAutoGrabWindowback to summary
pack-priv static void setAutoGrabWindow(XBaseWindow grabWindow)

Automatic passive grab doesn't override active grab see XGrabButton

setComponentMouseEnteredback to summary
pack-priv static void setComponentMouseEntered(Component component)
setGrabWindowback to summary
pack-priv static void setGrabWindow(XBaseWindow grabWindow)

The X Active Grab overrides any other active grab by the same client see XGrabPointer, XGrabKeyboard

setGrabWindowback to summary
private static void setGrabWindow(XBaseWindow grabWindow, boolean isAutoGrab)