public abstract class AbstractCellEditor extends Object implements CellEditor, Serializable
CellEditorsの基底クラスであり、getCellEditorValue()を除くCellEditorインタフェースのメソッドのデフォルトの実装を提供します。 Swingのほかの抽象実装と同様に、リスナーのリストも管理します。
警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。 現在の直列化のサポートは、短期間の格納や、同じバージョンのSwingを実行するアプリケーション間のRMIに適しています。 1.4以降、すべてのJavaBeans™用の長期間の格納サポートが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, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。