Package com.sun.star.comp.helper
Class ComponentContext
java.lang.Object
com.sun.star.comp.helper.ComponentContext
- All Implemented Interfaces:
com.sun.star.lang.XComponent
,com.sun.star.uno.XComponentContext
,com.sun.star.uno.XInterface
public class ComponentContext
extends Object
implements com.sun.star.uno.XComponentContext, com.sun.star.lang.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
ConstructorsConstructorDescriptionComponentContext
(Hashtable<String, Object> table, com.sun.star.uno.XComponentContext xDelegate) ComponentContext
(Map<String, Object> table, com.sun.star.uno.XComponentContext xDelegate) Ctor to create a component context passing a hashtable for values and a delegator reference. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addEventListener
(com.sun.star.lang.XEventListener xListener) void
dispose()
com.sun.star.lang.XMultiComponentFactory
getValueByName
(String rName) void
removeEventListener
(com.sun.star.lang.XEventListener xListener)
-
Constructor Details
-
ComponentContext
-
ComponentContext
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 Details
-
getValueByName
- Specified by:
getValueByName
in interfacecom.sun.star.uno.XComponentContext
-
getServiceManager
public com.sun.star.lang.XMultiComponentFactory getServiceManager()- Specified by:
getServiceManager
in interfacecom.sun.star.uno.XComponentContext
-
dispose
public void dispose()- Specified by:
dispose
in interfacecom.sun.star.lang.XComponent
-
addEventListener
public void addEventListener(com.sun.star.lang.XEventListener xListener) - Specified by:
addEventListener
in interfacecom.sun.star.lang.XComponent
-
removeEventListener
public void removeEventListener(com.sun.star.lang.XEventListener xListener) - Specified by:
removeEventListener
in interfacecom.sun.star.lang.XComponent
-