public abstract class AbstractCellEditor extends Object implements CellEditor, Serializable
CellEditors の基底クラスであり、getCellEditorValue() を除く CellEditor インタフェースのメソッドのデフォルトの実装を提供します。Swing のほかの抽象実装と同様に、リスナーのリストも管理します。
警告: このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の格納や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。1.4 以降、すべての JavaBeansTM 用の長期間の格納サポートが java.beans パッケージに追加されています。XMLEncoder を参照してください。
| 修飾子と型 | フィールドと説明 |
|---|---|
protected ChangeEvent |
changeEvent |
protected EventListenerList |
listenerList |
| コンストラクタと説明 |
|---|
AbstractCellEditor() |
| 修飾子と型 | メソッドと説明 |
|---|---|
void |
addCellEditorListener(CellEditorListener l)
リスナーリストに
CellEditorListener を追加します。 |
void |
cancelCellEditing()
fireEditingCanceled を呼び出します。 |
protected void |
fireEditingCanceled()
このイベントタイプの通知対象として登録されているすべてのリスナーに通知します。
|
protected void |
fireEditingStopped()
このイベントタイプの通知対象として登録されているすべてのリスナーに通知します。
|
CellEditorListener[] |
getCellEditorListeners()
addCellEditorListener() でこの AbstractCellEditor に追加されたすべての
CellEditorListener の配列を返します。 |
boolean |
isCellEditable(EventObject e)
true を返します。
|
void |
removeCellEditorListener(CellEditorListener l)
CellEditorListener をリスナーリストから削除します。 |
boolean |
shouldSelectCell(EventObject anEvent)
true を返します。
|
boolean |
stopCellEditing()
fireEditingStopped を呼び出して、true を返します。 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCellEditorValueprotected EventListenerList listenerList
protected transient ChangeEvent changeEvent
public boolean isCellEditable(EventObject e)
isCellEditable、インタフェース: CellEditore - イベントオブジェクトCellEditor.shouldSelectCell(java.util.EventObject)public boolean shouldSelectCell(EventObject anEvent)
shouldSelectCell、インタフェース: CellEditoranEvent - イベントオブジェクトCellEditor.isCellEditable(java.util.EventObject)public boolean stopCellEditing()
fireEditingStopped を呼び出して、true を返します。stopCellEditing、インタフェース: CellEditorpublic void cancelCellEditing()
fireEditingCanceled を呼び出します。cancelCellEditing、インタフェース: CellEditorpublic void addCellEditorListener(CellEditorListener l)
CellEditorListener を追加します。addCellEditorListener、インタフェース: CellEditorl - 追加される新しいリスナーpublic void removeCellEditorListener(CellEditorListener l)
CellEditorListener をリスナーリストから削除します。removeCellEditorListener、インタフェース: CellEditorl - 削除されるリスナーpublic CellEditorListener[] getCellEditorListeners()
CellEditorListener の配列を返します。CellEditorListener。リスナーが追加されていない場合は空の配列protected void fireEditingStopped()
EventListenerListprotected void fireEditingCanceled()
EventListenerList バグまたは機能を送信
詳細な API リファレンスおよび開発者ドキュメントについては、Java SE のドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.