Class ToHtml

  • All Implemented Interfaces:
    java.io.Serializable

    public class ToHtml
    extends java.lang.Object
    implements java.io.Serializable
    This example shows how to display a spreadsheet in HTML using the classes for spreadsheet display.
    Author:
    Ken Arnold, Industrious Media LLC
    See Also:
    Serialized Form
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static ToHtml create​(io.keikai.model.SBook wb, java.io.OutputStream output)
      Creates a new converter to HTML for the given workbook.
      static ToHtml create​(io.keikai.model.SSheet ws, java.io.OutputStream output)  
      static void export​(io.keikai.model.SBook wb, java.io.OutputStream outputStream)  
      static void export​(io.keikai.model.SBook wb, java.io.OutputStream outputStream, boolean noHeader)  
      static void export​(io.keikai.model.SSheet ws, io.keikai.model.CellRegion area, java.io.OutputStream outputStream)  
      static void export​(io.keikai.model.SSheet ws, io.keikai.model.CellRegion area, java.io.OutputStream outputStream, boolean noHeader)  
      static void export​(io.keikai.model.SSheet ws, java.io.OutputStream outputStream)  
      static void export​(io.keikai.model.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​(io.keikai.model.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​(io.keikai.model.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​(io.keikai.model.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​(io.keikai.model.SBook wb,
                                  java.io.OutputStream outputStream,
                                  boolean noHeader)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • export

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

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

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

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

        public static void export​(io.keikai.model.SSheet ws,
                                  io.keikai.model.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​(io.keikai.model.SSheet sheet)