|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
public PageFormat getDefaultPage()
public boolean print(Pageable document)
public boolean print(Printable painter)
public PageFormat showPageFormatDialog(PageFormat page)
public void loadUserPreferences(Properties props)
public void storeUserPreferences(Properties props)
public FileAccess openFileDialog(FileFilter[] filters, FileFilter defaultFilter, String key)
public FileAccess saveFileAsDialog(FileFilter[] filters, FileFilter defaultFilter, String key, InputStream in)
public boolean isAvailable(String part)
public boolean makeAvailable(String part)
public Transferable getClipboardContents()
public void setClipboardContents(Transferable contents)
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |