de.hs_rm.cs.lecturenotes.client.core.logical
Class PrintEngine

java.lang.Object
  extended by de.hs_rm.cs.lecturenotes.client.core.logical.PrintEngine

public final class PrintEngine
extends java.lang.Object

Print Enginge that generates PDF Files.

Version:
$LastChangedRevision: 237 $
Author:
Enrico Homann

Constructor Summary
PrintEngine()
           
 
Method Summary
 com.google.gwt.user.client.Command getFilecardsPDFCommand()
          Will return a Command for MenuItem usage.
 com.google.gwt.user.client.rpc.AsyncCallback<PDFGeneratorResult> getGeneratePDFCallback()
          General purpose PDF Callback to handle the generated PDF.
static PrintEngine getInstance()
          Will return the singleton.
 com.google.gwt.user.client.Command getLecturePDFCommand()
          Will return a Command for MenuItem usage.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintEngine

public PrintEngine()
Method Detail

getInstance

public static PrintEngine getInstance()
Will return the singleton.

Returns:
PrintEngine

getLecturePDFCommand

public com.google.gwt.user.client.Command getLecturePDFCommand()
Will return a Command for MenuItem usage.

Returns:
Command

getFilecardsPDFCommand

public com.google.gwt.user.client.Command getFilecardsPDFCommand()
Will return a Command for MenuItem usage.

Returns:
Command

getGeneratePDFCallback

public com.google.gwt.user.client.rpc.AsyncCallback<PDFGeneratorResult> getGeneratePDFCallback()
General purpose PDF Callback to handle the generated PDF. The callback opens a new browser window using the URL data provided. This also needs that the user has allowed browser popups for display.

Returns:
AsyncCallback of PDFGeneratorResult