Top Description Fields Constructors Methods
com.sun.star.comp.beans

public Class LocalOfficeWindow

extends Canvas
implements OfficeWindow, com.sun.star.lang.XEventListener
Class Inheritance
All Implemented Interfaces
com.sun.star.comp.beans.OfficeWindow
Imports
java.awt.Component, com.sun.star.lang.EventObject, com.sun.star.lang.SystemDependent, com.sun.star.lang.XEventListener, com.sun.star.lang.XMultiServiceFactory, com.sun.star.lang.XMultiComponentFactory, com.sun.star.awt.Rectangle, com.sun.star.awt.XWindow, com.sun.star.awt.XWindowPeer, com.sun.star.awt.XVclWindowPeer, com.sun.star.awt.XToolkit, com.sun.star.awt.WindowDescriptor, com.sun.star.awt.WindowAttribute, com.sun.star.awt.WindowClass, com.sun.star.uno.UnoRuntime, .Any, .Type, com.sun.star.uno.XComponentContext, com.sun.star.beans.NamedValue

References Deprecated

OfficeWindow is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

This class represents a local office window.
Since
OOo 2.0.0

Field Summary

Modifier and TypeField and Description
private boolean
private transient OfficeConnection
mConnection

References Deprecated OfficeConnection is deprecated or references (maybe indirectly) at least one deprecated element.
private transient com.sun.star.awt.XWindowPeer
private transient com.sun.star.awt.XWindowPeer

Constructor Summary

AccessConstructor and Description
protected
LocalOfficeWindow(OfficeConnection
The office connection object the window belongs to.
connection
)
References Deprecated OfficeConnection is deprecated or references (maybe indirectly) at least one deprecated element.

Constructor.

Method Summary

Modifier and TypeMethod and Description
private synchronized void
aquireSystemWindow()

called when system parent is available, reparents the bean window

public synchronized void
disposing(com.sun.star.lang.EventObject
The event object.
source
)

Receives a notification about the connection has been closed.

public Component

Returns:

The AWT component object associated with the OfficeWindow.
getAWTComponent
()

Implements com.sun.star.comp.beans.OfficeWindow.getAWTComponent.

Retrieves an AWT component object associated with the OfficeWindow.

private native long

Returns:

The system window identifier.
getNativeWindow
()

Retrieves a platform dependent system window identifier.

private native int

Returns:

The system window type.
getNativeWindowSystemType
()

Retrieves a platform dependent system window type.

public synchronized com.sun.star.awt.XWindowPeer

Returns:

The UNO XWindowPeer object associated with the OfficeWindow.
getUNOWindowPeer
()

Implements com.sun.star.comp.beans.OfficeWindow.getUNOWindowPeer.

Retrieves a UNO XWindowPeer object associated with the OfficeWindow.

protected Any
getWrappedWindowHandle()

Returns an Any containing a sequences of com.sun.star.beans.NamedValue.

private com.sun.star.awt.XToolkit
queryAWTToolkit()

Returns an AWT toolkit.

private synchronized void
releaseSystemWindow()

called when system parent is about to die, reparents the bean window

public void
removeNotify()

Overrides java.awt.Component.removeNotify.

We make sure that the office window is notified that the parent will be removed.

public void
setVisible(boolean b)

Overrides java.awt.Component.setVisible.

Overriding java.awt.Component.setVisible() due to Java bug (no showing event).

Inherited from java.awt.Canvas:
addNotifycreateBufferStrategycreateBufferStrategygetAccessibleContextgetBufferStrategypaintupdate

Field Detail

bPeerback to summary
private boolean bPeer
mConnectionback to summary
private transient OfficeConnection mConnection

References Deprecated

OfficeConnection is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

mParentProxyback to summary
private transient com.sun.star.awt.XWindowPeer mParentProxy
mWindowback to summary
private transient com.sun.star.awt.XWindowPeer mWindow

Constructor Detail

LocalOfficeWindowback to summary
protected LocalOfficeWindow(OfficeConnection connection)

References Deprecated

OfficeConnection is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Constructor.

Parameters
connection:OfficeConnection

The office connection object the window belongs to.

Method Detail

aquireSystemWindowback to summary
private synchronized void aquireSystemWindow()

called when system parent is available, reparents the bean window

disposingback to summary
public synchronized void disposing(com.sun.star.lang.EventObject source)

Receives a notification about the connection has been closed. This method has to set the connection to null.

Parameters
source:com.sun.star.lang.EventObject

The event object.

getAWTComponentback to summary
public Component getAWTComponent()

Implements com.sun.star.comp.beans.OfficeWindow.getAWTComponent.

Retrieves an AWT component object associated with the OfficeWindow.

Returns:Component

The AWT component object associated with the OfficeWindow.

getNativeWindowback to summary
private native long getNativeWindow()

Retrieves a platform dependent system window identifier.

Returns:long

The system window identifier.

getNativeWindowSystemTypeback to summary
private native int getNativeWindowSystemType()

Retrieves a platform dependent system window type.

Returns:int

The system window type.

getUNOWindowPeerback to summary
public synchronized com.sun.star.awt.XWindowPeer getUNOWindowPeer()

Implements com.sun.star.comp.beans.OfficeWindow.getUNOWindowPeer.

Retrieves a UNO XWindowPeer object associated with the OfficeWindow.

Returns:com.sun.star.awt.XWindowPeer

The UNO XWindowPeer object associated with the OfficeWindow.

getWrappedWindowHandleback to summary
protected Any getWrappedWindowHandle()

Returns an Any containing a sequences of com.sun.star.beans.NamedValue. One NamedValue contains the name "WINDOW" and the value is a Long representing the window handle. The second NamedValue has the name "XEMBED" and the value is true, when the XEmbed protocol shall be used for embedding the native Window.

queryAWTToolkitback to summary
private com.sun.star.awt.XToolkit queryAWTToolkit() throws com.sun.star.uno.Exception

Returns an AWT toolkit.

releaseSystemWindowback to summary
private synchronized void releaseSystemWindow()

called when system parent is about to die, reparents the bean window

removeNotifyback to summary
public void removeNotify()

Overrides java.awt.Component.removeNotify.

We make sure that the office window is notified that the parent will be removed.

Annotations
@Override
setVisibleback to summary
public void setVisible(boolean b)

Overrides java.awt.Component.setVisible.

Overriding java.awt.Component.setVisible() due to Java bug (no showing event).

Annotations
@Override