|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jxcell.HTMLWriter
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 |
public static final int NONE
public static final int VALUE_FORMATS
public static final int BORDER_TAG
public static final int HEIGHT_TAG
public static final int WIDTH_TAG
public static final int BGCOLOR_TAG
public static final int FONT_TAG
public static final int COLSPAN_TAG
public static final int ALIGN_TAG
public static final int VALIGN_TAG
public static final int ALL
Constructor Detail |
public HTMLWriter()
Method Detail |
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
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.
CellException
- if a parameter is invalid
java.io.IOException
- if an IO error occurspublic void setFlags(int i)
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.public int getFlags()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |