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, wait
getCellEditorValue
protected EventListenerList listenerList
protected transient ChangeEvent changeEvent
public boolean isCellEditable(EventObject e)
isCellEditable
、インタフェースCellEditor
e
- イベント・オブジェクトCellEditor.shouldSelectCell(java.util.EventObject)
public boolean shouldSelectCell(EventObject anEvent)
shouldSelectCell
、インタフェースCellEditor
anEvent
- イベント・オブジェクトCellEditor.isCellEditable(java.util.EventObject)
public boolean stopCellEditing()
fireEditingStopped
を呼び出して、trueを返します。stopCellEditing
、インタフェースCellEditor
public void cancelCellEditing()
fireEditingCanceled
を呼び出します。cancelCellEditing
、インタフェースCellEditor
public void addCellEditorListener(CellEditorListener l)
CellEditorListener
を追加します。addCellEditorListener
、インタフェースCellEditor
l
- 追加される新しいリスナーpublic void removeCellEditorListener(CellEditorListener l)
CellEditorListener
をリスナー・リストから削除します。removeCellEditorListener
、インタフェースCellEditor
l
- 削除されるリスナーpublic CellEditorListener[] getCellEditorListeners()
CellEditorListener
の配列を返します。CellEditorListener
。リスナーが追加されていない場合は空の配列protected void fireEditingStopped()
EventListenerList
protected 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も参照してください。