Package groovy.model
Class DefaultTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- groovy.model.DefaultTableModel
-
- All Implemented Interfaces:
Serializable,TableModel
@Deprecated public class DefaultTableModel extends AbstractTableModel
Deprecated.A default table model made up of PropertyModels on a Value model.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classDefaultTableModel.MyTableColumnModelDeprecated.
-
Field Summary
-
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description DefaultTableModel(ValueModel rowsModel)Deprecated.DefaultTableModel(ValueModel rowsModel, ValueModel rowModel)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DefaultTableColumnaddClosureColumn(Object headerValue, Closure readClosure, Closure writeClosure, Class type)Deprecated.Adds a closure based column to the tablevoidaddColumn(DefaultTableColumn column)Deprecated.Adds a new column definition to the tableDefaultTableColumnaddColumn(Object headerValue, ValueModel columnValueModel)Deprecated.DefaultTableColumnaddColumn(Object headerValue, Object identifier, ValueModel columnValueModel)Deprecated.DefaultTableColumnaddPropertyColumn(Object headerValue, String property, Class type)Deprecated.Adds a property model column to the tableDefaultTableColumnaddPropertyColumn(Object headerValue, String property, Class type, boolean editable)Deprecated.Adds a property model column to the tableClassgetColumnClass(int columnIndex)Deprecated.intgetColumnCount()Deprecated.ListgetColumnList()Deprecated.TableColumnModelgetColumnModel()Deprecated.protected ValueModelgetColumnModel(int columnIndex)Deprecated.StringgetColumnName(int columnIndex)Deprecated.intgetRowCount()Deprecated.ValueModelgetRowModel()Deprecated.protected ListgetRows()Deprecated.ValueModelgetRowsModel()Deprecated.ObjectgetValueAt(int rowIndex, int columnIndex)Deprecated.booleanisCellEditable(int rowIndex, int columnIndex)Deprecated.voidremoveColumn(DefaultTableColumn column)Deprecated.Removes a column definition from the tablevoidsetValueAt(Object value, int rowIndex, int columnIndex)Deprecated.-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Constructor Detail
-
DefaultTableModel
public DefaultTableModel(ValueModel rowsModel)
Deprecated.
-
DefaultTableModel
public DefaultTableModel(ValueModel rowsModel, ValueModel rowModel)
Deprecated.
-
-
Method Detail
-
getColumnList
public List getColumnList()
Deprecated.- Returns:
- the column definitions.
-
getColumnModel
public TableColumnModel getColumnModel()
Deprecated.
-
addPropertyColumn
public DefaultTableColumn addPropertyColumn(Object headerValue, String property, Class type)
Deprecated.Adds a property model column to the table
-
addPropertyColumn
public DefaultTableColumn addPropertyColumn(Object headerValue, String property, Class type, boolean editable)
Deprecated.Adds a property model column to the table
-
addClosureColumn
public DefaultTableColumn addClosureColumn(Object headerValue, Closure readClosure, Closure writeClosure, Class type)
Deprecated.Adds a closure based column to the table
-
addColumn
public DefaultTableColumn addColumn(Object headerValue, ValueModel columnValueModel)
Deprecated.
-
addColumn
public DefaultTableColumn addColumn(Object headerValue, Object identifier, ValueModel columnValueModel)
Deprecated.
-
addColumn
public void addColumn(DefaultTableColumn column)
Deprecated.Adds a new column definition to the table
-
removeColumn
public void removeColumn(DefaultTableColumn column)
Deprecated.Removes a column definition from the table
-
getRowCount
public int getRowCount()
Deprecated.
-
getColumnCount
public int getColumnCount()
Deprecated.
-
getColumnName
public String getColumnName(int columnIndex)
Deprecated.- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
getColumnClass
public Class getColumnClass(int columnIndex)
Deprecated.- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex)Deprecated.- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
getValueAt
public Object getValueAt(int rowIndex, int columnIndex)
Deprecated.
-
setValueAt
public void setValueAt(Object value, int rowIndex, int columnIndex)
Deprecated.- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-
getColumnModel
protected ValueModel getColumnModel(int columnIndex)
Deprecated.
-
getRows
protected List getRows()
Deprecated.
-
getRowModel
public ValueModel getRowModel()
Deprecated.
-
getRowsModel
public ValueModel getRowsModel()
Deprecated.
-
-