|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.star.comp.beans.LocalOfficeConnection
public class LocalOfficeConnection
This class reprecents a connection to the local office application.
Field Summary | |
---|---|
static java.lang.String |
OFFICE_APP_NAME
|
static java.lang.String |
OFFICE_ID_SUFFIX
|
static java.lang.String |
OFFICE_LIB_NAME
|
Constructor Summary | |
---|---|
LocalOfficeConnection()
Constructor. |
Method Summary | |
---|---|
void |
addEventListener(XEventListener listener)
Adds an event listener to the object. |
OfficeWindow |
createOfficeWindow(java.awt.Container container)
Creates an office window. |
void |
dispose()
Closes the connection. |
XComponentContext |
getComponentContext()
Retrives the UNO component context. |
void |
removeEventListener(XEventListener listener)
Removes an event listener from the listener list. |
void |
setContainerFactory(ContainerFactory containerFactory)
Sets an AWT container catory. |
void |
setUnoUrl(java.lang.String url)
Sets a connection URL. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String OFFICE_APP_NAME
public static final java.lang.String OFFICE_LIB_NAME
public static final java.lang.String OFFICE_ID_SUFFIX
Constructor Detail |
---|
public LocalOfficeConnection()
OFFICE_PROP_FILE
in the user home directory.
Method Detail |
---|
public void setUnoUrl(java.lang.String url) throws java.net.MalformedURLException
url := uno:localoffice[,<params>];urp;StarOffice.ServiceManager params := <path>[,<pipe>] path := path=<pathv> pipe := pipe=<pipev> pathv := platform_specific_path_to_the_local_office_distribution pipev := local_office_connection_pipe_name
url
- This is UNO URL which discribes the type of a connection.
java.net.MalformedURLException
public void setContainerFactory(ContainerFactory containerFactory)
containerFactory
- This is a application provided AWT container factory.public XComponentContext getComponentContext()
null
if it fails to connect to the office application.
public OfficeWindow createOfficeWindow(java.awt.Container container)
container
- This is an AWT container.
public void dispose()
public void addEventListener(XEventListener listener)
listener
- is a listener object.public void removeEventListener(XEventListener listener)
listener
- is a listener object.
|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |