org.fopps.ui
Interface Application

All Known Implementing Classes:
ActionHandler.DummyApplication, MainFrame

public interface Application

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

openFile

public void openFile(java.lang.String pFilename)
Opens an existing file

Parameters:
pFilename - Name of file

saveFile

public void saveFile(java.lang.String pFilename)
Saves file

Parameters:
pFilename - Name of file

quitApplication

public void quitApplication()
Quits application


newFile

public void newFile()
Drops existing file a creates an new, empty file


getFilename

public java.lang.String getFilename()
Returns the current filename


hasChanged

public boolean hasChanged()
Returns true, if the data has changed since last save


addApplicationListener

public void addApplicationListener(ApplicationListener pListener)
Registers an application listener


removeApplicationListener

public void removeApplicationListener(ApplicationListener pListener)
Drops an application listener


print

public void print(java.awt.print.Printable pDocument)
           throws java.awt.print.PrinterException
Prints a document.

Parameters:
pDocument - Document to print
java.awt.print.PrinterException


Fopps 0.19 - Copyright © 2002 Oliver Wieland. All Rights Reserved.