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

pack-priv Class Wrapper

extends Object
implements Proxy, IQueryInterface, com.sun.star.lang.XComponent
Class Inheritance
All Implemented Interfaces
com.sun.star.uno.IQueryInterface, com.sun.star.lib.uno.Proxy
Known Direct Subclasses
com.sun.star.comp.beans.Controller, com.sun.star.comp.beans.Frame, com.sun.star.comp.beans.OfficeDocument
Imports
com.sun.star.uno.UnoRuntime

Wrapper base class for UNO services which emulates the upcoming mode of automatic runtime Java classes to get rid of the need for queryInterface. Because it's not worth the effort to create a runtime generated wrapper for this purpose, as it might be for OOo 2.0, you still have to use UnoRuntime.queryInterface() for interfaces which are optional or come from a subclass. But for non optional interfaces you can already directly call their methods. This wrapper will only work for UNO objects via a bridge, not for direct Java objects.
Since
OOo 2.0.0

Field Summary

Modifier and TypeField and Description
private final com.sun.star.lang.XComponent
private final IQueryInterface

Constructor Summary

AccessConstructor and Description
public
Wrapper(com.sun.star.uno.XInterface xProxy)

Method Summary

Modifier and TypeMethod and Description
public void
addEventListener(com.sun.star.lang.XEventListener xListener)

public void
public String
getOid()

Implements com.sun.star.uno.IQueryInterface.getOid.

Returns the unique object identifier (OID) of the underlying UNO object.

public boolean
isSame(Object aObject)

Implements com.sun.star.uno.IQueryInterface.isSame.

Tests if the given reference represents a facet of the underlying UNO object.

public Object
queryInterface(Type aType)

Implements com.sun.star.uno.IQueryInterface.queryInterface.

Returns an object implementing the requested interface type.

public void
removeEventListener(com.sun.star.lang.XEventListener xListener)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

xComponentback to summary
private final com.sun.star.lang.XComponent xComponent
xQueryInterfaceback to summary
private final IQueryInterface xQueryInterface

Constructor Detail

Wrapperback to summary
public Wrapper(com.sun.star.uno.XInterface xProxy)

Method Detail

addEventListenerback to summary
public void addEventListener(com.sun.star.lang.XEventListener xListener)
disposeback to summary
public void dispose()
getOidback to summary
public String getOid()

Implements com.sun.star.uno.IQueryInterface.getOid.

Doc from com.sun.star.uno.IQueryInterface.getOid.

Returns the unique object identifier (OID) of the underlying UNO object.

isSameback to summary
public boolean isSame(Object aObject)

Implements com.sun.star.uno.IQueryInterface.isSame.

Doc from com.sun.star.uno.IQueryInterface.isSame.

Tests if the given reference represents a facet of the underlying UNO object.

queryInterfaceback to summary
public Object queryInterface(Type aType)

Implements com.sun.star.uno.IQueryInterface.queryInterface.

Doc from com.sun.star.uno.IQueryInterface.queryInterface.

Returns an object implementing the requested interface type.

removeEventListenerback to summary
public void removeEventListener(com.sun.star.lang.XEventListener xListener)