ElegantJ Data Tables Java API Specification v1.1

com.elegantj.data.dataviewer
Class HTMLWriter

java.lang.Object
  extended bycom.elegantj.data.dataviewer.HTMLWriter

public class HTMLWriter
extends java.lang.Object


Constructor Summary
HTMLWriter(HTMLView htmlView)
           
 
Method Summary
 void finishHTML()
           
 int getMinPageHeight()
          Returns the minimum HTML page height
 int getMinPageWidth()
          Returns the minimum HTML page width
 int getPageHeight()
          Returns the HTML page height
 int getPageWidth()
          Returns the HTML page width
 void pageSetup()
          Displays the HTML page setup dialog
 void pageSetup(java.awt.Frame frame)
          Displays the HTML page setup dialog
 void printHTML(java.awt.Container parent, int width, int height)
           
 void printHTML(java.awt.Container parent, int width, int height, int[] grids)
           
 void setPageSize(int width, int height)
          Sets the HTML page size
 void startHTML()
           
 void startHTML(java.awt.Color borderColor, int borderWidth)
           
protected  void validatePageSize(int width, int height)
          Validates the specified page size
 void writeHTML(java.io.OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLWriter

public HTMLWriter(HTMLView htmlView)
Method Detail

pageSetup

public void pageSetup()
Displays the HTML page setup dialog


pageSetup

public void pageSetup(java.awt.Frame frame)
Displays the HTML page setup dialog

Parameters:
frame - The frame on to which this HTML page setup dialog is added if frame is null then new Frame created internally

setPageSize

public void setPageSize(int width,
                        int height)
Sets the HTML page size

Parameters:
width - The width of the HTML page
height - The height of the HTML page

getPageWidth

public int getPageWidth()
Returns the HTML page width

Returns:
the width of the HTML page

getPageHeight

public int getPageHeight()
Returns the HTML page height

Returns:
the height of the HTML page

getMinPageWidth

public int getMinPageWidth()
Returns the minimum HTML page width

Returns:
the minimum width of the HTML page

getMinPageHeight

public int getMinPageHeight()
Returns the minimum HTML page height

Returns:
the minimum height of the HTML page

validatePageSize

protected void validatePageSize(int width,
                                int height)
                         throws java.lang.IllegalArgumentException
Validates the specified page size

Throws:
java.lang.IllegalArgumentException

printHTML

public void printHTML(java.awt.Container parent,
                      int width,
                      int height)

printHTML

public void printHTML(java.awt.Container parent,
                      int width,
                      int height,
                      int[] grids)

writeHTML

public void writeHTML(java.io.OutputStream out)
               throws java.lang.IllegalArgumentException,
                      java.io.IOException
Throws:
java.lang.IllegalArgumentException
java.io.IOException

startHTML

public void startHTML()

startHTML

public void startHTML(java.awt.Color borderColor,
                      int borderWidth)

finishHTML

public void finishHTML()

ElegantJ Data Tables Java API Specification v1.1

Submit a bug or feature

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjbeans.com
All Rights Reserved.