|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.acesoft.aceoffix.excelwriter.Cell
public class Cell
Cell class represents the cell object defined in Excel. Representing a cell object defined in Excel, Cell class is used to fill data into the cell and control the behavior of the cell.
You can only call the Sheet.openCell(String) method or the Sheet.openCellRC(int, int) method to get the Cell object.
Method Summary | |
---|---|
Border |
getBorder()
Gets the border object. |
Font |
getFont()
Gets the font object. |
void |
setBackColor(java.awt.Color value)
Sets the back color of the cell. |
void |
setForeColor(java.awt.Color value)
Sets the fore color of the cell. |
void |
setFormula(java.lang.String value)
Sets the formula of the cell. |
void |
setHorizontalAlignment(XlHAlign value)
Sets the horizontal alignment of the cell. |
void |
setNumberFormatLocal(java.lang.String value)
Sets the data display format of the cell. |
void |
setReadOnly(boolean value)
Sets a value that indicates whether the cell is read-only. |
void |
setValue(java.lang.String value)
Sets the value of the cell. |
void |
setVerticalAlignment(XlVAlign value)
Sets the vertical alignment of the cell. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void setValue(java.lang.String value) throws java.io.IOException
java.io.IOException
Sheet.openCell().
public void setFormula(java.lang.String value) throws java.io.IOException
java.io.IOException
Sheet.openCell().
public Border getBorder() throws java.io.IOException
java.io.IOException
code example 2 in the Sheet#openTable(String) Sheet.openTable().
public void setBackColor(java.awt.Color value) throws java.io.IOException
java.io.IOException
Sheet.openCell().
public void setForeColor(java.awt.Color value) throws java.io.IOException
java.io.IOException
Sheet.openCell().
public void setReadOnly(boolean value) throws java.io.IOException
If the value is true, the editable cell will be read-only. And if the value is false, the read-only cell will be editable.
Only when the 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |