Methods Summary |
---|
public void | addRow(java.util.Vector data)
if (model instanceof DefaultTableModel) {
((DefaultTableModel) model).addRow(data);
} else if (model instanceof AbstractFilterModel) {
((AbstractFilterModel) model).addRow(data);
} else {
throw (new IllegalStateException("Error attempting to add a row to an underlying model that is not a DefaultTableModel."));
}
|
public java.lang.Class | getColumnClass(int par1)
return model.getColumnClass(par1);
|
public int | getColumnCount()
return model.getColumnCount();
|
public java.lang.String | getColumnName(int par1)
return model.getColumnName(par1);
|
public javax.swing.table.TableModel | getModel()
return model;
|
public int | getRowCount()
return model.getRowCount();
|
public java.lang.Object | getValueAt(int par1, int par2)
return model.getValueAt(par1, par2);
|
public boolean | isCellEditable(int par1, int par2)
return model.isCellEditable(par1, par2);
|
public void | removeAllRows()
while (this.getRowCount() > 0) {
this.removeRow(0);
}
|
public void | removeRow(int rowNum)
if (model instanceof DefaultTableModel) {
((DefaultTableModel) model).removeRow(rowNum);
} else if (model instanceof AbstractFilterModel) {
((AbstractFilterModel) model).removeRow(rowNum);
} else {
throw (new IllegalStateException("Error attempting to remove a row from an underlying model that is not a DefaultTableModel."));
}
|
public void | setModel(javax.swing.table.TableModel model)
this.model = model;
this.fireTableDataChanged();
|
public void | setValueAt(java.lang.Object par1, int par2, int par3)
model.setValueAt(par1, par2, par3);
|