org.rapla.components.iolayer
Class WebstartIO

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.rapla.components.iolayer.DefaultIO
          extended by org.rapla.components.iolayer.WebstartIO
All Implemented Interfaces:
LogEnabled, IOInterface

public final class WebstartIO
extends DefaultIO


Field Summary
 
Fields inherited from class org.rapla.components.iolayer.DefaultIO
job, PRINT_EXPORT_CLASS, RAPLA_JOB
 
Fields inherited from interface org.rapla.components.iolayer.IOInterface
INCH_TO_MM, MM_TO_INCH, ROLE
 
Constructor Summary
WebstartIO(Logger logger)
           
 
Method Summary
 PageFormat defaultPage()
           
 FileContent openFile(Frame frame, String dir, String[] fileExtensions)
           
 boolean print(Printable printable, PageFormat format, boolean askFormat)
          Prints an printable object.
 void saveAsPostscript(Printable printable, PageFormat format, OutputStream out)
           
 String saveAsPostscriptShowDialog(String dir, Printable printable, PageFormat format, boolean askFormat, Component owner)
           
 String saveFile(Frame frame, String dir, String[] fileExtensions, String filename, byte[] content)
           
 void setContents(Transferable transferable, ClipboardOwner owner)
           
 PageFormat showFormatDialog(PageFormat format)
           
 
Methods inherited from class org.rapla.components.iolayer.DefaultIO
callExport, supportsPostscriptExport
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebstartIO

public WebstartIO(Logger logger)
           throws UnsupportedOperationException
Throws:
UnsupportedOperationException
Method Detail

defaultPage

public PageFormat defaultPage()
                       throws UnsupportedOperationException
Specified by:
defaultPage in interface IOInterface
Overrides:
defaultPage in class DefaultIO
Throws:
UnsupportedOperationException

setContents

public void setContents(Transferable transferable,
                        ClipboardOwner owner)
Specified by:
setContents in interface IOInterface
Overrides:
setContents in class DefaultIO

showFormatDialog

public PageFormat showFormatDialog(PageFormat format)
                            throws UnsupportedOperationException
Specified by:
showFormatDialog in interface IOInterface
Overrides:
showFormatDialog in class DefaultIO
Throws:
UnsupportedOperationException

print

public boolean print(Printable printable,
                     PageFormat format,
                     boolean askFormat)
              throws PrinterException,
                     UnsupportedOperationException
Prints an printable object. The format parameter is ignored, if askFormat is not set. Call showFormatDialog to set the PageFormat.

Specified by:
print in interface IOInterface
Overrides:
print in class DefaultIO
Parameters:
askFormat - If true a dialog will show up to allow the user to edit printformat.
Throws:
PrinterException
UnsupportedOperationException

saveAsPostscriptShowDialog

public String saveAsPostscriptShowDialog(String dir,
                                         Printable printable,
                                         PageFormat format,
                                         boolean askFormat,
                                         Component owner)
                                  throws IOException,
                                         UnsupportedOperationException
Specified by:
saveAsPostscriptShowDialog in interface IOInterface
Overrides:
saveAsPostscriptShowDialog in class DefaultIO
Throws:
IOException
UnsupportedOperationException

saveAsPostscript

public void saveAsPostscript(Printable printable,
                             PageFormat format,
                             OutputStream out)
Specified by:
saveAsPostscript in interface IOInterface
Overrides:
saveAsPostscript in class DefaultIO

saveFile

public String saveFile(Frame frame,
                       String dir,
                       String[] fileExtensions,
                       String filename,
                       byte[] content)
                throws IOException
Specified by:
saveFile in interface IOInterface
Overrides:
saveFile in class DefaultIO
Throws:
IOException

openFile

public FileContent openFile(Frame frame,
                            String dir,
                            String[] fileExtensions)
                     throws IOException
Specified by:
openFile in interface IOInterface
Overrides:
openFile in class DefaultIO
Throws:
IOException


Copyright © 2000-2006 Rapla Team. All Rights Reseserved.