|
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 validpublic 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 validMethod Detail |
---|
public void terminate() throws NOAException
terminate
in interface IDesktopService
NOAException
- if the termination can not be donepublic void activateTerminationPrevention()
activateTerminationPrevention
in interface IDesktopService
public void deactivateTerminationPrevention()
deactivateTerminationPrevention
in interface IDesktopService
public void addTerminateListener(ITerminateListener terminateListener)
addTerminateListener
in interface IDesktopService
terminateListener
- new terminate listenerpublic void removeTerminateListener(ITerminateListener terminateListener)
removeTerminateListener
in interface IDesktopService
terminateListener
- terminate listener to be removedpublic void addDocumentListener(IDocumentListener documentListener) throws DesktopException
addDocumentListener
in interface IDesktopService
documentListener
- new document listener
DesktopException
- if document listener can not be registeredpublic void removeDocumentListener(IDocumentListener documentListener)
removeDocumentListener
in interface IDesktopService
documentListener
- document listener to be removedpublic IFrame constructNewOfficeFrame(java.awt.Container container) throws DesktopException
constructNewOfficeFrame
in interface IDesktopService
container
- AWT container to be used
DesktopException
- if the frame can not be constructedpublic IFrame constructNewOfficeFrame(NativeView nativeView) throws DesktopException
constructNewOfficeFrame
in interface IDesktopService
nativeView
- native view to be used
DesktopException
- if the frame can not be constructedpublic void dispose()
dispose
in interface IDisposeable
public 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 |