Package com.sun.star.comp.helper
Class ComponentContext
- java.lang.Object
-
- 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.lang.XComponent
UNOTYPEINFO
-
Fields inherited from interface com.sun.star.uno.XComponentContext
UNOTYPEINFO
-
-
Constructor Summary
Constructors Constructor Description ComponentContext(Hashtable<String,Object> table, XComponentContext xDelegate)ComponentContext(Map<String,Object> table, XComponentContext xDelegate)Ctor to create a component context passing a hashtable for values and a delegator reference.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEventListener(XEventListener xListener)voiddispose()XMultiComponentFactorygetServiceManager()ObjectgetValueByName(String rName)voidremoveEventListener(XEventListener xListener)
-
-
-
Constructor Detail
-
ComponentContext
public ComponentContext(Hashtable<String,Object> table, XComponentContext xDelegate)
-
ComponentContext
public ComponentContext(Map<String,Object> 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- entriesxDelegate- if values are not found, request is delegated to this object
-
-
Method Detail
-
getValueByName
public Object getValueByName(String rName)
- Specified by:
getValueByNamein interfaceXComponentContext
-
getServiceManager
public XMultiComponentFactory getServiceManager()
- Specified by:
getServiceManagerin interfaceXComponentContext
-
dispose
public void dispose()
- Specified by:
disposein interfaceXComponent
-
addEventListener
public void addEventListener(XEventListener xListener)
- Specified by:
addEventListenerin interfaceXComponent
-
removeEventListener
public void removeEventListener(XEventListener xListener)
- Specified by:
removeEventListenerin interfaceXComponent
-
-