public class DefaultCellEditor extends AbstractCellEditor implements TableCellEditor, TreeCellEditor
警告: このクラスの直列化されたオブジェクトは、今後の 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 コンポーネントです。
|
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 に転送します。 |
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCellEditorListener, removeCellEditorListenerprotected JComponent editorComponent
protected DefaultCellEditor.EditorDelegate delegate
CellEditor から送信されるすべてのメソッドを処理する委譲クラスです。protected int clickCountToStart
clickCountToStart がゼロとして定義されている場合でも、クリックが発生するまでは開始されません。@ConstructorProperties(value="component") public DefaultCellEditor(JTextField textField)
DefaultCellEditor を構築します。textField - JTextField オブジェクトpublic DefaultCellEditor(JCheckBox checkBox)
DefaultCellEditor オブジェクトを構築します。checkBox - JCheckBox オブジェクトpublic DefaultCellEditor(JComboBox comboBox)
DefaultCellEditor オブジェクトを構築します。comboBox - JComboBox オブジェクトpublic Component getComponent()
Componentpublic void setClickCountToStart(int count)
count - 編集を開始するために必要なクリック数を指定する整数値getClickCountToStart()public int getClickCountToStart()
public Object getCellEditorValue()
CellEditor からのメッセージを delegate に転送します。getCellEditorValue、インタフェース: CellEditorDefaultCellEditor.EditorDelegate.getCellEditorValue()public boolean isCellEditable(EventObject anEvent)
CellEditor からのメッセージを delegate に転送します。isCellEditable、インタフェース: CellEditorisCellEditable、クラス: AbstractCellEditoranEvent - イベントオブジェクトDefaultCellEditor.EditorDelegate.isCellEditable(EventObject)public boolean shouldSelectCell(EventObject anEvent)
CellEditor からのメッセージを delegate に転送します。shouldSelectCell、インタフェース: CellEditorshouldSelectCell、クラス: AbstractCellEditoranEvent - イベントオブジェクトDefaultCellEditor.EditorDelegate.shouldSelectCell(EventObject)public boolean stopCellEditing()
CellEditor からのメッセージを delegate に転送します。stopCellEditing、インタフェース: CellEditorstopCellEditing、クラス: AbstractCellEditorDefaultCellEditor.EditorDelegate.stopCellEditing()public void cancelCellEditing()
CellEditor からのメッセージを delegate に転送します。cancelCellEditing、インタフェース: CellEditorcancelCellEditing、クラス: AbstractCellEditorDefaultCellEditor.EditorDelegate.cancelCellEditing()public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
TreeCellEditor インタフェースを実装します。getTreeCellEditorComponent、インタフェース: TreeCellEditortree - エディタに編集を要求している JTree。このパラメータは null も可value - 編集されるセル値isSelected - セルをハイライトで描画する場合は trueexpanded - ノードが展開されている場合は trueleaf - ノードが葉ノードの場合は truerow - 編集中のノードの行インデックスpublic Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
TableCellEditor インタフェースを実装します。getTableCellEditorComponent、インタフェース: TableCellEditortable - エディタに編集を要求している JTable。null も可value - 編集されるセル値。値を解釈および描画する方法はエディタによって異なる。たとえば、値が文字列「true」の場合は、文字列として描画されるか、チェックされたチェックボックスとして描画される。null も有効な値isSelected - セルがハイライトで描画されている場合は truerow - 編集されるセルの行column - 編集されるセルの列 バグまたは機能を送信
詳細な API リファレンスおよび開発者ドキュメントについては、Java SE のドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.