Language:

The Free and Open Productivity Suite
Apache OpenOffice 4.1.4 released

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous


UDK 3.2.7 Java API Reference

com.sun.star.comp.helper
Class ComponentContext

java.lang.Object
  extended by com.sun.star.comp.helper.ComponentContext
All Implemented Interfaces:
XComponent, XComponentContext, XInterface

public class ComponentContext
extends Object
implements XComponentContext, 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(Hashtable table, XComponentContext xDelegate)
          Ctor to create a component context passing a hashtable for values and a delegator reference.
 
Method Summary
 void addEventListener(XEventListener xListener)
           
 void dispose()
           
 XMultiComponentFactory getServiceManager()
           
 Object getValueByName(String rName)
           
 void removeEventListener(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(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 Object getValueByName(String rName)
Specified by:
getValueByName in interface XComponentContext

getServiceManager

public XMultiComponentFactory getServiceManager()
Specified by:
getServiceManager in interface XComponentContext

dispose

public void dispose()
Specified by:
dispose in interface XComponent

addEventListener

public void addEventListener(XEventListener xListener)
Specified by:
addEventListener in interface XComponent

removeEventListener

public void removeEventListener(XEventListener xListener)
Specified by:
removeEventListener in interface XComponent

UDK 3.2.7 Java API Reference

Apache Software Foundation

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

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