org.zkoss.zss.model.impl.html
Class ToHtml

java.lang.Object
  extended by org.zkoss.zss.model.impl.html.ToHtml

public class ToHtml
extends java.lang.Object

This example shows how to display a spreadsheet in HTML using the classes for spreadsheet display.

Author:
Ken Arnold, Industrious Media LLC

Method Summary
static ToHtml create(SBook wb, java.io.OutputStream output)
          Creates a new converter to HTML for the given workbook.
static ToHtml create(SSheet ws, java.io.OutputStream output)
           
static void export(SBook wb, java.io.OutputStream outputStream)
           
static void export(SBook wb, java.io.OutputStream outputStream, boolean noHeader)
           
static void export(SSheet ws, CellRegion area, java.io.OutputStream outputStream)
           
static void export(SSheet ws, CellRegion area, java.io.OutputStream outputStream, boolean noHeader)
           
static void export(SSheet ws, java.io.OutputStream outputStream)
           
static void export(SSheet ws, java.io.OutputStream outputStream, boolean noHeader)
           
static void main(java.lang.String[] args)
          Run this class as a program
 void print()
           
 void printPage()
           
 void printSheet(SSheet sheet)
           
 void printStyles()
           
 void setCompleteHTML(boolean completeHTML)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static ToHtml create(SBook wb,
                            java.io.OutputStream output)
Creates a new converter to HTML for the given workbook.

Parameters:
wb - The workbook.
output - Where the HTML output will be written.
Returns:
An object for converting the workbook to HTML.

create

public static ToHtml create(SSheet ws,
                            java.io.OutputStream output)

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Run this class as a program

Parameters:
args - The command line arguments.
Throws:
java.lang.Exception - Exception we don't recover from.

export

public static void export(SBook wb,
                          java.io.OutputStream outputStream,
                          boolean noHeader)
                   throws java.io.IOException
Throws:
java.io.IOException

export

public static void export(SSheet ws,
                          java.io.OutputStream outputStream,
                          boolean noHeader)
                   throws java.io.IOException
Throws:
java.io.IOException

export

public static void export(SSheet ws,
                          CellRegion area,
                          java.io.OutputStream outputStream,
                          boolean noHeader)
                   throws java.io.IOException
Throws:
java.io.IOException

export

public static void export(SBook wb,
                          java.io.OutputStream outputStream)
                   throws java.io.IOException
Throws:
java.io.IOException

export

public static void export(SSheet ws,
                          java.io.OutputStream outputStream)
                   throws java.io.IOException
Throws:
java.io.IOException

export

public static void export(SSheet ws,
                          CellRegion area,
                          java.io.OutputStream outputStream)
                   throws java.io.IOException
Throws:
java.io.IOException

setCompleteHTML

public void setCompleteHTML(boolean completeHTML)

printPage

public void printPage()
               throws java.io.IOException
Throws:
java.io.IOException

print

public void print()

printStyles

public void printStyles()

printSheet

public void printSheet(SSheet sheet)


Copyright © 2005-2010 Potix Corporation. All Rights Reserved.