站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JavaTM 2 Platform Standard Edition 6.0 API 规范中文版

接口 javax.swing.event.CellEditorListener 的使用 (Java Platform SE 6) - JavaTM 2 Platform Standard Edition 6.0 API 规范中文版


JavaTM Platform
Standard Ed. 6

接口 javax.swing.event.CellEditorListener
的使用

使用 CellEditorListener 的软件包
javax.swing 提供一组“轻量级”(全部是 Java 语言)组件,尽量让这些组件在所有平台上的工作方式都相同。 
javax.swing.plaf.basic 提供了根据基本外观构建的用户界面对象。 
javax.swing.tree 提供处理 javax.swing.JTree 的类和接口。 
 

javax.swing 中 CellEditorListener 的使用
 

实现 CellEditorListener 的 javax.swing 中的类
 class JTable
          JTable 用来显示和编辑常规二维单元表。
protected  class JTable.AccessibleJTable
          此类实现对 JTable 类的可访问性支持。
 

返回 CellEditorListener 的 javax.swing 中的方法
 CellEditorListener[] AbstractCellEditor.getCellEditorListeners()
          返回使用 addCellEditorListener() 添加到此 AbstractCellEditor 中的所有 CellEditorListener 组成的数组。
 

参数类型为 CellEditorListener 的 javax.swing 中的方法
 void AbstractCellEditor.addCellEditorListener(CellEditorListener l)
          将一个 CellEditorListener 添加到侦听器列表中。
 void CellEditor.addCellEditorListener(CellEditorListener l)
          当编辑器停止运作或取消编辑时,向被通知的列表添加一个侦听器。
 void AbstractCellEditor.removeCellEditorListener(CellEditorListener l)
          从侦听器列表中移除一个 CellEditorListener。
 void CellEditor.removeCellEditorListener(CellEditorListener l)
          从被通知的列表中移除一个侦听器
 

javax.swing.plaf.basic 中 CellEditorListener 的使用
 

实现 CellEditorListener 的 javax.swing.plaf.basic 中的类
 class BasicTreeUI.CellEditorHandler
          侦听器负责获取单元格编辑事件并相应地更新树。
 

返回 CellEditorListener 的 javax.swing.plaf.basic 中的方法
protected  CellEditorListener BasicTreeUI.createCellEditorListener()
          创建在当前编辑器中处理事件的侦听器。
 

javax.swing.tree 中 CellEditorListener 的使用
 

返回 CellEditorListener 的 javax.swing.tree 中的方法
 CellEditorListener[] DefaultTreeCellEditor.getCellEditorListeners()
          返回使用 addCellEditorListener() 添加到此 DefaultTreeCellEditor 中的所有 CellEditorListener 组成的数组。
 

参数类型为 CellEditorListener 的 javax.swing.tree 中的方法
 void DefaultTreeCellEditor.addCellEditorListener(CellEditorListener l)
          添加 CellEditorListener。
 void DefaultTreeCellEditor.removeCellEditorListener(CellEditorListener l)
          移除以前添加的 CellEditorListener。
 


JavaTM Platform
Standard Ed. 6

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。