软件包 | 描述 |
---|---|
javax.swing |
提供了一套“轻量级”(所有的java语言)组件,以最大可能的程度,在所有平台上工作。
|
javax.swing.table |
处理
javax.swing.JTable 提供类和接口。
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultCellEditor
用于表和树单元格的默认编辑器。
|
Modifier and Type | Field and Description |
---|---|
protected TableCellEditor |
JTable.cellEditor
活动单元格的编辑对象,覆盖屏幕房地产当前单元格占据并允许用户更改其内容。
|
Modifier and Type | Method and Description |
---|---|
TableCellEditor |
JTable.getCellEditor()
活动单元格编辑器的回报,这是
null 如果表是目前编辑。
|
TableCellEditor |
JTable.getCellEditor(int row, int column)
通过
row 和
column 指定细胞适当的编辑器返回。
|
TableCellEditor |
JTable.getDefaultEditor(类<?> columnClass)
返回编辑器用于编辑时没有被设置在一个
TableColumn 。
|
Modifier and Type | Method and Description |
---|---|
Component |
JTable.prepareEditor(TableCellEditor editor, int row, int column)
准备编辑查询数据模型的价值和选择在
row 细胞状态,
column 。
|
void |
JTable.setCellEditor(TableCellEditor anEditor)
设置活动单元格编辑器。
|
void |
JTable.setDefaultEditor(类<?> columnClass, TableCellEditor editor)
设置一个默认的单元格编辑器是如果没有编辑已设定在一个
TableColumn 使用。
|
Modifier and Type | Field and Description |
---|---|
protected TableCellEditor |
TableColumn.cellEditor
用于编辑列的数据单元格的编辑器。
|
Modifier and Type | Method and Description |
---|---|
TableCellEditor |
TableColumn.getCellEditor()
返回由
JTable 用来编辑此列值的
TableCellEditor 。
|
Modifier and Type | Method and Description |
---|---|
void |
TableColumn.setCellEditor(TableCellEditor cellEditor)
设置编辑在该列中的单元格编辑时使用的编辑器。
|
Constructor and Description |
---|
TableColumn(int modelIndex, int width, TableCellRenderer cellRenderer, TableCellEditor cellEditor)
创建具有指定模型指标、宽度、初始化
TableColumn 实例细胞渲染,和单元格编辑器;所有
TableColumn 建设者代表这一。
|
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.