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.
  • Constructor Details

    • ComponentContext

      public ComponentContext(Hashtable<String,Object> table, com.sun.star.uno.XComponentContext xDelegate)
    • ComponentContext

      public 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. 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 Details

    • getValueByName

      public Object getValueByName(String rName)
      Specified by:
      getValueByName in interface com.sun.star.uno.XComponentContext
    • getServiceManager

      public com.sun.star.lang.XMultiComponentFactory getServiceManager()
      Specified by:
      getServiceManager in interface com.sun.star.uno.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