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 class` | `DefaultTableModel.MyTableColumnModel` | Deprecated.

  - ### 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
    --- | --- | ---
    `DefaultTableColumn` | `addClosureColumn​(Object headerValue, Closure readClosure, Closure writeClosure, Class type)` | Deprecated. Adds a closure based column to the table
    `void` | `addColumn​(DefaultTableColumn column)` | Deprecated. Adds a new column definition to the table
    `DefaultTableColumn` | `addColumn​(Object headerValue, ValueModel columnValueModel)` | Deprecated.
    `DefaultTableColumn` | `addColumn​(Object headerValue, Object identifier, ValueModel columnValueModel)` | Deprecated.
    `DefaultTableColumn` | `addPropertyColumn​(Object headerValue, String property, Class type)` | Deprecated. Adds a property model column to the table
    `DefaultTableColumn` | `addPropertyColumn​(Object headerValue, String property, Class type, boolean editable)` | Deprecated. Adds a property model column to the table
    `Class` | `getColumnClass​(int columnIndex)` | Deprecated.
    `int` | `getColumnCount()` | Deprecated.
    `List` | `getColumnList()` | Deprecated.
    `TableColumnModel` | `getColumnModel()` | Deprecated.
    `protected ValueModel` | `getColumnModel​(int columnIndex)` | Deprecated.
    `String` | `getColumnName​(int columnIndex)` | Deprecated.
    `int` | `getRowCount()` | Deprecated.
    `ValueModel` | `getRowModel()` | Deprecated.
    `protected List` | `getRows()` | Deprecated.
    `ValueModel` | `getRowsModel()` | Deprecated.
    `Object` | `getValueAt​(int rowIndex, int columnIndex)` | Deprecated.
    `boolean` | `isCellEditable​(int rowIndex, int columnIndex)` | Deprecated.
    `void` | `removeColumn​(DefaultTableColumn column)` | Deprecated. Removes a column definition from the table
    `void` | `setValueAt​(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`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 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:
        `getColumnName` in interface `TableModel`
      Overrides:
        `getColumnName` in class `AbstractTableModel`

    - #### getColumnClass

          public Class getColumnClass​(int columnIndex)

      Deprecated.
      Specified by:
        `getColumnClass` in interface `TableModel`
      Overrides:
        `getColumnClass` in class `AbstractTableModel`

    - #### isCellEditable

          public boolean isCellEditable​(int rowIndex,
                                        int columnIndex)

      Deprecated.
      Specified by:
        `isCellEditable` in interface `TableModel`
      Overrides:
        `isCellEditable` in class `AbstractTableModel`

    - #### getValueAt

          public Object getValueAt​(int rowIndex,
                                   int columnIndex)

      Deprecated.

    - #### setValueAt

          public void setValueAt​(Object value,
                                 int rowIndex,
                                 int columnIndex)

      Deprecated.
      Specified by:
        `setValueAt` in interface `TableModel`
      Overrides:
        `setValueAt` in class `AbstractTableModel`

    - #### getColumnModel

          protected ValueModel getColumnModel​(int columnIndex)

      Deprecated.

    - #### getRows

          protected List getRows()

      Deprecated.

    - #### getRowModel

          public ValueModel getRowModel()

      Deprecated.

    - #### getRowsModel

          public ValueModel getRowsModel()

      Deprecated.