Language
The Free and Open Productivity Suite
util
Class DesktopTools
java.lang.Object
|
+--util.DesktopTools
- public class DesktopTools
- extends Object
contains helper methods for the Desktop
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DesktopTools
public DesktopTools()
getCLoader
public static XComponentLoader getCLoader(XMultiServiceFactory xMSF)
- Queries the XComponentLoader
- Parameters:
xMSF
- the MultiServiceFactory- Returns:
- the gained XComponentLoader
createDesktop
public static Object createDesktop(XMultiServiceFactory xMSF)
- Creates an Instance of the Desktop service
- Parameters:
xMSF
- the MultiServiceFactory- Returns:
- the gained Object
openNewDoc
public static XComponent openNewDoc(XMultiServiceFactory xMSF,
String kind,
PropertyValue[] Args)
- Opens a new document of a given kind
with arguments
- Parameters:
xMSF
- the MultiServiceFactory- Returns:
- the XComponent Interface of the document
loadDoc
public static XComponent loadDoc(XMultiServiceFactory xMSF,
String url,
PropertyValue[] Args)
- loads a document of from a given url
with arguments
- Parameters:
xMSF
- the MultiServiceFactory- Returns:
- the XComponent Interface of the document
closeDoc
public static void closeDoc(XInterface DocumentToClose)
- closes a given document
- Parameters:
DocumentToClose
-