public interface TreeCellEditor extends CellEditor
JTree
Modifier and Type | Method and Description |
---|---|
Component |
getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
设置编辑器的初始
值 。
|
addCellEditorListener, cancelCellEditing, getCellEditorValue, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
返回应添加到客户端的组件层次结构中的组件。 一旦安装在客户层次结构中,该组件就可以绘制和接收用户输入。
tree
- 要求编辑编辑的JTree;
此参数可以为null
value
- 要编辑的单元格的值
isSelected
- 如果要使用选择突出显示单元格,则为true
expanded
- 如果节点被扩展,则为true
leaf
- 如果节点是叶节点,则为true
row
- 正在编辑的节点的行索引
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.