|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface for application objects
| Method Summary | |
void |
addApplicationListener(ApplicationListener pListener)
Registers an application listener |
java.lang.String |
getFilename()
Returns the current filename |
boolean |
hasChanged()
Returns true, if the data has changed since last save |
void |
newFile()
Drops existing file a creates an new, empty file |
void |
openFile(java.lang.String pFilename)
Opens an existing file |
void |
print(java.awt.print.Printable pDocument)
Prints a document. |
void |
quitApplication()
Quits application |
void |
removeApplicationListener(ApplicationListener pListener)
Drops an application listener |
void |
saveFile(java.lang.String pFilename)
Saves file |
| Method Detail |
public void openFile(java.lang.String pFilename)
pFilename - Name of filepublic void saveFile(java.lang.String pFilename)
pFilename - Name of filepublic void quitApplication()
public void newFile()
public java.lang.String getFilename()
public boolean hasChanged()
public void addApplicationListener(ApplicationListener pListener)
public void removeApplicationListener(ApplicationListener pListener)
public void print(java.awt.print.Printable pDocument)
throws java.awt.print.PrinterException
pDocument - Document to print
java.awt.print.PrinterException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||