Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc for Elexis version 2.1.7.dev vom 17.03.2013

ag.ion.bion.officelayer.application.connection
Class AbstractOfficeConnection

java.lang.Object
  extended by ag.ion.bion.officelayer.application.connection.AbstractOfficeConnection
All Implemented Interfaces:
IOfficeConnection
Direct Known Subclasses:
LocalOfficeConnection, RemoteOfficeConnection

public abstract class AbstractOfficeConnection
extends java.lang.Object
implements IOfficeConnection

Abstract connection in order to communicate with an OpenOffice.org application.


Field Summary
protected  com.sun.star.bridge.XBridge xBridge
           
 
Constructor Summary
AbstractOfficeConnection()
           
 
Method Summary
 void addBridgeEventListener(IEventListener eventListener)
          Adds new listener for the internal XBridge of OpenOffice.org.
 java.lang.Object createService(java.lang.String serviceName)
          Constructs service with the XMultiServiceFactory.
 java.lang.Object createServiceWithContext(java.lang.String serviceName)
          Constructs service with the XMultiComponentFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ag.ion.bion.officelayer.application.connection.IOfficeConnection
closeConnection, getHost, getPort, getXComponentContext, getXMultiComponentFactory, getXMultiServiceFactory, isConnected, openConnection, openConnection
 

Field Detail

xBridge

protected com.sun.star.bridge.XBridge xBridge
Constructor Detail

AbstractOfficeConnection

public AbstractOfficeConnection()
Method Detail

createService

public java.lang.Object createService(java.lang.String serviceName)
                               throws java.lang.Exception
Constructs service with the XMultiServiceFactory.

Specified by:
createService in interface IOfficeConnection
Parameters:
serviceName - name of the service
Returns:
service object
Throws:
java.lang.Exception - if any error occurs

createServiceWithContext

public java.lang.Object createServiceWithContext(java.lang.String serviceName)
                                          throws java.lang.Exception
Constructs service with the XMultiComponentFactory.

Specified by:
createServiceWithContext in interface IOfficeConnection
Parameters:
serviceName - name of the service
Returns:
service object
Throws:
java.lang.Exception - if any error occurs

addBridgeEventListener

public void addBridgeEventListener(IEventListener eventListener)
Adds new listener for the internal XBridge of OpenOffice.org.

Specified by:
addBridgeEventListener in interface IOfficeConnection
Parameters:
eventListener - new event listener

Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc for Elexis version 2.1.7.dev vom 17.03.2013