com.ngMAT.HTML
クラス Table

java.lang.Object
  |
  +--com.ngMAT.Common.ngmObject
        |
        +--com.ngMAT.HTML.HTMLComponent
              |
              +--com.ngMAT.HTML.Table
すべての実装インタフェース:
java.lang.Cloneable, ngmObjectFunction, java.io.Serializable

public class Table
extends HTMLComponent

This class represents TABLE tag of HTML. このクラスは、HTMLのTABLEタグをサポートする。

導入されたバージョン:
JDK 1.1.8
関連項目:
直列化された形式

クラス com.ngMAT.HTML.HTMLComponent から継承したフィールド
BR, df, END_TAG_CHAR, NullParamValue, params, subelements, TAG_CLOSE_CHAR, TAG_OPEN_CHAR
 
インタフェース com.ngMAT.Common.ngmObjectFunction から継承したフィールド
C_BACKSLASH, C_BLOCK_CLOSE, C_BLOCK_OPEN, C_COMMA, C_CR, C_DOUBLE_QUATATION, C_EQUAL, C_LF, C_SINGLE_QUATATION, C_SPACE, C_TAB, S_BACKSLASH, S_BLOCK_CLOSE, S_BLOCK_OPEN, S_COMMA, S_CR, S_CRLF, S_DOUBLE_QUATATION, S_EQUAL, S_LF, S_SINGLE_QUATATION, S_SPACE, S_TAB
 
コンストラクタの概要
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.
 
クラス com.ngMAT.HTML.HTMLComponent から継承したメソッド
clone, getParameter, getParameters, getSubElements, getVersion, setParameter, setParameters, setSubElement, setSubElement, setSubElements, toString
 
クラス com.ngMAT.Common.ngmObject から継承したメソッド
debug, debug, equals_n, getLog, getProperties, getProperty, setLog, setNgmObject, setProperties
 
クラス java.lang.Object から継承したメソッド
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

Table

public Table(boolean requiresHeader,
             int rowcount,
             int columncount)
constructor to create table object with a specified pair of row count and column count. 列数・行数を指定するコンストラクタ。
パラメータ:
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. 初期状態での列数。

Table

public Table(boolean requiresHeader,
             int columncount)
standard constructor to create table object with a specified column count. 行数を指定する標準コンストラクタ。
パラメータ:
requiresHeader - if the header row is required or not. ヘッダ行を使用するか。
columncount - number of columns at an initial state. 初期状態での列数。
メソッドの詳細

setCellAt

public void setCellAt(int r,
                      int c,
                      java.lang.String value)
set the String value at the specified cell. 指定セルへの文字列セット。
パラメータ:
r -  
c -  
value -  

setCellAt

public void setCellAt(int r,
                      int c,
                      HTMLComponent value)
set the HTMLComponent object at the specified cell. 指定セルへのHTMLComponentオブジェクトのセット。
パラメータ:
r -  
c -  
value -  

setHeaderCellAt

public void setHeaderCellAt(int c,
                            java.lang.String value)
set the String value at the specified header cell. 指定ヘッダセルへの文字列セット。
パラメータ:
c -  
value -  

setHeaderCellAt

public void setHeaderCellAt(int c,
                            HTMLComponent value)
set the HTMLComponent object at the specified header cell. 指定ヘッダセルへのHTMLComponentオブジェクトのセット。
パラメータ:
c -  
value -  

addRow

public void addRow(int rowcount)
adds a new row at the end of the table. 最下行に1行追加。
パラメータ:
rowcount -  

addRow

public void addRow()
adds a new row at the end of the table. 最下行に1行追加。

getHeaderRow

public Row getHeaderRow()
get the header row. ヘッダ行の取得

getFirstRow

public Row getFirstRow()
get the fiest row. 先頭行の取得

getLastRow

public Row getLastRow()
get the last row. 最終行の取得

getRowAt

public Row getRowAt(int r)
get the specified row. 指定行の取得

getAllRows

public HTMLComponentVector getAllRows()
get all rows. 全行の取得

getCellAt

public Cell getCellAt(int r,
                      int c)
get the specified cell. 指定セルの取得

getHeaderCellAt

public Cell getHeaderCellAt(int c)
get the specified header cell. 指定ヘッダセルの取得

setAlign

public void setAlign(java.lang.String value)

setBorder

public void setBorder(java.lang.String value)

setWidth

public void setWidth(java.lang.String value)

setHeight

public void setHeight(java.lang.String value)

setCellSpacing

public void setCellSpacing(java.lang.String value)

setCellPadding

public void setCellPadding(java.lang.String value)

setHSpace

public void setHSpace(java.lang.String value)

setVSpace

public void setVSpace(java.lang.String value)

setBGColor

public void setBGColor(java.lang.String value)

setBackground

public void setBackground(java.lang.String value)

setBorderColor

public void setBorderColor(java.lang.String value)

setBorderColorDark

public void setBorderColorDark(java.lang.String value)

setBorderColorLight

public void setBorderColorLight(java.lang.String value)

setFrame

public void setFrame(java.lang.String value)

setRules

public void setRules(java.lang.String value)

setCols

public void setCols(java.lang.String value)

getTagName

public java.lang.String getTagName()
クラス HTMLComponent の記述:
returns tag name. This must be implemented in sub classes.
オーバーライド:
クラス HTMLComponent 内の getTagName

toHTML

public java.lang.String toHTML()
convert this object into an HTML string. HTML文字列への変換。
オーバーライド:
クラス HTMLComponent 内の toHTML


バグや機能要求の報告
最新の情報
Copyright 2000 - ngMAT Corporation