|
JavaTM 2 Platform Std. Ed. v1.4.0 |
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.Object
|
+--javax.swing.AbstractCellEditor
|
+--javax.swing.DefaultCellEditor
テーブルとツリーセルのデフォルトエディタです。
警告:
このクラスの直列化オブジェクトは今後リリースされる Swing との互換性はありません。現在サポートされている直列化は、短期間の保管、または同じバージョンの Swing が稼働しているアプリケーション間の RMI に適しています。1.4 からは、すべての JavaBeansTM の長期間の保管が java.beans パッケージで追加サポートされています。XMLEncoder を参照してください。
| 入れ子クラスの概要 | |
protected class |
DefaultCellEditor.EditorDelegate
protected EditorDelegate クラスです。 |
| フィールドの概要 | |
protected int |
clickCountToStart
編集開始に必要なクリック数を指定する整数です。 |
protected DefaultCellEditor.EditorDelegate |
delegate
CellEditor から送信されるすべてのメソッドを処理する委譲クラスです。 |
protected JComponent |
editorComponent
編集中の Swing コンポーネントです。 |
| クラス javax.swing.AbstractCellEditor から継承したフィールド |
changeEvent, listenerList |
| コンストラクタの概要 | |
DefaultCellEditor(JCheckBox checkBox)
チェックボックスを使う DefaultCellEditor オブジェクトを構築します。 |
|
DefaultCellEditor(JComboBox comboBox)
コンボボックスを使う DefaultCellEditor オブジェクトを構築します。 |
|
DefaultCellEditor(JTextField textField)
テキストフィールドを使う DefaultCellEditor を構築します。 |
|
| メソッドの概要 | |
void |
cancelCellEditing()
CellEditor からのメッセージを delegate に転送します。 |
Object |
getCellEditorValue()
CellEditor からのメッセージを delegate に転送します。 |
int |
getClickCountToStart()
編集を開始するために必要なクリック数を返します。 |
Component |
getComponent()
エディタコンポーネントへの参照を返します。 |
Component |
getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
TableCellEditor インタフェースを実装します。 |
Component |
getTreeCellEditorComponent(JTree tree,
Object value,
boolean isSelected,
boolean expanded,
boolean leaf,
int row)
TreeCellEditor インタフェースを実装します。 |
boolean |
isCellEditable(EventObject anEvent)
CellEditor からのメッセージを delegate に転送します。 |
void |
setClickCountToStart(int count)
編集を開始するために必要なクリック数を指定します。 |
boolean |
shouldSelectCell(EventObject anEvent)
CellEditor からのメッセージを delegate に転送します。 |
boolean |
stopCellEditing()
CellEditor からのメッセージを delegate に転送します。 |
| クラス javax.swing.AbstractCellEditor から継承したメソッド |
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| インタフェース javax.swing.CellEditor から継承したメソッド |
addCellEditorListener, removeCellEditorListener |
| フィールドの詳細 |
protected JComponent editorComponent
protected DefaultCellEditor.EditorDelegate delegate
CellEditor から送信されるすべてのメソッドを処理する委譲クラスです。
protected int clickCountToStart
clickCountToStart がゼロとして定義されている場合でも、クリックが発生するまでは編集は開始されません。
| コンストラクタの詳細 |
public DefaultCellEditor(JTextField textField)
DefaultCellEditor を構築します。
public DefaultCellEditor(JCheckBox checkBox)
DefaultCellEditor オブジェクトを構築します。
public DefaultCellEditor(JComboBox comboBox)
DefaultCellEditor オブジェクトを構築します。
| メソッドの詳細 |
public Component getComponent()
Componentpublic void setClickCountToStart(int count)
count - 編集を開始するために必要なクリック数を指定する整数値getClickCountToStart()public int getClickCountToStart()
public Object getCellEditorValue()
CellEditor からのメッセージを delegate に転送します。
CellEditor 内の getCellEditorValueDefaultCellEditor.EditorDelegate.getCellEditorValue()public boolean isCellEditable(EventObject anEvent)
CellEditor からのメッセージを delegate に転送します。
CellEditor 内の isCellEditableAbstractCellEditor 内の isCellEditableanEvent - エディタが編集を始めるかどうかを検討するのに使うイベント
DefaultCellEditor.EditorDelegate.isCellEditable(EventObject)public boolean shouldSelectCell(EventObject anEvent)
CellEditor からのメッセージを delegate に転送します。
CellEditor 内の shouldSelectCellAbstractCellEditor 内の shouldSelectCellanEvent - エディタが編集を始めるために使うイベント
DefaultCellEditor.EditorDelegate.shouldSelectCell(EventObject)public boolean stopCellEditing()
CellEditor からのメッセージを delegate に転送します。
CellEditor 内の stopCellEditingAbstractCellEditor 内の stopCellEditingDefaultCellEditor.EditorDelegate.stopCellEditing()public void cancelCellEditing()
CellEditor からのメッセージを delegate に転送します。
CellEditor 内の cancelCellEditingAbstractCellEditor 内の cancelCellEditingDefaultCellEditor.EditorDelegate.cancelCellEditing()
public Component getTreeCellEditorComponent(JTree tree,
Object value,
boolean isSelected,
boolean expanded,
boolean leaf,
int row)
TreeCellEditor インタフェースを実装します。
TreeCellEditor 内の getTreeCellEditorComponenttree - エディタに編集を要求している JTree。このパラメータは null も可value - 編集されるセル値isSelected - セルがレンダリングとなり選択部がハイライトされている場合は trueexpanded - ノードが展開されている場合は trueleaf - ノードが葉ノードの場合は truerow - 編集中のノードの行インデックス
public Component getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
TableCellEditor インタフェースを実装します。
TableCellEditor 内の getTableCellEditorComponenttable - エディタに編集を求める JTable。null も可value - 編集されるセルの値。値を解釈および描画する方法は、特定のエディタによって異なる。たとえば、値が文字列 true の場合、それは文字列として描画されるか、またはチェックされているチェックボックスとして描画される。null は有効な値isSelected - セルがハイライトで描画されている場合は truerow - 編集されるセルの行column - 編集されるセルの列
|
JavaTM 2 Platform Std. Ed. v1.4.0 |
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
Java、Java 2D、および JDBC は米国ならびにその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.