|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.acesoft.aceoffix.excelwriter.Table
public class Table
Table class represents the Excel table object defined in Aceoffix.
In Excel worksheet, we can define any range of cells containing a contiguous block of cells as a Table object. Table class encapsulates a series of data operations implementing in the continuous range of cells based on data table. Table class simplifies the complex operations to the ranges of Excel cells. And developer can work in the range of Excel cells as simple as in data table. Therefore, development efficiency and code stability are improved.
You can use Table object not only to fill data into a specified range of cells, but also to draw a new table on a blank range.
You can only call the Sheet.openTable(String) method to get the Table object.
Method Summary | |
---|---|
void |
close()
Closes the current Table. |
Border |
getBorder()
Gets the border object of the Table. |
DataFieldCollection |
getDataFields()
Gets a collection of DataFields of the current record. |
Font |
getFont()
Gets the font object. |
java.lang.String |
getRangeAddress()
Gets the range address of the Table. |
void |
merge()
Creates a merged cell from the current Table. |
void |
merge(boolean across)
Creates a merged cell form the current Table or merges all columns in the Table into one column. |
void |
nextRow()
Moves to the next record row in the Table. |
void |
setBackColor(java.awt.Color value)
Sets the back color of the Table. |
void |
setColumnWidth(double value)
Sets the width of all columns in the Table. |
void |
setForeColor(java.awt.Color value)
Sets the fore color of the Table. |
void |
setHorizontalAlignment(XlHAlign value)
Sets the horizontal alignment of the table. |
void |
setNumberFormatLocal(java.lang.String value)
Sets data display format of the table. |
void |
setReadOnly(boolean value)
Sets a value that indicates whether the Table is read-only. |
void |
setRowHeight(double value)
Sets the height of all the rows in the Table, measured in points. |
void |
setVerticalAlignment(XlVAlign value)
Sets the vertical alignment of the table. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.String getRangeAddress() throws java.io.IOException
It is the specified RangeAddress when you open the current Table.
java.io.IOException
public DataFieldCollection getDataFields() throws java.lang.Exception
java.lang.Exception
Sheet.openTable() to learn how to call the getDataFields method.
public Border getBorder() throws java.io.IOException
java.io.IOException
Sheet.openTable() to learn how to get the border object of the Table in code example 2.
public void setBackColor(java.awt.Color value) throws java.io.IOException
java.io.IOException
Sheet.openTable() to learn how to set the back color of the Table in code example 2.
public void setForeColor(java.awt.Color value) throws java.io.IOException
java.io.IOException
Sheet.openTable() to learn how to set the fore color of the Table in code example 2.
public void setRowHeight(double value) throws java.io.IOException
java.io.IOException
Sheet.openTable() to learn how to set the row height of the Table in code example 2.
public void setColumnWidth(double value) throws java.io.IOException
One unit of column width is equal to the width of one character in the Normal style. For proportional fonts, the width of the character 0 (zero) is used.
java.io.IOException
Sheet.openTable() to learn how to set the column width of the Table in code example 2.
public void setReadOnly(boolean value) throws java.io.IOException
If the value is true, the editable Table will be read-only. And if the value is false, the read-only Table will be editable.
Note: Only when OpenMode is Aceoffix.OpenModeType.xlsSubmitForm, the ReadOnly property is valid.
The default value is false.
java.io.IOException
public Font getFont()
public void setHorizontalAlignment(XlHAlign value) throws java.io.IOException
java.io.IOException
public void setVerticalAlignment(XlVAlign value) throws java.io.IOException
java.io.IOException
public void setNumberFormatLocal(java.lang.String value) throws java.io.IOException
java.io.IOException
public void nextRow() throws java.lang.Exception, java.io.IOException
java.lang.Exception
java.io.IOException
Sheet.openTable().
public void close() throws java.lang.Exception, java.io.IOException
When all the operations of current Table are done, you must call the Close method to close the Table. Once the Table is closed, you cannot refer it again unless you reopen it.
java.lang.Exception
java.io.IOException
Sheet.openTable().
public void merge() throws java.lang.Exception, java.io.IOException
The value of a merged cell is specified by the cell in the upper-left corner of the Table.
java.lang.Exception
java.io.IOException
Sheet.openTable() in code example 2.
public void merge(boolean across) throws java.lang.Exception, java.io.IOException
across
- true to merge cells in each row of the Table as separate merged cells. The default value is false.
java.lang.Exception
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |