public class DefaultTableModel
extends javax.swing.table.AbstractTableModel
Modifier and Type | Class and Description |
---|---|
protected static class |
DefaultTableModel.MyTableColumnModel |
Constructor and Description |
---|
DefaultTableModel(ValueModel rowsModel) |
DefaultTableModel(ValueModel rowsModel,
ValueModel rowModel) |
Modifier and Type | Method and Description |
---|---|
DefaultTableColumn |
addClosureColumn(java.lang.Object headerValue,
Closure readClosure,
Closure writeClosure,
java.lang.Class type)
Adds a closure based column to the table
|
void |
addColumn(DefaultTableColumn column)
Adds a new column definition to the table
|
DefaultTableColumn |
addColumn(java.lang.Object headerValue,
java.lang.Object identifier,
ValueModel columnValueModel) |
DefaultTableColumn |
addColumn(java.lang.Object headerValue,
ValueModel columnValueModel) |
DefaultTableColumn |
addPropertyColumn(java.lang.Object headerValue,
java.lang.String property,
java.lang.Class type)
Adds a property model column to the table
|
DefaultTableColumn |
addPropertyColumn(java.lang.Object headerValue,
java.lang.String property,
java.lang.Class type,
boolean editable)
Adds a property model column to the table
|
java.lang.Class |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
java.util.List |
getColumnList() |
javax.swing.table.TableColumnModel |
getColumnModel() |
protected ValueModel |
getColumnModel(int columnIndex) |
java.lang.String |
getColumnName(int columnIndex) |
int |
getRowCount() |
ValueModel |
getRowModel() |
protected java.util.List |
getRows() |
ValueModel |
getRowsModel() |
java.lang.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(java.lang.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 java.util.List getColumnList()
public javax.swing.table.TableColumnModel getColumnModel()
public DefaultTableColumn addPropertyColumn(java.lang.Object headerValue, java.lang.String property, java.lang.Class type)
public DefaultTableColumn addPropertyColumn(java.lang.Object headerValue, java.lang.String property, java.lang.Class type, boolean editable)
public DefaultTableColumn addClosureColumn(java.lang.Object headerValue, Closure readClosure, Closure writeClosure, java.lang.Class type)
public DefaultTableColumn addColumn(java.lang.Object headerValue, ValueModel columnValueModel)
public DefaultTableColumn addColumn(java.lang.Object headerValue, java.lang.Object identifier, ValueModel columnValueModel)
public void addColumn(DefaultTableColumn column)
public void removeColumn(DefaultTableColumn column)
public int getRowCount()
public int getColumnCount()
public java.lang.String getColumnName(int columnIndex)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
public java.lang.Class getColumnClass(int columnIndex)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
public void setValueAt(java.lang.Object value, int rowIndex, int columnIndex)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
protected ValueModel getColumnModel(int columnIndex)
protected java.util.List getRows()
public ValueModel getRowModel()
public ValueModel getRowsModel()