org.freehep.application.services
Interface ServiceManager

All Known Implementing Classes:
AppServiceManager, JNLPServiceManager

public interface ServiceManager

This interface is implemented by all ServiceManagers. By using this interface instead of directly using JFileChooser, Printer etc, applications can make themselves JavaWebStart compatible, but still run as normal applications without needing the Java Web Start classes. By using a custom ServiceManager it is possible to provide a customized filechooser (for example) without making changes at many places within your program.

Version:
$Id: ServiceManager.java 8584 2006-08-10 23:06:37Z duns $
Author:
tonyj

Method Summary
 Transferable getClipboardContents()
           
 PageFormat getDefaultPage()
          Creates a new PageFormat instance and sets it to the default size and orientation.
 boolean isAvailable(String part)
           
 void loadUserPreferences(Properties props)
           
 boolean makeAvailable(String part)
           
 FileAccess openFileDialog(FileFilter[] filters, FileFilter defaultFilter, String key)
           
 boolean print(Pageable document)
          Prints a document using the given Pageable object
 boolean print(Printable painter)
          Prints a document using the given Printable object.
 FileAccess saveFileAsDialog(FileFilter[] filters, FileFilter defaultFilter, String key, InputStream in)
           
 void setClipboardContents(Transferable contents)
           
 PageFormat showPageFormatDialog(PageFormat page)
          Displays a dialog that allows modification of a PageFormat instance.
 void storeUserPreferences(Properties props)
           
 

Method Detail

getDefaultPage

PageFormat getDefaultPage()
Creates a new PageFormat instance and sets it to the default size and orientation.


print

boolean print(Pageable document)
Prints a document using the given Pageable object


print

boolean print(Printable painter)
Prints a document using the given Printable object.


showPageFormatDialog

PageFormat showPageFormatDialog(PageFormat page)
Displays a dialog that allows modification of a PageFormat instance.


loadUserPreferences

void loadUserPreferences(Properties props)

storeUserPreferences

void storeUserPreferences(Properties props)

openFileDialog

FileAccess openFileDialog(FileFilter[] filters,
                          FileFilter defaultFilter,
                          String key)

saveFileAsDialog

FileAccess saveFileAsDialog(FileFilter[] filters,
                            FileFilter defaultFilter,
                            String key,
                            InputStream in)

isAvailable

boolean isAvailable(String part)

makeAvailable

boolean makeAvailable(String part)

getClipboardContents

Transferable getClipboardContents()

setClipboardContents

void setClipboardContents(Transferable contents)


Copyright © 2000-2006 FreeHEP. All Rights Reserved.