Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15
OOoRunner test harness

util
Class SysUtils

java.lang.Object
  |
  +--util.SysUtils

public class SysUtils
extends Object


Constructor Summary
SysUtils()
           
 
Method Summary
static XComponent getActiveComponent(XMultiServiceFactory msf)
           
static XFrame getActiveFrame(XMultiServiceFactory msf)
           
static String getJavaPath()
           
static String getSysClipboardText(XMultiServiceFactory msf)
          Tries to obtain text data from cliboard if such one exists.
static Object[] traverse(String afileDirectory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SysUtils

public SysUtils()
Method Detail

getJavaPath

public static String getJavaPath()

traverse

public static Object[] traverse(String afileDirectory)

getActiveComponent

public static XComponent getActiveComponent(XMultiServiceFactory msf)

getActiveFrame

public static XFrame getActiveFrame(XMultiServiceFactory msf)

getSysClipboardText

public static String getSysClipboardText(XMultiServiceFactory msf)
                                  throws Exception
Tries to obtain text data from cliboard if such one exists. The method iterates through all 'text/plain' supported data flavors and returns the first non-null String value.
Parameters:
msf - MultiserviceFactory
Returns:
First found string clipboard contents or null if no text contents were found.
Throws:
Exception - if system clipboard is not accessible.

OOoRunner test harness

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.