Top Description Fields Constructors Methods
com.sun.star.lib.uno.helper

public Class ComponentBase

extends WeakBase
implements com.sun.star.lang.XComponent
Class Inheritance
Known Direct Subclasses
com.sun.star.lib.uno.helper.Factory, com.sun.star.lib.uno.adapter.XOutputStreamToByteArrayAdapter, com.sun.star.lib.uno.adapter.ByteArrayToXInputStreamAdapter, com.sun.star.lib.uno.helper.PropertySet
Imports
com.sun.star.lang.XComponent, com.sun.star.lang.XEventListener, com.sun.star.lang.EventObject, com.sun.star.uno.Type

This class can be used as the base class for UNO components. In addition to the functionality ,which is inherited from WeakBase, it implements com.sun.star.lang.XComponent.

Field Summary

Modifier and TypeField and Description
protected boolean
protected boolean
private static final boolean
pack-priv static final Type
protected MultiTypeInterfaceContainer
Inherited from com.sun.star.lib.uno.helper.WeakBase:
_mapTypes

Constructor Summary

AccessConstructor and Description
public
ComponentBase()

Creates a new instance of CompBase

Method Summary

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

public void
dispose()

Method of XComponent.

protected void
finalize()

Overrides com.sun.star.lib.uno.helper.WeakBase.finalize.

Override of Object.finalize.

protected void
postDisposing()

Override to become notified right before the disposing action is performed.

protected void
preDisposing()

Override to perform extra clean-up work.

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

Method of XComponent.

Inherited from com.sun.star.lib.uno.helper.WeakBase:
getImplementationIdgetTypesqueryAdapter

Field Detail

bDisposedback to summary
protected boolean bDisposed
bInDisposeback to summary
protected boolean bInDispose
DEBUGback to summary
private static final boolean DEBUG
EVT_LISTENER_TYPEback to summary
pack-priv static final Type EVT_LISTENER_TYPE
listenerContainerback to summary
protected MultiTypeInterfaceContainer listenerContainer

Constructor Detail

ComponentBaseback to summary
public ComponentBase()

Creates a new instance of CompBase

Method Detail

addEventListenerback to summary
public void addEventListener(com.sun.star.lang.XEventListener listener)
disposeback to summary
public void dispose()

Method of XComponent. It is called by the owning client when the component is not needed anymore. The registered listeners are notified that this method has been called.

finalizeback to summary
protected void finalize() throws Throwable

Overrides com.sun.star.lib.uno.helper.WeakBase.finalize.

Doc from com.sun.star.lib.uno.helper.WeakBase.finalize.

Override of Object.finalize. When there are no references to this object anymore then the garbage collector calls this method. Thereby causing the adapter object to be notified. The adapter, in turn, notifies all listeners (com.sun.star.uno.XReference)

Annotations
@Override
Exceptions
Throwable:

Doc from java.lang.Object.finalize.

the Exception raised by this method

postDisposingback to summary
protected void postDisposing()

Override to become notified right before the disposing action is performed.

preDisposingback to summary
protected void preDisposing()

Override to perform extra clean-up work. Provided for subclasses. It is called during dispose()

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

Method of XComponent.