com.sun.star.lib.uno.helper
Class ComponentBase
- XComponent, XTypeProvider, XWeak
public class ComponentBase
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.
void | addEventListener(XEventListener listener)
|
void | dispose() - Method of XComponent.
|
protected void | 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.
|
void | removeEventListener(XEventListener xEventListener) - Method of XComponent.
|
bDisposed
protected boolean bDisposed
bInDispose
protected boolean bInDispose
ComponentBase
public ComponentBase()
Creates a new instance of CompBase
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()
throws Throwable
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)
- finalize in interface WeakBase
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.