Package com.sun.star.lib.uno.helper
Class ComponentBase
- java.lang.Object
-
- com.sun.star.lib.uno.helper.WeakBase
-
- com.sun.star.lib.uno.helper.ComponentBase
-
- All Implemented Interfaces:
XComponent,XTypeProvider,XInterface,XWeak
- Direct Known Subclasses:
Factory,PropertySet
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
Fields Modifier and Type Field Description protected booleanbDisposedprotected booleanbInDisposeprotected MultiTypeInterfaceContainerlistenerContainer-
Fields inherited from interface com.sun.star.lang.XComponent
UNOTYPEINFO
-
Fields inherited from interface com.sun.star.lang.XTypeProvider
UNOTYPEINFO
-
Fields inherited from interface com.sun.star.uno.XWeak
UNOTYPEINFO
-
-
Constructor Summary
Constructors Constructor Description ComponentBase()Creates a new instance of CompBase
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEventListener(XEventListener listener)voiddispose()Method of XComponent.protected voidfinalize()Override of Object.finalize.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.-
Methods inherited from class com.sun.star.lib.uno.helper.WeakBase
getImplementationId, getTypes, queryAdapter
-
-
-
-
Field Detail
-
listenerContainer
protected MultiTypeInterfaceContainer listenerContainer
-
bInDispose
protected boolean bInDispose
-
bDisposed
protected boolean bDisposed
-
-
Method Detail
-
preDisposing
protected void preDisposing()
Override to perform extra clean-up work. Provided for subclasses. It is called during dispose()
-
postDisposing
protected void postDisposing()
Override to become notified right before the disposing action is performed.
-
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.- Specified by:
disposein interfaceXComponent
-
removeEventListener
public void removeEventListener(XEventListener xEventListener)
Method of XComponent.- Specified by:
removeEventListenerin interfaceXComponent
-
addEventListener
public void addEventListener(XEventListener listener)
- Specified by:
addEventListenerin interfaceXComponent
-
finalize
protected void finalize() throws ThrowableDescription copied from class:WeakBaseOverride 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)
-
-