Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.objectstyle.cayenne.dataview
Class DOTableModel

    java.lang.Object
      javax.swing.table.AbstractTableModel
          org.objectstyle.cayenne.dataview.DOTableModel

All Implemented Interfaces:
  java.io.Serializable, java.util.EventListener, javax.swing.table.TableModel, DataObjectChangeListener

    public class DOTableModel

extends javax.swing.table.AbstractTableModel
implements DataObjectChangeListener

A Swing TableModel wrapping `DataObjectList`.

Since:
  1.1
See Also:
  Serialized Form

Field Summary

Fields inherited from class javax.swing.table.AbstractTableModel
`listenerList`

Constructor Summary
`DOTableModel()`

Method Summary
`void` | `dataChanged(DataObjectChangeEvent event)`
`java.lang.Class` | `getColumnClass(int columnIndex)`
`int` | `getColumnCount()`
`java.lang.String` | `getColumnName(int column)`
`DataObject` | `getDataObject(int rowIndex)`
`DataObjectList` | `getDataObjects()`
`ObjEntityViewField` | `getField(int columnIndex)`
`int` | `getRowCount()`
`java.lang.Object` | `getValueAt(int rowIndex, int columnIndex)`
`ObjEntityView` | `getView()`
`boolean` | `isCellEditable(int rowIndex, int columnIndex)`
`void` | `setDataObjects(DataObjectList dataObjects)`
`void` | `setValueAt(java.lang.Object value, int rowIndex, int columnIndex)`
`void` | `setView(ObjEntityView view)`
`void` | `updateModel()`

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

### DOTableModel

    public DOTableModel()

Method Detail

### getView

    public ObjEntityView getView()

### setView

    public void setView(ObjEntityView view)

### updateModel

    public void updateModel()

### getColumnCount

    public int getColumnCount()

  Specified by:
    `getColumnCount` in interface `javax.swing.table.TableModel`

### isCellEditable

    public boolean isCellEditable(int rowIndex,
                                  int columnIndex)

  Specified by:
    `isCellEditable` in interface `javax.swing.table.TableModel`
  Overrides:
    `isCellEditable` in class `javax.swing.table.AbstractTableModel`

### getColumnName

    public java.lang.String getColumnName(int column)

  Specified by:
    `getColumnName` in interface `javax.swing.table.TableModel`
  Overrides:
    `getColumnName` in class `javax.swing.table.AbstractTableModel`

### getColumnClass

    public java.lang.Class getColumnClass(int columnIndex)

  Specified by:
    `getColumnClass` in interface `javax.swing.table.TableModel`
  Overrides:
    `getColumnClass` in class `javax.swing.table.AbstractTableModel`

### getValueAt

    public java.lang.Object getValueAt(int rowIndex,
                                       int columnIndex)

  Specified by:
    `getValueAt` in interface `javax.swing.table.TableModel`

### getRowCount

    public int getRowCount()

  Specified by:
    `getRowCount` in interface `javax.swing.table.TableModel`

### setValueAt

    public void setValueAt(java.lang.Object value,
                           int rowIndex,
                           int columnIndex)

  Specified by:
    `setValueAt` in interface `javax.swing.table.TableModel`
  Overrides:
    `setValueAt` in class `javax.swing.table.AbstractTableModel`

### getDataObject

    public DataObject getDataObject(int rowIndex)

### getField

    public ObjEntityViewField getField(int columnIndex)

### getDataObjects

    public DataObjectList getDataObjects()

### setDataObjects

    public void setDataObjects(DataObjectList dataObjects)

### dataChanged

    public void dataChanged(DataObjectChangeEvent event)

  Specified by:
    `dataChanged` in interface `DataObjectChangeListener`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2006 ObjectStyle.org All Rights Reserved.