Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15
UNO Java Runtime

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:
com.sun.star.lang.XComponent, XInterface, com.sun.star.lang.XTypeProvider, XWeak
Direct Known Subclasses:
PropertySet

public class ComponentBase
extends WeakBase
implements com.sun.star.lang.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  boolean bDisposed
           
protected  boolean bInDispose
           
protected  MultiTypeInterfaceContainer listenerContainer
           
 
Fields inherited from class com.sun.star.lib.uno.helper.WeakBase
_mapImplementationIds, _mapTypes
 
Fields inherited from interface com.sun.star.lang.XComponent
UNOTYPEINFO
 
Fields inherited from interface com.sun.star.uno.XWeak
UNOTYPEINFO
 
Fields inherited from interface com.sun.star.lang.XTypeProvider
UNOTYPEINFO
 
Constructor Summary
ComponentBase()
          Creates a new instance of CompBase
 
Method Summary
 void addEventListener(com.sun.star.lang.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(com.sun.star.lang.XEventListener xEventListener)
          Method of XComponent.
 
Methods inherited from class com.sun.star.lib.uno.helper.WeakBase
getImplementationId, getTypes, queryAdapter
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listenerContainer

protected MultiTypeInterfaceContainer listenerContainer

bInDispose

protected boolean bInDispose

bDisposed

protected boolean bDisposed
Constructor Detail

ComponentBase

public ComponentBase()
Creates a new instance of CompBase

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:
dispose in interface com.sun.star.lang.XComponent

removeEventListener

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

Specified by:
removeEventListener in interface com.sun.star.lang.XComponent

addEventListener

public void addEventListener(com.sun.star.lang.XEventListener listener)
Specified by:
addEventListener in interface com.sun.star.lang.XComponent

finalize

protected void finalize()
                 throws java.lang.Throwable
Description copied from class: WeakBase
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)

Overrides:
finalize in class WeakBase
java.lang.Throwable

UNO Java Runtime

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.