public class DefaultTableModel extends AbstractTableModel
Modifier and Type | Class and Description |
---|---|
protected static class |
DefaultTableModel.MyTableColumnModel |
listenerList
Constructor and Description |
---|
DefaultTableModel(ValueModel rowsModel) |
DefaultTableModel(ValueModel rowsModel,
ValueModel rowModel) |
Modifier and Type | Method and Description |
---|---|
DefaultTableColumn |
addClosureColumn(Object headerValue,
Closure readClosure,
Closure writeClosure,
Class type)
Adds a closure based column to the table
|
void |
addColumn(DefaultTableColumn column)
Adds a new column definition to the table
|
DefaultTableColumn |
addColumn(Object headerValue,
Object identifier,
ValueModel columnValueModel) |
DefaultTableColumn |
addColumn(Object headerValue,
ValueModel columnValueModel) |
DefaultTableColumn |
addPropertyColumn(Object headerValue,
String property,
Class type)
Adds a property model column to the table
|
DefaultTableColumn |
addPropertyColumn(Object headerValue,
String property,
Class type,
boolean editable)
Adds a property model column to the table
|
Class |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
List |
getColumnList() |
TableColumnModel |
getColumnModel() |
protected ValueModel |
getColumnModel(int columnIndex) |
String |
getColumnName(int columnIndex) |
int |
getRowCount() |
ValueModel |
getRowModel() |
protected List |
getRows() |
ValueModel |
getRowsModel() |
Object |
getValueAt(int rowIndex,
int columnIndex) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
void |
removeColumn(DefaultTableColumn column)
Removes a column definition from the table
|
void |
setValueAt(Object value,
int rowIndex,
int columnIndex) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
public DefaultTableModel(ValueModel rowsModel)
public DefaultTableModel(ValueModel rowsModel, ValueModel rowModel)
public List getColumnList()
public TableColumnModel getColumnModel()
public DefaultTableColumn addPropertyColumn(Object headerValue, String property, Class type)
public DefaultTableColumn addPropertyColumn(Object headerValue, String property, Class type, boolean editable)
public DefaultTableColumn addClosureColumn(Object headerValue, Closure readClosure, Closure writeClosure, Class type)
public DefaultTableColumn addColumn(Object headerValue, ValueModel columnValueModel)
public DefaultTableColumn addColumn(Object headerValue, Object identifier, ValueModel columnValueModel)
public void addColumn(DefaultTableColumn column)
public void removeColumn(DefaultTableColumn column)
public int getRowCount()
public int getColumnCount()
public String getColumnName(int columnIndex)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public Class getColumnClass(int columnIndex)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
public Object getValueAt(int rowIndex, int columnIndex)
public void setValueAt(Object value, int rowIndex, int columnIndex)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
protected ValueModel getColumnModel(int columnIndex)
protected List getRows()
public ValueModel getRowModel()
public ValueModel getRowsModel()