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

pack-priv Class XWindowPeer

extends XPanelPeer
implements WindowPeer, DisplayChangedListener
Class Inheritance
All Implemented Interfaces
sun.awt.DisplayChangedListener, java.util.EventListener, java.awt.peer.WindowPeer, java.awt.peer.ContainerPeer, java.awt.peer.ComponentPeer
Known Direct Subclasses
sun.awt.X11.XDecoratedPeer
Imports
java.awt.AWTEvent, .Component, .Dialog, .Dimension, .EventQueue, .Frame, .Graphics, .GraphicsConfiguration, .GraphicsDevice, .GraphicsEnvironment, .Image, .Insets, .Point, .Rectangle, .Shape, .SystemColor, .Window, java.awt.event.ComponentEvent, .FocusEvent, .WindowEvent, java.awt.peer.ComponentPeer, .WindowPeer, java.util.ArrayList, .HashSet, .Set, .Vector, java.util.concurrent.atomic.AtomicBoolean, sun.awt.AWTAccessor, .AWTAccessor.ComponentAccessor, .DisplayChangedListener, .IconInfo, .SunToolkit, .X11GraphicsDevice, .X11GraphicsEnvironment, sun.java2d.pipe.Region, sun.util.logging.PlatformLogger

Field Summary

Modifier and TypeField and Description
private boolean
private boolean
private XBaseWindow
private static ArrayList<IconInfo>
pack-priv boolean
private int
private static final PlatformLogger
private boolean
private static final PlatformLogger
private static final PlatformLogger
private static final PlatformLogger
private boolean
private boolean
private static final AtomicBoolean
private boolean
private boolean
private static final PlatformLogger
private static final int
pack-priv Dialog
private boolean
pack-priv XAtomList
protected XWindowPeer
private XWindowPeer
private static final int
private XBaseWindow
protected XWindowPeer
private XEventDispatcher
pack-priv Dimension
protected Vector<ToplevelStateListener>
private static Set<XWindowPeer>
private Window.Type
windowType

The type of the window.

pack-priv XAtom
Inherited from sun.awt.X11.XPanelPeer:
embedder

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
pack-priv void
public void
private void
private void
addToTransientFors(XDialogPeer blockerPeer, Vector<XWindowPeer> javaToplevels)

private void
applyWindowType()

Applies the current window type.

public void
pack-priv static Vector<XWindowPeer>
public void
displayChanged()

Implements sun.awt.DisplayChangedListener.displayChanged.

From the DisplayChangedListener interface; called from X11GraphicsDevice when the display mode has been changed.

public void
dispose()

Overrides sun.awt.X11.XPanelPeer.dispose.

Implements java.awt.peer.ComponentPeer.dispose.

Disposes all resources held by the component peer.

pack-priv static void
private void
executeDisplayChangedOnEDT(final GraphicsConfiguration gc)

Helper method that executes the displayChanged(screen) method on the event dispatch thread.

public final boolean
pack-priv static Window
protected static synchronized List<IconInfo>
pack-priv long
pack-priv List<IconInfo>
public Insets
getInsets()

Overrides sun.awt.X11.XPanelPeer.getInsets.

Implements java.awt.peer.ContainerPeer.getInsets.

Returns the insets of this container.

private static native int
private static native String
pack-priv int
public PropMwmHints
pack-priv static Window
pack-priv static XWindowPeer
public XAtomList
protected Point
getNewLocation(XConfigureEvent xe, int leftInset, int topInset)

public XWindowPeer
public Dimension
private long
getToplevelWindow(long w)

Get XID of closest to root window in a given window hierarchy.

public final Window.Type
protected String
public void
handleButtonPressRelease(XEvent xev)

Overrides sun.awt.X11.XWindow.handleButtonPressRelease.

Activate automatic grab on first ButtonPress, deactivate on full mouse release

public void
public void
public void
public void
public void
public void
pack-priv void
public void
handleStateChange(int oldState, int newState)

public void
public void
public void
handleWindowFocusIn(long serial)

public void
public void
public void
handleWindowFocusOut(Window oppositeWindow, long serial)

public void
handleWindowFocusOutSync(Window oppositeWindow, long serial)

public void
pack-priv boolean
hasDecorations(int decor)

pack-priv boolean
private static boolean
isDesktopWindow(long wi)

