net.sf.doolin.gui.service.support
Class JDK6DesktopService

java.lang.Object
  extended by net.sf.doolin.gui.service.support.JDK6DesktopService
All Implemented Interfaces:
DesktopService

public class JDK6DesktopService
extends Object
implements DesktopService

Implementation of the desktop service based on the JDK6 Desktop component.

Author:
Damien Coraboeuf

Constructor Summary
JDK6DesktopService()
           
 
Method Summary
 void browse(URL url)
          Browses the URL using the desktop browser
 void editFile(File file)
          Opens the file for edition.
 void mail(String mail)
          Opens the mail system of the user
 void openFile(File file)
          Opens the file using the desktop.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDK6DesktopService

public JDK6DesktopService()
Method Detail

openFile

public void openFile(File file)
Description copied from interface: DesktopService
Opens the file using the desktop.

Specified by:
openFile in interface DesktopService
Parameters:
file - File to open
See Also:
Desktop.open(File), DesktopService.openFile(java.io.File)

browse

public void browse(URL url)
Description copied from interface: DesktopService
Browses the URL using the desktop browser

Specified by:
browse in interface DesktopService
Parameters:
url - URL to browse
See Also:
Desktop.browse(java.net.URI), DesktopService.browse(java.net.URL)

editFile

public void editFile(File file)
Description copied from interface: DesktopService
Opens the file for edition.

Specified by:
editFile in interface DesktopService
Parameters:
file - File to edit
See Also:
Desktop.edit(File), DesktopService.editFile(java.io.File)

mail

public void mail(String mail)
Description copied from interface: DesktopService
Opens the mail system of the user

Specified by:
mail in interface DesktopService
Parameters:
mail - Mail address to write to
See Also:
Desktop.mail(), DesktopService.mail(java.lang.String)


Copyright © 2011. All Rights Reserved.