Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.osdependent
Class Desktop

java.lang.Object
  extended by net.java.sip.communicator.impl.osdependent.Desktop

public class Desktop
extends Object

The Desktop class handles desktop operations through the default desktop implementation. It choose which implementation to use depending on what is currently available (java 6 or Jdic).

Author:
Yana Stamcheva

Nested Class Summary
(package private) static interface Desktop.DesktopPeer
          The DesktopPeer interface provides abstraction for operating system related desktop operations like open(file), print(file), etc.
 
Method Summary
static Desktop getDefaultDesktop()
          Returns the default Desktop instance depending on the operating system and java version availability.
(package private)  Desktop.DesktopPeer getPeer()
          Returns the currently used peer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefaultDesktop

public static Desktop getDefaultDesktop()
                                 throws UnsupportedOperationException,
                                        HeadlessException,
                                        SecurityException
Returns the default Desktop instance depending on the operating system and java version availability.

Returns:
the default Desktop instance
Throws:
UnsupportedOperationException - if the operation is not supported
HeadlessException
SecurityException

getPeer

Desktop.DesktopPeer getPeer()
Returns the currently used peer.

Returns:
the currently used peer

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.