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

public Interface OfficeConnection

extends com.sun.star.lang.XComponent
Known Direct Implementers
com.sun.star.comp.beans.LocalOfficeConnection
Annotations
@Deprecated
Imports
java.awt.Container, com.sun.star.lang.XComponent, com.sun.star.uno.XComponentContext

Deprecated

This abstract class represents a connection to the office application.

Method Summary

Modifier and TypeMethod and Description
public OfficeWindow

Returns:

The office window instance.
createOfficeWindow
(Container
This is an AWT container.
container
)
References Deprecated OfficeWindow is deprecated or references (maybe indirectly) at least one deprecated element.

Creates an office java.awt.Canvas based window.

public com.sun.star.uno.XComponentContext

Returns:

The office UNO component context.
getComponentContext
()

Retrieves the UNO component context.

public void
setContainerFactory(ContainerFactory
This is an application provided AWT container factory.
containerFactory
)
References Deprecated ContainerFactory is deprecated or references (maybe indirectly) at least one deprecated element.

Sets an AWT container factory.

public void
setUnoUrl(String
This is UNO URL which describes the type of a connection.
url
)

Sets a connection URL.

Method Detail

createOfficeWindowback to summary
public OfficeWindow createOfficeWindow(Container container)

References Deprecated

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

See corresponding docs for further information.

Creates an office java.awt.Canvas based window. This method does not add the office window to its container.

Parameters
container:Container

This is an AWT container.

Returns:OfficeWindow

The office window instance.

getComponentContextback to summary
public com.sun.star.uno.XComponentContext getComponentContext()

Retrieves the UNO component context. Establishes a connection if necessary and initialises the UNO service manager if it has not already been initialised.

Returns:com.sun.star.uno.XComponentContext

The office UNO component context.

setContainerFactoryback to summary
public void setContainerFactory(ContainerFactory containerFactory)

References Deprecated

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

See corresponding docs for further information.

Sets an AWT container factory.

Parameters
containerFactory:ContainerFactory

This is an application provided AWT container factory.

setUnoUrlback to summary
public void setUnoUrl(String url) throws MalformedURLException

Sets a connection URL.

Parameters
url:String

This is UNO URL which describes the type of a connection.