com.saic.isd.printscreen
Class HtmlHandler

java.lang.Object
  extended bycom.saic.isd.printscreen.PrintScreenHandler
      extended bycom.saic.isd.printscreen.TextHandler
          extended bycom.saic.isd.printscreen.HtmlHandler
All Implemented Interfaces:
IContainerCallBack

public class HtmlHandler
extends TextHandler

Provides a action to support printing of generic swing objects.

Version:
$Revision: 1.2 $
Author:
A Rearick (originator), $Author: beckg $ (latest)

Field Summary
 
Fields inherited from class com.saic.isd.printscreen.TextHandler
NEW_LINE
 
Fields inherited from class com.saic.isd.printscreen.PrintScreenHandler
myComponentToPrint, myFilter, myIcon, myLabel, myShortDescription
 
Constructor Summary
protected HtmlHandler(java.awt.Window window)
           
protected HtmlHandler(java.awt.Window window, java.lang.String label, java.lang.String shortDescription, javax.swing.Icon icon, java.lang.String extension, java.lang.String filterLabel)
           
 
Method Summary
 void format(java.awt.Component x)
           
 void format(java.awt.Container x)
           
 void format(java.awt.Frame x)
           
 boolean format(IPrintScreenText x)
           
 void format(javax.swing.JDesktopPane x)
           
 void format(javax.swing.JLabel x)
           
 void format(javax.swing.JTabbedPane tabbed)
           
 void format(javax.swing.JTable table)
           
 void format(javax.swing.JTextArea area)
           
 void format(javax.swing.JTextField x)
           
 void format(java.lang.String x)
           
static void main(java.lang.String[] args)
           
 void preview()
          Create an internal representation of the screen and then show that in a window.
 void print()
          Create an internal representation of the screen and then print that internal representation to a printer.
protected  void wrapBody()
          Sub-classes can use this to implement wrapping.
 
Methods inherited from class com.saic.isd.printscreen.TextHandler
copy, file, makeContents
 
Methods inherited from class com.saic.isd.printscreen.PrintScreenHandler
getIcon, getLabel, getShortDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlHandler

protected HtmlHandler(java.awt.Window window)

HtmlHandler

protected HtmlHandler(java.awt.Window window,
                      java.lang.String label,
                      java.lang.String shortDescription,
                      javax.swing.Icon icon,
                      java.lang.String extension,
                      java.lang.String filterLabel)
Method Detail

print

public void print()
Description copied from class: PrintScreenHandler
Create an internal representation of the screen and then print that internal representation to a printer.

Overrides:
print in class TextHandler

preview

public void preview()
Description copied from class: PrintScreenHandler
Create an internal representation of the screen and then show that in a window.

Overrides:
preview in class TextHandler

wrapBody

protected void wrapBody()
Description copied from class: TextHandler
Sub-classes can use this to implement wrapping. For example, document tags for HTML and XML.

Overrides:
wrapBody in class TextHandler

format

public boolean format(IPrintScreenText x)
Parameters:
x - The screen to format.
Returns:
Handled Returns true if this will handle the desired flavor - one of UNFORMATTED, HTML, XML in IPrintScreenText.

format

public void format(javax.swing.JLabel x)

format

public void format(javax.swing.JTextField x)

format

public void format(javax.swing.JTextArea area)

format

public void format(javax.swing.JTable table)

format

public void format(javax.swing.JTabbedPane tabbed)

format

public void format(java.awt.Frame x)

format

public void format(javax.swing.JDesktopPane x)

format

public void format(java.awt.Container x)

format

public void format(java.awt.Component x)

format

public void format(java.lang.String x)

main

public static void main(java.lang.String[] args)


Copyright © 2002 Gerhard Beck. All rights reserved. Subject to GPL.