Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/mvsteenb/javauitransformer/printtransformer/htmltransformer/swing/HtmlSwingTransformer.java


1   package com.mvsteenb.javauitransformer.printtransformer.htmltransformer.swing;
2   
3   import com.mvsteenb.javauitransformer.printtransformer.htmltransformer.awt.HtmlAWTTransformer;
4   
5   import javax.xml.transform.TransformerConfigurationException;
6   import java.util.Vector;
7   
8   /**
9    * com.mvsteenb.javauitransformer.printtransformer.htmltransformer.swing
10   *
11   * <p><b>About</b></p>
12   *
13   * <p>
14   *   This class is part of the JavaUIFormatter version @build.version@ (build #@build.number@) which was built on @build.date@.
15   * </p>
16   *
17   * <p><b>Description</b></p>
18   *
19   *
20   *
21   * <p><b>Free Software</b></p>
22   *
23   * <p>
24   *   Copyright (C) 2003 Mario Van Steenberghe
25   * </p>
26   *
27   * <p>
28   *   <small>
29   *     This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser
30   *     General Public License as published by the Free Software Foundation; either version 2.1 of the License, or
31   *     (at your option) any later version. This library is distributed in the hope that it will be useful,
32   *     but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
33   *     PURPOSE.  See the GNU Lesser General Public License for more details. You should have received a copy of the
34   *     GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc.,
35   *     59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.
36   *   </small>
37   * </p>
38   *
39   * <p>
40   *   <small>
41   *     Please contact me at mario.vansteenberghe@pandora.be for more information.
42   *   </small>
43   * </p>
44   *   
45   * <p><b>Revision History</b></p>
46   *
47   * <p>
48   *   Sep 2, 2003 : mvsteenb : Initial Revision
49   * </p>
50   * 
51   */
52  
53  public class HtmlSwingTransformer extends HtmlAWTTransformer {
54  
55    /**
56     * Constructor
57     * @throws javax.xml.transform.TransformerConfigurationException
58     */
59  
60    public HtmlSwingTransformer() throws TransformerConfigurationException {
61      super();
62    }
63  
64    // ================================================================================================================ //
65    // public methods                                                                                                   //
66    // ================================================================================================================ //
67  
68    /**
69     * Returns all stylesheet resources
70     */
71  
72    public Vector getStylesheetResources() {
73      Vector customStylesheetResources = super.getStylesheetResources();
74      customStylesheetResources.addElement(HtmlSwingTransformer.class.getResource("xslt/format-html-swing.xsl").toString());
75      return customStylesheetResources;
76    }
77  
78  }