From 96389466623b5f6d821252f00c523ac7f91b514b Mon Sep 17 00:00:00 2001 From: michelou Date: Thu, 25 Sep 2003 12:14:00 +0000 Subject: - added new constructor (for 'script' field) --- sources/ch/epfl/lamp/util/XHTMLPrinter.java | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/sources/ch/epfl/lamp/util/XHTMLPrinter.java b/sources/ch/epfl/lamp/util/XHTMLPrinter.java index 9600817b06..be76c45023 100644 --- a/sources/ch/epfl/lamp/util/XHTMLPrinter.java +++ b/sources/ch/epfl/lamp/util/XHTMLPrinter.java @@ -21,6 +21,21 @@ public class XHTMLPrinter extends HTMLPrinter { //######################################################################## // Public Constructors + /** + * Creates a new instance. + * + * @param writer + * @param title + * @param representation + * @param stylesheet + * @param script + */ + public XHTMLPrinter(Writer writer, String title, HTMLRepresentation representation, + String stylesheet, String script) + { + super(writer, title, representation, stylesheet, script); + } + /** * Creates a new instance. * @@ -32,7 +47,7 @@ public class XHTMLPrinter extends HTMLPrinter { public XHTMLPrinter(Writer writer, String title, HTMLRepresentation representation, String stylesheet) { - super(writer, title, representation, stylesheet); + this(writer, title, representation, stylesheet, DEFAULT_JAVASCRIPT); } /** -- cgit v1.2.3