Class PrintUtil
- java.lang.Object
-
- com.logicaldoc.gui.common.client.util.PrintUtil
-
public class PrintUtil extends Object
Some printing utility methods- Since:
- 8.6.1
- Author:
- Marco Meschieri - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description PrintUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
printPreview(String title, com.smartgwt.client.widgets.Canvas canvas)
static void
printPreview(String title, String htmlContent)
static void
printScreenShot(String id)
static void
printScreenShot(String id, String title)
static void
printScreenShot(String id, String title, String printLabel, String closeLabel)
Uses Javascript to take a screenshot of a canvas and prints it
-
-
-
Method Detail
-
printPreview
public static void printPreview(String title, com.smartgwt.client.widgets.Canvas canvas)
-
printScreenShot
public static void printScreenShot(String id)
-
printScreenShot
public static void printScreenShot(String id, String title, String printLabel, String closeLabel)
Uses Javascript to take a screenshot of a canvas and prints it- Parameters:
id
- identifier of the canvastitle
- title of the windowprintLabel
- title of the print buttoncloseLabel
- title of the close button
-
-