pack-priv boolean
pack-priv boolean
public boolean
pack-priv boolean
pack-priv boolean
pack-priv boolean
isNativelyNonFocusableWindow()

Returns whether or not this window peer has native X window configured as non-focusable window.

pack-priv final boolean
pack-priv boolean
pack-priv boolean
pack-priv final boolean
pack-priv boolean
protected boolean
private void
pack-priv static List<IconInfo>
public void
paletteChanged()

Implements sun.awt.DisplayChangedListener.paletteChanged.

From the DisplayChangedListener interface; top-levels do not need to react to this event.

pack-priv void
postInit(XCreateWindowParams params)

Overrides sun.awt.X11.XPanelPeer.postInit.

Called after window creation, descendants should override to initialize Window with class-specific values and perform post-initialization actions.

pack-priv void
preInit(XCreateWindowParams params)

Overrides sun.awt.X11.XCanvasPeer.preInit.

Called before window creation, descendants should override to initialize the data, initialize params.

private void
private Point
public void
public void
private void
pack-priv void
private void
public void
private static void
protected void
public boolean
requestWindowFocus(XWindowPeer actualFocusedWindow)

public boolean
public boolean
requestWindowFocus(long time, boolean timeProvided)

pack-priv final void
requestXFocus(long time)

pack-priv final void
protected void
requestXFocus(long time, boolean timeProvided)

Requests focus to this top-level.

pack-priv static void
pack-priv void
setActualFocusedWindow(XWindowPeer actualFocusedWindow)

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

Overrides sun.awt.X11.XComponentPeer.setBounds.

Implements java.awt.peer.ComponentPeer.setBounds.

Sets the location or size or both of the component.

public void
public void
setGrab(boolean grab)

pack-priv void
public void
setModalBlocked(Dialog d, boolean blocked)

Implements java.awt.peer.WindowPeer.setModalBlocked.

Sets if this window is blocked by a modal dialog or not.

public void
setModalBlocked(Dialog d, boolean blocked, Vector<XWindowPeer> javaToplevels)

protected void
public void
public void
public void
setOpacity(float opacity)

Implements java.awt.peer.WindowPeer.setOpacity.

Sets the level of opacity for the window.

public void
setOpaque(boolean isOpaque)

Implements java.awt.peer.WindowPeer.setOpaque.

Enables the per-pixel alpha support for the window.

pack-priv void
pack-priv void
setSaveUnder(boolean state)

pack-priv static void
setToplevelTransientFor(XWindowPeer window, XWindowPeer transientForWindow, boolean updateChain, boolean allStates)

public void
setVisible(boolean vis)

Overrides sun.awt.X11.XComponentPeer.setVisible.

Implements java.awt.peer.ComponentPeer.setVisible.

Makes a component visible or invisible.

private boolean
protected void
stateChanged(long time, int oldState, int newState)

Overrides sun.awt.X11.XWindow.stateChanged.

Override this methods to get notifications when top-level window state changes.

protected void
suppressWmTakeFocus(boolean doSuppress)

public void
toBack()

Implements java.awt.peer.WindowPeer.toBack.

Makes this window the bottommost window on the desktop.

public void
toFront()

Overrides sun.awt.X11.XBaseWindow.toFront.

Implements java.awt.peer.WindowPeer.toFront.

Makes this window the topmost window on the desktop.

private void
public void
updateAlwaysOnTopState()

Implements java.awt.peer.WindowPeer.updateAlwaysOnTopState.

Updates the window's always-on-top state.

pack-priv void
protected void
pack-priv void
public void
updateFocusableWindowState()

Implements java.awt.peer.WindowPeer.updateFocusableWindowState.

Updates the window's focusable state.

public void
updateIconImages()

Implements java.awt.peer.WindowPeer.updateIconImages.

Updates the icons for the window.

public void
updateMinimumSize()

Implements java.awt.peer.WindowPeer.updateMinimumSize.

Updates the minimum size on the peer.

private void
private void
pack-priv void
public void
updateWindow()

Implements java.awt.peer.WindowPeer.updateWindow.

Updates the native part of non-opaque window.

public void
Inherited from sun.awt.X11.XPanelPeer:
paintsetBackgroundsetForegroundshouldFocusOnClickxembed