|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--oracle.html.IHtmlItemImpl | +--oracle.html.Item | +--oracle.html.TableRow
説明:
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
コンストラクタの概要 | |
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.IHtmlItemImplから継承したメソッド |
print, print |
クラス java.lang.Objectから継承したメソッド |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
コンストラクタの詳細 |
public TableRow()
public TableRow(int initCapacity)
public TableRow(int initCapacity, int halign, int valign)
メソッドの詳細 |
public TableRow addCell(TableCell cell)
public TableRow addCell(java.lang.String str)
SimpleItem
, TableDataCell
public int cells()
public TableCell cellAt(int index)
public TableRow setIHAlign(int halign)
public TableRow setIVAlign(int valign)
public TableRow setCellAt(int index, SimpleItem item)
public java.lang.String toHTML()
public TableRow setBackgroundColor(java.lang.String color)
public TableRow setBackgroundColor(Color color)
public TableRow setBorderColor(java.lang.String color)
public TableRow setBorderColor(Color color)
public java.lang.String toString()
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |