oracle.html
クラス TableRow

java.lang.Object
  |
  +--oracle.html.IHtmlItemImpl
        |
        +--oracle.html.Item
              |
              +--oracle.html.TableRow
 

public class TableRow
extends Item

説明:

TableRowクラスは、テーブルの行を抽象化します。

使用方法:

このクラスは、TableDataCell、TableHeaderCell、DynamicTableクラスとともに、HTMLテーブルの作成に使用します。

例:

 // Creates a new TableRow
 TableRow row = new TableRow();
 // Add TableDataCells to TableRow
  row
    .addCell(new TableDataCell(new SimpleItem("first cell")))
    .addCell(new TableDataCell(new SimpleItem("second cell")))
    .addCell(new TableDataCell(new SimpleItem("third cell")));
  

関連項目:
Table, DynamicTable, TableHeaderCell, TableDataCell

クラス oracle.html.Itemから継承したフィールド
ATTR_ALGN_CENTER, ATTR_BIG, ATTR_BOLD, ATTR_CITATION, ATTR_CODE, ATTR_DEFINITION, ATTR_EMPHASIS, ATTR_FONT_BIG, ATTR_FONT_BOLD, ATTR_FONT_ITALIC, ATTR_FONT_SMALL, ATTR_FONT_STRIKE, ATTR_FONT_SUB, ATTR_FONT_SUPER, ATTR_FONT_TELETYPE, ATTR_FONT_UNDERLINE, ATTR_ITALIC, ATTR_KEYBOARD, ATTR_PHRASE_CITATION, ATTR_PHRASE_CODE, ATTR_PHRASE_DEFINITION, ATTR_PHRASE_EMPHASIS, ATTR_PHRASE_KEYBOARD, ATTR_PHRASE_SAMPLE, ATTR_PHRASE_STRONG, ATTR_PHRASE_VARIABLE, ATTR_SAMPLE, ATTR_SMALL, ATTR_STRIKE, ATTR_STRONG, ATTR_SUB, ATTR_SUPER, ATTR_TELETYPE, ATTR_UNDERLINE, ATTR_VARIABLE
 
コンストラクタの概要
TableRow()
          新しいTableRowオブジェクトを作成します。
TableRow(int initCapacity)
          initCapacityに指定された初期容量で新しいTableRowオブジェクトを作成します。
TableRow(int initCapacity, int halign, int valign)
          指定された初期容量、水平位置揃え、垂直位置揃えで新しいTableRowオブジェクトを作成します。
 
メソッドの概要
 TableRow addCell(java.lang.String str)
          TableRowに新規TableDataCellを追加します。
注意: 簡易関数です。
 TableRow addCell(TableCell cell)
          TableRowにセルを追加します。
 TableCell cellAt(int index)
          指定された位置にあるTableCellを返します。
 int cells()
          TableRowのセルの数を返します。
 TableRow setBackgroundColor(Color color)
          セルのバックグラウンド・カラーを設定します。
 TableRow setBackgroundColor(java.lang.String color)
          セルのバックグラウンド・カラーを設定します。
 TableRow setBorderColor(Color color)
          セルの境界線のカラーを設定します。
 TableRow setBorderColor(java.lang.String color)
          セルの境界線のカラーを設定します。
 TableRow setCellAt(int index, SimpleItem item)
          インデックスにより指定された位置にあるセルの内容を設定します。
 TableRow setIHAlign(int halign)
          行にある全セルのデフォルトの水平位置揃え属性を設定します。
 TableRow setIVAlign(int valign)
          行にある全セルのデフォルトの垂直位置揃え属性を設定します。
 java.lang.String toHTML()
          TableRowの内容をHTML文字列として返します。
 java.lang.String toString()
          TableRowの内容を通常の文字列として返します。
 
クラス oracle.html.Itemから継承したメソッド
clearAttr, setAttr, setAttr, setBold, setBold, setCenter, setCenter, setCite, setCite, setCode, setCode, setDefinition, setDefinition, setEmphasis, setEmphasis, setFontBig, setFontBig, setFontColor, setFontSize, setFontSmall, setFontSmall, setFontSubscript, setFontSubscript, setFontSuperscript, setFontSuperscript, setHeading, setItal, setItal, setKeyboard, setKeyboard, setSample, setSample, setStrike, setStrike, setStrongEmphasis, setStrongEmphasis, setStyleElement, setTeletype, setTeletype, setUnderline, setUnderline, setVariable, setVariable
 
クラス oracle.html.IHtmlItemImplから継承したメソッド
print, print
 
クラス java.lang.Objectから継承したメソッド
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

TableRow

public TableRow() 
新しいTableRowオブジェクトを作成します。

TableRow

public TableRow(int initCapacity) 
initCapacityに指定された初期容量で新しいTableRowオブジェクトを作成します。

TableRow

public TableRow(int initCapacity,
                int halign,
                int valign) 
指定された初期容量、水平位置揃え、垂直位置揃えで新しいTableRowオブジェクトを作成します。
メソッドの詳細

addCell

public TableRow addCell(TableCell cell) 
TableRowにセルを追加します。

addCell

public TableRow addCell(java.lang.String str) 
TableRowに新規TableDataCellを追加します。
注意: 簡易関数です。
関連項目:
SimpleItem, TableDataCell

cells

public int cells() 
TableRow内のセルの数を返します。

cellAt

public TableCell cellAt(int index) 
指定された位置にあるTableCellを返します。

setIHAlign

public TableRow setIHAlign(int halign) 
行にある全セルのデフォルトの水平位置揃え属性を設定します。

setIVAlign

public TableRow setIVAlign(int valign) 
行にある全セルのデフォルトの垂直位置揃え属性を設定します。

setCellAt

public TableRow setCellAt(int index,
                          SimpleItem item) 
インデックスにより指定された位置にあるセルの内容を設定します。

toHTML

public java.lang.String toHTML() 
TableRowの内容をHTML文字列として返します。
オーバーライド:
クラス Item内のtoHTML
タグのコピー元クラス: Item
戻り値:
オブジェクトの内容を表すHTML文字列

setBackgroundColor

public TableRow setBackgroundColor(java.lang.String color) 
セルのバックグラウンド・カラーを設定します。

setBackgroundColor

public TableRow setBackgroundColor(Color color) 
セルのバックグラウンド・カラーを設定します。

setBorderColor

public TableRow setBorderColor(java.lang.String color) 
セルの境界線のカラーを設定します。

setBorderColor

public TableRow setBorderColor(Color color) 
セルの境界線のカラーを設定します。

toString

public java.lang.String toString() 
TableRowの内容を通常の文字列として返します。
オーバーライド:
クラス Item内のtoString
タグのコピー元クラス: Item
戻り値:
オブジェクトの文字列表記