class OfficeConnection extends Object implements OfficeContext
| 限定符和类型 | 字段和说明 |
|---|---|
private com.sun.star.lang.XComponent |
bridgeComponent |
private static AtomicInteger |
bridgeIndex |
private com.sun.star.lang.XEventListener |
bridgeListener |
private com.sun.star.uno.XComponentContext |
componentContext |
private boolean |
connected |
private List<OfficeConnectionEventListener> |
connectionEventListeners |
private Logger |
logger |
private com.sun.star.lang.XMultiComponentFactory |
serviceManager |
private UnoUrl |
unoUrl |
| 构造器和说明 |
|---|
OfficeConnection(UnoUrl unoUrl) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addConnectionEventListener(OfficeConnectionEventListener connectionEventListener) |
void |
connect() |
void |
disconnect() |
Object |
getService(String serviceName) |
boolean |
isConnected() |
private static AtomicInteger bridgeIndex
private final UnoUrl unoUrl
private com.sun.star.lang.XComponent bridgeComponent
private com.sun.star.lang.XMultiComponentFactory serviceManager
private com.sun.star.uno.XComponentContext componentContext
private final List<OfficeConnectionEventListener> connectionEventListeners
private volatile boolean connected
private com.sun.star.lang.XEventListener bridgeListener
private final Logger logger
public OfficeConnection(UnoUrl unoUrl)
public void addConnectionEventListener(OfficeConnectionEventListener connectionEventListener)
public void connect()
throws ConnectException
ConnectExceptionpublic boolean isConnected()
public void disconnect()
public Object getService(String serviceName)
getService 在接口中 OfficeContextCopyright © 2019. All rights reserved.