|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.freehep.application.services.app.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 ServiceManager
public PageFormat showPageFormatDialog(PageFormat page)
ServiceManager
showPageFormatDialog
in interface ServiceManager
public boolean print(Printable painter)
ServiceManager
print
in interface ServiceManager
public boolean print(Pageable document)
ServiceManager
print
in interface ServiceManager
public void loadUserPreferences(Properties props)
loadUserPreferences
in interface ServiceManager
public 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 ServiceManager
public boolean isAvailable(String part)
isAvailable
in interface ServiceManager
public boolean makeAvailable(String part)
makeAvailable
in interface ServiceManager
public Transferable getClipboardContents()
getClipboardContents
in interface ServiceManager
public void setClipboardContents(Transferable contents)
setClipboardContents
in interface ServiceManager
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |