org.jopendocument.link
Class OOConnexion

java.lang.Object
  extended by org.jopendocument.link.OOConnexion

public abstract class OOConnexion
extends Object

Connexion avec une instance d'OO

Author:
Administrateur

Field Summary
protected static int PORT
           
 
Constructor Summary
OOConnexion()
           
 
Method Summary
abstract  void closeConnexion()
           
protected abstract  String convertToUrl(String path)
           
static OOConnexion create()
          Return a connection to the default OpenOffice installation.
static OOConnexion create(OOInstallation ooInstall)
           
abstract  boolean isClosed()
          Whether the bridge is closed.
 Component loadDocument(File f, boolean hidden)
          Load a document in OpenOffice.
protected abstract  Component loadDocumentFromURLAsync(String url, boolean hidden)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PORT

protected static final int PORT
See Also:
Constant Field Values
Constructor Detail

OOConnexion

public OOConnexion()
Method Detail

create

public static OOConnexion create()
                          throws IllegalStateException
Return a connection to the default OpenOffice installation.

Returns:
a connection to the default OpenOffice or null if none is found.
Throws:
IllegalStateException - if an error occurs while searching.

create

public static OOConnexion create(OOInstallation ooInstall)
                          throws IllegalStateException
Throws:
IllegalStateException

main

public static void main(String[] args)
                 throws IOException
Throws:
IOException

loadDocumentFromURLAsync

protected abstract Component loadDocumentFromURLAsync(String url,
                                                      boolean hidden)

loadDocument

public final Component loadDocument(File f,
                                    boolean hidden)
                             throws IOException
Load a document in OpenOffice.

Parameters:
f - the file to load.
hidden - true if no frame should be visible.
Returns:
the new component.
Throws:
IOException - if an error occurs.

convertToUrl

protected abstract String convertToUrl(String path)
                                throws MalformedURLException
Throws:
MalformedURLException

closeConnexion

public abstract void closeConnexion()

isClosed

public abstract boolean isClosed()
Whether the bridge is closed.

Returns:
true if closeConnexion() was called or OpenOffice is now longer running.


Copyright © 2010 jOpenDocument All Rights Reserved.