Top Description Fields Constructors Methods
com.sun.star.comp.helper

public Class ComponentContext

Additional top-level class in compilation unit: Disposer.

extends Object
implements com.sun.star.uno.XComponentContext, com.sun.star.lang.XComponent
Class Inheritance
Imports
com.sun.star.uno.UnoRuntime, .Any, com.sun.star.uno.DeploymentException, com.sun.star.uno.XComponentContext, com.sun.star.lang.XMultiComponentFactory, com.sun.star.lang.XSingleComponentFactory, com.sun.star.lang.XComponent, com.sun.star.lang.XEventListener, com.sun.star.lang.EventObject, java.util.ArrayList, .Hashtable, .Map

Component context implementation.

Field Summary

Modifier and TypeField and Description
private static final boolean
private boolean
private ArrayList<com.sun.star.lang.XEventListener>
private Map<String, Object>
private com.sun.star.uno.XComponentContext
private com.sun.star.lang.XMultiComponentFactory
private static final String
private static final String

Constructor Summary

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

public
ComponentContext(Map<String, Object>
entries
table
,
com.sun.star.uno.XComponentContext
if values are not found, request is delegated to this object
xDelegate
)

Ctor to create a component context passing a hashtable for values and a delegator reference.

Method Summary

Modifier and TypeMethod and Description
public void
addEventListener(com.sun.star.lang.XEventListener xListener)

public void
public com.sun.star.lang.XMultiComponentFactory
public Object
public void
removeEventListener(com.sun.star.lang.XEventListener xListener)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DEBUGback to summary
private static final boolean DEBUG
m_bDisposeSMgrback to summary
private boolean m_bDisposeSMgr
m_eventListenerback to summary
private ArrayList<com.sun.star.lang.XEventListener> m_eventListener
m_tableback to summary
private Map<String, Object> m_table
m_xDelegateback to summary
private com.sun.star.uno.XComponentContext m_xDelegate
m_xSMgrback to summary
private com.sun.star.lang.XMultiComponentFactory m_xSMgr
SMGR_NAMEback to summary
private static final String SMGR_NAME
TDMGR_NAMEback to summary
private static final String TDMGR_NAME

Constructor Detail

ComponentContextback to summary
public ComponentContext(Hashtable<String, Object> table, com.sun.star.uno.XComponentContext xDelegate)
ComponentContextback to summary
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:Map<String, Object>

entries

xDelegate:com.sun.star.uno.XComponentContext

if values are not found, request is delegated to this object

Method Detail

addEventListenerback to summary
public void addEventListener(com.sun.star.lang.XEventListener xListener)
disposeback to summary
public void dispose()
getServiceManagerback to summary
public com.sun.star.lang.XMultiComponentFactory getServiceManager()
getValueByNameback to summary
public Object getValueByName(String rName)
removeEventListenerback to summary
public void removeEventListener(com.sun.star.lang.XEventListener xListener)