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