DESY ACOP Beans Home
com.cosylab.gui.components.table
Class TableModelRows
java.lang.Object
javax.swing.table.AbstractTableModel
com.cosylab.gui.components.table.TableModelRows
- All Implemented Interfaces:
- TableRowModelListener, java.io.Serializable, javax.swing.table.TableModel
- Direct Known Subclasses:
- MutableTableModelRows
public class TableModelRows
- extends javax.swing.table.AbstractTableModel
- implements TableRowModelListener
TableModelRows
is implementation of TableModel
,
which accepts data in form of TableRowModel
, which cvan be set
only as construction parameter.
- Since:
- May 3, 2004.
- Version:
- $Id: TableModelRows.java,v 1.6 2008-04-22 12:28:40 jbobnar Exp $
- Author:
- Igor Kriznar
- See Also:
- Serialized Form
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TableModelRows
public TableModelRows(TableRowModel model)
- Creates a new TableModelRows object.
- Parameters:
model
- the row mode, which is used as data source
TableModelRows
protected TableModelRows()
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interface javax.swing.table.TableModel
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in interface javax.swing.table.TableModel
getValueAt
public java.lang.Object getValueAt(int rowIndex,
int columnIndex)
- Specified by:
getValueAt
in interface javax.swing.table.TableModel
getRowModel
public TableRowModel getRowModel()
- Returns row model wrapped inside thia table model.
- Returns:
- the row model
tableChanged
public void tableChanged(TableRowModelEvent event)
- Description copied from interface:
TableRowModelListener
- Called when change occured in
TableRowModel
- Specified by:
tableChanged
in interface TableRowModelListener
- Parameters:
event
- an event with change information
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
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
Copyright © 2010. All Rights Reserved.