public class Table extends HTMLComponent
BR, df, END_TAG_CHAR, NullParamValue, params, subelements, TAG_CLOSE_CHAR, TAG_OPEN_CHAR
C_BACKSLASH, C_BLOCK_CLOSE, C_BLOCK_OPEN, C_COMMA, C_CR, C_DOUBLE_BYTE_SPACE, C_DOUBLE_QUATATION, C_DOUBLE_QUOTATION, C_EQUAL, C_HYPHEN, C_LF, C_SINGLE_QUATATION, C_SINGLE_QUOTATION, C_SPACE, C_TAB, S_BACKSLASH, S_BLOCK_CLOSE, S_BLOCK_OPEN, S_COMMA, S_CR, S_CRLF, S_DOUBLE_QUATATION, S_DOUBLE_QUOTATION, S_EQUAL, S_HYPHEN, S_LF, S_SINGLE_QUATATION, S_SINGLE_QUOTATION, S_SPACE, S_TAB
コンストラクタと説明 |
---|
Table() |
Table(boolean requiresHeader,
int columncount)
standard constructor to create table object with a specified column count.
|
Table(boolean requiresHeader,
int rowcount,
int columncount)
constructor to create table object with a specified pair of row count and column count.
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
addRow()
adds a new row at the end of the table.
|
void |
addRow(int rowcount)
adds a new row at the end of the table.
|
HTMLComponentVector |
getAllRows()
get all rows.
|
Cell |
getCellAt(int r,
int c)
get the specified cell.
|
Row |
getFirstRow()
get the fiest row.
|
Cell |
getHeaderCellAt(int c)
get the specified header cell.
|
Row |
getHeaderRow()
get the header row.
|
Row |
getLastRow()
get the last row.
|
Row |
getRowAt(int r)
get the specified row.
|
java.lang.String |
getTagName()
returns tag name.
|
void |
setAlign(java.lang.String value) |
void |
setBackground(java.lang.String value) |
void |
setBGColor(java.lang.String value) |
void |
setBorder(java.lang.String value) |
void |
setBorderColor(java.lang.String value) |
void |
setBorderColorDark(java.lang.String value) |
void |
setBorderColorLight(java.lang.String value) |
void |
setCellAt(int r,
int c,
HTMLComponent value)
set the HTMLComponent object at the specified cell.
|
void |
setCellAt(int r,
int c,
java.lang.String value)
set the String value at the specified cell.
|
void |
setCellPadding(java.lang.String value) |
void |
setCellSpacing(java.lang.String value) |
void |
setCols(java.lang.String value) |
void |
setFrame(java.lang.String value) |
void |
setHeaderCellAt(int c,
HTMLComponent value)
set the HTMLComponent object at the specified header cell.
|
void |
setHeaderCellAt(int c,
java.lang.String value)
set the String value at the specified header cell.
|
void |
setHeight(java.lang.String value) |
void |
setHSpace(java.lang.String value) |
void |
setRules(java.lang.String value) |
void |
setVSpace(java.lang.String value) |
void |
setWidth(java.lang.String value) |
java.lang.String |
toHTML()
convert this object into an HTML string.
|
addSubElement, addSubElement, addSubElement, addSubElement, clone, getBooleanParameter, getBooleanParameter, getDecimalFormat, getIndex, getIntParameter, getIntParameter, getLongParameter, getLongParameter, getMimeType, getOmitClosingTag, getParameter, getParameter, getParameters, getParent, getParentTemplateTimezone, getSubElements, getVersion, removeAllSubElements, removeParameter, setMimeType, setOmitClosingTag, setParameter, setParameter, setParameter, setParameter, setParameters, setParameters, setParent, setSubElement, setSubElement, setSubElements, toString
debug, debug, equals_n, equals_n2, getBooleanProperty, getBooleanProperty, getGroupedProperties, getIntProperty, getIntProperty, getLog, getLongProperty, getLongProperty, getProperties, getPropertiesForMe, getProperty, getProperty, getShortProperty, getShortProperty, setLog, setNgmObject, setProperties, sysoutprintln
public Table()
public Table(boolean requiresHeader, int rowcount, int columncount)
requiresHeader
- if the header row is required or not.
ヘッダ行を使用するか。rowcount
- number of rows at an initial state.
初期状態の行数。columncount
- number of columns at an initial state.
初期状態での列数。public Table(boolean requiresHeader, int columncount)
requiresHeader
- if the header row is required or not.
ヘッダ行を使用するか。columncount
- number of columns at an initial state.
初期状態での列数。public void setCellAt(int r, int c, java.lang.String value)
r
- c
- value
- public void setCellAt(int r, int c, HTMLComponent value)
r
- c
- value
- public void setHeaderCellAt(int c, java.lang.String value)
c
- value
- public void setHeaderCellAt(int c, HTMLComponent value)
c
- value
- public void addRow(int rowcount)
rowcount
- public void addRow()
public Row getHeaderRow()
public Row getFirstRow()
public Row getLastRow()
public Row getRowAt(int r)
public HTMLComponentVector getAllRows()
public Cell getCellAt(int r, int c)
public Cell getHeaderCellAt(int c)
public void setAlign(java.lang.String value)
public void setBorder(java.lang.String value)
public void setWidth(java.lang.String value)
public void setHeight(java.lang.String value)
public void setCellSpacing(java.lang.String value)
public void setCellPadding(java.lang.String value)
public void setHSpace(java.lang.String value)
public void setVSpace(java.lang.String value)
public void setBGColor(java.lang.String value)
public void setBackground(java.lang.String value)
public void setBorderColor(java.lang.String value)
public void setBorderColorDark(java.lang.String value)
public void setBorderColorLight(java.lang.String value)
public void setFrame(java.lang.String value)
public void setRules(java.lang.String value)
public void setCols(java.lang.String value)
public java.lang.String getTagName()
HTMLComponent
getTagName
クラス内 HTMLComponent
public java.lang.String toHTML()
toHTML
クラス内 HTMLComponent