public abstract class AbstractCellEditor extends Object implements CellEditor, Serializable
CellEditors基类,在除了
getCellEditorValue()的
CellEditor接口的方法提供默认的实现。喜欢摆其他的抽象的实现,还管理一个列表的听众。
警告:序列化该类的对象与以后的Swing版本不兼容。当前的序列化支持适用于短期贮藏或RMI运行相同Swing版本的应用程序之间。为1.4,为所有JavaBeans™长期存储的支持已被添加到java.beans包。请看XMLEncoder。
| Modifier and Type | Field and Description |
|---|---|
protected ChangeEvent |
changeEvent |
protected EventListenerList |
listenerList |
| Constructor and Description |
|---|
AbstractCellEditor() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCellEditorListener(CellEditorListener l)
增加了一个
CellEditorListener的监听器列表。
|
void |
cancelCellEditing()
电话
fireEditingCanceled。
|
protected void |
fireEditingCanceled()
通知所有的听众,关于这一事件的类型通知已注册的兴趣。
|
protected void |
fireEditingStopped()
通知所有的听众,关于这一事件的类型通知已注册的兴趣。
|
CellEditorListener[] |
getCellEditorListeners()
返回所有的
CellEditorListeners数组添加到这个abstractcelleditor与addcelleditorlistener()。
|
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 接口
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()
CellEditorListeners数组添加到这个abstractcelleditor与addcelleditorlistener()。
CellEditorListeners说如果没有听众已添加一个空数组
protected void fireEditingStopped()
EventListenerList
protected void fireEditingCanceled()
EventListenerList
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.