com.jxcell
Class HTMLWriter

java.lang.Object
  extended bycom.jxcell.HTMLWriter

public class HTMLWriter
extends java.lang.Object

This is the JXCell HTMLWriter class which writes a range to an HTML Table.


Field Summary
static int ALIGN_TAG
          Output the data with table ALIGN tags
static int ALL
          The default flag setting.
static int BGCOLOR_TAG
          Output the data with table BGCOLOR tags
static int BORDER_TAG
          Output the data with table borders turned on
static int COLSPAN_TAG
          Output the data with table COLSPAN tags
static int FONT_TAG
          Output the data with table FONT tags
static int HEIGHT_TAG
          Output the data with table HEIGHT tags
static int NONE
          Output the data with no formatting
static int VALIGN_TAG
          Output the data with table VALIGN tags
static int VALUE_FORMATS
          Output the data with value formatting
static int WIDTH_TAG
          Output the data with table WIDTH tags
 
Constructor Summary
HTMLWriter()
           
 
Method Summary
 int getFlags()
          Gets the different flags indicating what TAGS to use and how data is displayed.
 void setFlags(int i)
          Sets the different flags indicating what TAGS to use and how data is displayed.
 void write(View view, int sheet1, int row1, int col1, int sheet2, int row2, int col2, java.io.Writer writer)
          Write the specified range to an HTML table
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final int NONE
Output the data with no formatting

See Also:
Constant Field Values

VALUE_FORMATS

public static final int VALUE_FORMATS
Output the data with value formatting

See Also:
Constant Field Values

BORDER_TAG

public static final int BORDER_TAG
Output the data with table borders turned on

See Also:
Constant Field Values

HEIGHT_TAG

public static final int HEIGHT_TAG
Output the data with table HEIGHT tags

See Also:
Constant Field Values

WIDTH_TAG

public static final int WIDTH_TAG
Output the data with table WIDTH tags

See Also:
Constant Field Values

BGCOLOR_TAG

public static final int BGCOLOR_TAG
Output the data with table BGCOLOR tags

See Also:
Constant Field Values

FONT_TAG

public static final int FONT_TAG
Output the data with table FONT tags

See Also:
Constant Field Values

COLSPAN_TAG

public static final int COLSPAN_TAG
Output the data with table COLSPAN tags

See Also:
Constant Field Values

ALIGN_TAG

public static final int ALIGN_TAG
Output the data with table ALIGN tags

See Also:
Constant Field Values

VALIGN_TAG

public static final int VALIGN_TAG
Output the data with table VALIGN tags

See Also:
Constant Field Values

ALL

public static final int ALL
The default flag setting.

See Also:
Constant Field Values
Constructor Detail

HTMLWriter

public HTMLWriter()
Method Detail

write

public void write(View view,
                  int sheet1,
                  int row1,
                  int col1,
                  int sheet2,
                  int row2,
                  int col2,
                  java.io.Writer writer)
           throws CellException,
                  java.io.IOException
Write the specified range to an HTML table

Parameters:
view - - The View that contains the range of data you wish to output.
sheet1 - - The starting sheet to output from.
row1 - - The starting row to output from.
col1 - - The starting column to output from.
sheet2 - - The ending sheet to output from.
row2 - - The ending row to output from.
col2 - - The ending column to output from.
writer - - A place to output the range to.
Throws:
CellException - if a parameter is invalid
java.io.IOException - if an IO error occurs

setFlags

public void setFlags(int i)
Sets the different flags indicating what TAGS to use and how data is displayed.

Parameters:
i - - Combination of the following flags. NONE - No tags or value formatting. VALUE_FORMATS - Outputs cell values with value formats. BORDER_TAG - Turns on table border. HEIGHT_TAG - Uses the HTML HEIGHT tag to set row heights. WIDTH_TAG - Uses the HTML WIDTH tag to set the column widths. BGCOLOR_TAG - Uses the HTML BGCOLOR tag to set the background color of the cells. FONT_TAG - Uses the HTML FONT tag to set the font attributes. COLSPAN_TAG - Uses the HTML COLSPAN tag to display data that overlap cells. ALIGN_TAG - Uses the HTML ALIGN tag to set the horizontal alignment. VALIGN_TAG - Uses the HTML VALIGN tag to set the vertical alignment. ALL - (DEFAULT) Applies all flags.

getFlags

public int getFlags()
Gets the different flags indicating what TAGS to use and how data is displayed.