|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前 次 | フレームあり フレームなし | |||||||||
| TableCellEditor を使用しているパッケージ | |
|---|---|
| javax.swing | すべてのプラットフォームで可能なかぎり同じように機能する、「軽量」(Java 共通言語) コンポーネントのセットを提供します。 |
| javax.swing.table | javax.swing.JTable を処理するためのクラスおよびインタフェースを提供します。 |
| javax.swing での TableCellEditor の使用 |
|---|
| TableCellEditor を実装している javax.swing のクラス | |
|---|---|
class |
DefaultCellEditor
テーブルとツリーセルのデフォルトエディタです。 |
| TableCellEditor として宣言されている javax.swing のフィールド | |
|---|---|
protected TableCellEditor |
JTable.cellEditor
現在のセルが占める画面上の場所を上書きし、ユーザがその内容を変更できるようにするオブジェクトです。 |
| TableCellEditor を返す javax.swing のメソッド | |
|---|---|
TableCellEditor |
JTable.getCellEditor()
セルエディタを返します。 |
TableCellEditor |
JTable.getCellEditor(int row,
int column)
row と column が指定するセルの適切なエディタを返します。 |
TableCellEditor |
JTable.getDefaultEditor(Class<?> columnClass)
TableColumn にエディタが設定されていない場合に使用するエディタを返します。 |
| TableCellEditor 型のパラメータを持つ javax.swing のメソッド | |
|---|---|
Component |
JTable.prepareEditor(TableCellEditor editor,
int row,
int column)
row、column の位置にあるセルの値および選択状態をデータモデルに照会して、エディタを準備します。 |
void |
JTable.setCellEditor(TableCellEditor anEditor)
cellEditor 変数を設定します。 |
void |
JTable.setDefaultEditor(Class<?> columnClass,
TableCellEditor editor)
TableColumn にエディタが設定されていない場合に使用する、デフォルトのセルエディタを設定します。 |
| javax.swing.table での TableCellEditor の使用 |
|---|
| TableCellEditor として宣言されている javax.swing.table のフィールド | |
|---|---|
protected TableCellEditor |
TableColumn.cellEditor
列のデータセルを編集するために使用されるエディタです。 |
| TableCellEditor を返す javax.swing.table のメソッド | |
|---|---|
TableCellEditor |
TableColumn.getCellEditor()
JTable がこの列の値を編集するために使用する TableCellEditor を返します。 |
| TableCellEditor 型のパラメータを持つ javax.swing.table のメソッド | |
|---|---|
void |
TableColumn.setCellEditor(TableCellEditor cellEditor)
この列のセルを編集するときに使用できるようにエディタを設定します。 |
| TableCellEditor 型のパラメータを持つ javax.swing.table のコンストラクタ | |
|---|---|
TableColumn(int modelIndex,
int width,
TableCellRenderer cellRenderer,
TableCellEditor cellEditor)
TableColumn のインスタンスを modelIndex で生成および初期化します。 |
|
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前 次 | フレームあり フレームなし | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。