public class EmbeddedTableModel
extends javax.swing.table.AbstractTableModel
构造器和说明 |
---|
EmbeddedTableModel(EmbeddedTableData editableTableData) |
限定符和类型 | 方法和说明 |
---|---|
void |
addColumn(java.lang.String columnName,
java.lang.Class columnClass)
Add column.
|
void |
addNewRowData(int index) |
void |
clear() |
java.lang.Class |
getColumnClass(int column) |
int |
getColumnCount() |
java.lang.String |
getColumnName(int column) |
EmbeddedTableData |
getEditableTableData() |
int |
getRowCount() |
java.lang.Object |
getValueAt(int row,
int column) |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Returns false.
|
void |
removeRow(int rowIndex) |
void |
setEditableTableData(EmbeddedTableData editableTableData) |
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
This empty implementation is provided so users don't have to implement
this method if their data model is not editable.
|
public EmbeddedTableModel(EmbeddedTableData editableTableData)
public EmbeddedTableData getEditableTableData()
public void setEditableTableData(EmbeddedTableData editableTableData)
public java.lang.String getColumnName(int column)
getColumnName
在接口中 javax.swing.table.TableModel
getColumnName
在类中 javax.swing.table.AbstractTableModel
public java.lang.Class getColumnClass(int column)
getColumnClass
在接口中 javax.swing.table.TableModel
getColumnClass
在类中 javax.swing.table.AbstractTableModel
public int getRowCount()
public int getColumnCount()
public java.lang.Object getValueAt(int row, int column)
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
在接口中 javax.swing.table.TableModel
isCellEditable
在类中 javax.swing.table.AbstractTableModel
rowIndex
- the row being queriedcolumnIndex
- the column being queriedpublic void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
setValueAt
在接口中 javax.swing.table.TableModel
setValueAt
在类中 javax.swing.table.AbstractTableModel
aValue
- value to assign to cellrowIndex
- row of cellcolumnIndex
- column of cellpublic void addColumn(java.lang.String columnName, java.lang.Class columnClass)
columnName
- column namecolumnClass
- column classpublic void addNewRowData(int index)
public void removeRow(int rowIndex)
public void clear()