Language

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

com.sun.star.comp.helper
Class ComponentContext

java.lang.Object
  |
  +--com.sun.star.comp.helper.ComponentContext
All Implemented Interfaces:
com.sun.star.lang.XComponent, XComponentContext, XInterface

public class ComponentContext
extends java.lang.Object
implements XComponentContext, com.sun.star.lang.XComponent

Component context implementation.


Field Summary
 
Fields inherited from interface com.sun.star.uno.XComponentContext
UNOTYPEINFO
 
Fields inherited from interface com.sun.star.lang.XComponent
UNOTYPEINFO
 
Constructor Summary
ComponentContext(java.util.Hashtable table, XComponentContext xDelegate)
          Ctor to create a component context passing a hashtable for values and a delegator reference.
 
Method Summary
 void addEventListener(com.sun.star.lang.XEventListener xListener)
           
 void dispose()
           
 com.sun.star.lang.XMultiComponentFactory getServiceManager()
           
 java.lang.Object getValueByName(java.lang.String rName)
           
 void removeEventListener(com.sun.star.lang.XEventListener xListener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentContext

public ComponentContext(java.util.Hashtable table,
                        XComponentContext xDelegate)
Ctor to create a component context passing a hashtable for values and a delegator reference. Entries of the passed hashtable are either direct values or ComponentContextEntry objects.

Parameters:
table - entries
xDelegate - if values are not found, request is delegated to this object
Method Detail

getValueByName

public java.lang.Object getValueByName(java.lang.String rName)
Specified by:
getValueByName in interface XComponentContext

getServiceManager

public com.sun.star.lang.XMultiComponentFactory getServiceManager()
Specified by:
getServiceManager in interface XComponentContext

dispose

public void dispose()
Specified by:
dispose in interface com.sun.star.lang.XComponent

addEventListener

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

removeEventListener

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

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.