Class ComponentContext

  • All Implemented Interfaces:
    com.sun.star.lang.XComponent, com.sun.star.uno.XComponentContext, com.sun.star.uno.XInterface

    public class ComponentContext
    extends java.lang.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

      Constructors 
      Constructor Description
      ComponentContext​(java.util.Hashtable<java.lang.String,​java.lang.Object> table, com.sun.star.uno.XComponentContext xDelegate)  
      ComponentContext​(java.util.Map<java.lang.String,​java.lang.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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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<java.lang.String,​java.lang.Object> table,
                                com.sun.star.uno.XComponentContext xDelegate)
      • ComponentContext

        public ComponentContext​(java.util.Map<java.lang.String,​java.lang.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 Detail

      • getValueByName

        public java.lang.Object getValueByName​(java.lang.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