com.sun.star.lib.uno.helper

Class ComponentBase

public class ComponentBase extends WeakBase implements XComponent

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
protected booleanbDisposed
protected booleanbInDispose
protected MultiTypeInterfaceContainerlistenerContainer
Constructor Summary
ComponentBase()
Creates a new instance of CompBase
Method Summary
voidaddEventListener(XEventListener listener)
voiddispose()
Method of XComponent.
protected voidfinalize()
protected voidpostDisposing()
Override to become notified right before the disposing action is performed.
protected voidpreDisposing()
Override to perform extra clean-up work.
voidremoveEventListener(XEventListener xEventListener)
Method of XComponent.

Field Detail

bDisposed

protected boolean bDisposed

bInDispose

protected boolean bInDispose

listenerContainer

protected MultiTypeInterfaceContainer listenerContainer

Constructor Detail

ComponentBase

public ComponentBase()
Creates a new instance of CompBase

Method Detail

addEventListener

public void addEventListener(XEventListener listener)

dispose

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.

finalize

protected void finalize()

postDisposing

protected void postDisposing()
Override to become notified right before the disposing action is performed.

preDisposing

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

removeEventListener

public void removeEventListener(XEventListener xEventListener)
Method of XComponent.