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.desktop
Interface IDesktopService

All Superinterfaces:
IDisposeable
All Known Implementing Classes:
DesktopService

public interface IDesktopService
extends IDisposeable

Desktop service of OpenOffice.org.


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.
 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 interface ag.ion.bion.officelayer.IDisposeable
dispose
 

Method Detail

terminate

void terminate()
               throws NOAException
Terminates the related OpenOffice.org process.

Throws:
NOAException - if the termination can not be done

addTerminateListener

void addTerminateListener(ITerminateListener terminateListener)
Adds new terminate listener.

Parameters:
terminateListener - new terminate listener

removeTerminateListener

void removeTerminateListener(ITerminateListener terminateListener)
Removes terminate listener.

Parameters:
terminateListener - terminate listener to be removed

addDocumentListener

void addDocumentListener(IDocumentListener documentListener)
                         throws DesktopException
Adds new document listener.

Parameters:
documentListener - new document listener
Throws:
DesktopException - if document listener can not be registered

removeDocumentListener

void removeDocumentListener(IDocumentListener documentListener)
Removes document listener.

Parameters:
documentListener - document listener to be removed

constructNewOfficeFrame

IFrame constructNewOfficeFrame(java.awt.Container container)
                               throws DesktopException
Constructs new OpenOffice.org frame which is integrated into the submitted AWT container. This method works only on local OpenOffice.org applications.

Parameters:
container - AWT container to be used
Returns:
new OpenOffice.org frame which is integrated into the submitted AWT container
Throws:
DesktopException - if the frame can not be constructed

constructNewOfficeFrame

IFrame constructNewOfficeFrame(NativeView nativeView)
                               throws DesktopException
Constructs new OpenOffice.org frame which uses the submitted native view. This method works only on local OpenOffice.org applications.

Parameters:
nativeView - native view to be used
Returns:
new OpenOffice.org frame which uses the submitted native view
Throws:
DesktopException - if the frame can not be constructed

getFramesCount

int getFramesCount()
Returns the current number of frames, or -1 if an error occured returning it.

Returns:
the current number of frames, or -1 if an error occured returning it

activateTerminationPrevention

void activateTerminationPrevention()
Activates the prevention of the termination.


deactivateTerminationPrevention

void deactivateTerminationPrevention()
Deactivates the prevention of the termination.


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