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
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 SummaryFieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected MultiTypeInterfaceContainerFields inherited from interface com.sun.star.lang.XComponentUNOTYPEINFOFields inherited from interface com.sun.star.lang.XTypeProviderUNOTYPEINFOFields inherited from interface com.sun.star.uno.XWeakUNOTYPEINFO
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddEventListener(XEventListener listener) voiddispose()Method of XComponent.protected voidfinalize()Override of Object.finalize.protected voidOverride to become notified right before the disposing action is performed.protected voidOverride to perform extra clean-up work.voidremoveEventListener(XEventListener xEventListener) Method of XComponent.Methods inherited from class com.sun.star.lib.uno.helper.WeakBasegetImplementationId, getTypes, queryAdapter
- 
Field Details- 
listenerContainer
- 
bInDisposeprotected boolean bInDispose
- 
bDisposedprotected boolean bDisposed
 
- 
- 
Constructor Details- 
ComponentBasepublic ComponentBase()Creates a new instance of CompBase
 
- 
- 
Method Details- 
preDisposingprotected void preDisposing()Override to perform extra clean-up work. Provided for subclasses. It is called during dispose()
- 
postDisposingprotected void postDisposing()Override to become notified right before the disposing action is performed.
- 
disposepublic 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 interface- XComponent
 
- 
removeEventListenerMethod of XComponent.- Specified by:
- removeEventListenerin interface- XComponent
 
- 
addEventListener- Specified by:
- addEventListenerin interface- XComponent
 
- 
finalizeDescription 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)
 
-