|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc for Elexis version 2.1.7.dev vom 17.03.2013 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectag.ion.bion.officelayer.internal.desktop.DesktopService
public class DesktopService
Desktop service of OpenOffice.org.
| Constructor Summary | |
|---|---|
DesktopService(com.sun.star.frame.XDesktop xDesktop,
IOfficeConnection officeConnection)
Constructs new DesktopService. |
|
DesktopService(com.sun.star.frame.XDesktop xDesktop,
IOfficeConnection officeConnection,
boolean preventTermination)
Constructs new DesktopService. |
|
| Method Summary | |
|---|---|
void |
activateTerminationPrevention()
Activates the prevention of the termination. |
void |
addDocumentListener(IDocumentListener documentListener)
Adds new document listener. |
void |
addTerminateListener(ITerminateListener terminateListener)
Adds new terminate listener. |
IFrame |
constructNewOfficeFrame(java.awt.Container container)
Constructs new OpenOffice.org frame which is integrated into the submitted AWT container. |
IFrame |
constructNewOfficeFrame(NativeView nativeView)
Constructs new OpenOffice.org frame which uses the submitted native view. |
void |
deactivateTerminationPrevention()
Deactivates the prevention of the termination. |
void |
dispose()
Disposes all allocated resources. |
int |
getFramesCount()
Returns the current number of frames, or -1 if an error occured returning it. |
void |
removeDocumentListener(IDocumentListener documentListener)
Removes document listener. |
void |
removeTerminateListener(ITerminateListener terminateListener)
Removes terminate listener. |
void |
terminate()
Terminates the related OpenOffice.org process. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DesktopService(com.sun.star.frame.XDesktop xDesktop,
IOfficeConnection officeConnection)
throws java.lang.IllegalArgumentException
xDesktop - OpenOffice.org XDesktop interface to be usedofficeConnection - connection to OpenOffice.org to be used
java.lang.IllegalArgumentException - if the submitted OpenOffice.org XDesktop interface or the connection to OpenOffice.org
is not valid
public DesktopService(com.sun.star.frame.XDesktop xDesktop,
IOfficeConnection officeConnection,
boolean preventTermination)
throws java.lang.IllegalArgumentException
xDesktop - OpenOffice.org XDesktop interface to be usedofficeConnection - connection to OpenOffice.org to be usedpreventTermination - indicates if the termination should be prevented
java.lang.IllegalArgumentException - if the submitted OpenOffice.org XDesktop interface or the connection to OpenOffice.org
is not valid| Method Detail |
|---|
public void terminate()
throws NOAException
terminate in interface IDesktopServiceNOAException - if the termination can not be donepublic void activateTerminationPrevention()
activateTerminationPrevention in interface IDesktopServicepublic void deactivateTerminationPrevention()
deactivateTerminationPrevention in interface IDesktopServicepublic void addTerminateListener(ITerminateListener terminateListener)
addTerminateListener in interface IDesktopServiceterminateListener - new terminate listenerpublic void removeTerminateListener(ITerminateListener terminateListener)
removeTerminateListener in interface IDesktopServiceterminateListener - terminate listener to be removed
public void addDocumentListener(IDocumentListener documentListener)
throws DesktopException
addDocumentListener in interface IDesktopServicedocumentListener - new document listener
DesktopException - if document listener can not be registeredpublic void removeDocumentListener(IDocumentListener documentListener)
removeDocumentListener in interface IDesktopServicedocumentListener - document listener to be removed
public IFrame constructNewOfficeFrame(java.awt.Container container)
throws DesktopException
constructNewOfficeFrame in interface IDesktopServicecontainer - AWT container to be used
DesktopException - if the frame can not be constructed
public IFrame constructNewOfficeFrame(NativeView nativeView)
throws DesktopException
constructNewOfficeFrame in interface IDesktopServicenativeView - native view to be used
DesktopException - if the frame can not be constructedpublic void dispose()
dispose in interface IDisposeablepublic int getFramesCount()
getFramesCount in interface IDesktopService
|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc for Elexis version 2.1.7.dev vom 17.03.2013 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||