public abstract class AbstractCellEditor extends Object implements CellEditor, Serializable
CellEditors的基类,为CellEditor接口除getCellEditorValue()之外的方法提供默认getCellEditorValue() 。 
       像Swing中的其他抽象实现一样,还管理一个监听器列表。 
        警告:此类的序列化对象与将来的Swing版本不兼容。 当前的序列化支持适用于运行相同版本的Swing的应用程序之间的短期存储或RMI。 从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()
              返回使用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在界面 
            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 s或没有添加侦听器的空数组 
           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.