|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.freehep.application.services.app.AppServiceManager
public class AppServiceManager
A basic implementation of ServiceManager, for use in applications.
| Field Summary | |
|---|---|
protected Application |
app
|
| Constructor Summary | |
|---|---|
AppServiceManager()
|
|
| 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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Application app
| Constructor Detail |
|---|
public AppServiceManager()
| Method Detail |
|---|
public PageFormat getDefaultPage()
ServiceManager
getDefaultPage in interface ServiceManagerpublic PageFormat showPageFormatDialog(PageFormat page)
ServiceManager
showPageFormatDialog in interface ServiceManagerpublic boolean print(Printable painter)
ServiceManager
print in interface ServiceManagerpublic boolean print(Pageable document)
ServiceManager
print in interface ServiceManagerpublic void loadUserPreferences(Properties props)
loadUserPreferences in interface ServiceManagerpublic void storeUserPreferences(Properties props)
storeUserPreferences in interface ServiceManager
public FileAccess openFileDialog(FileFilter[] filters,
FileFilter defaultFilter,
String key)
openFileDialog in interface ServiceManager
public FileAccess saveFileAsDialog(FileFilter[] filters,
FileFilter defaultFilter,
String key,
InputStream in)
saveFileAsDialog in interface ServiceManagerpublic boolean isAvailable(String part)
isAvailable in interface ServiceManagerpublic boolean makeAvailable(String part)
makeAvailable in interface ServiceManagerpublic Transferable getClipboardContents()
getClipboardContents in interface ServiceManagerpublic void setClipboardContents(Transferable contents)
setClipboardContents in interface ServiceManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||