com.rubecula.spreadsheet
Class RowModel

java.lang.Object
  |
  +--javax.swing.table.DefaultTableColumnModel
        |
        +--com.rubecula.spreadsheet.RowModel
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.ListSelectionListener, java.beans.PropertyChangeListener, java.io.Serializable, javax.swing.table.TableColumnModel

public class RowModel
extends javax.swing.table.DefaultTableColumnModel

Row Model class for the Spreadsheet Application. It extends DefaultTableColumnModel by requiring that columns are of the class Column.

Version:
$Revision: 1.2 $
Author:
Robin Hillyard
See Also:
Serialized Form

Field Summary
(package private)  boolean _First
           
 
Fields inherited from class javax.swing.table.DefaultTableColumnModel
changeEvent, columnMargin, columnSelectionAllowed, listenerList, selectionModel, tableColumns, totalColumnWidth
 
Constructor Summary
RowModel()
          Primary constructor.
 
Method Summary
 void addColumn(javax.swing.table.TableColumn column)
          Appends aColumn to the end of the tableColumns array.
 void addRow()
          Add a new row to this RowModel by adding a new attribute map.
 AttrMap getAttributes(int row)
           
 
Methods inherited from class javax.swing.table.DefaultTableColumnModel
addColumnModelListener, createSelectionModel, fireColumnAdded, fireColumnMarginChanged, fireColumnMoved, fireColumnRemoved, fireColumnSelectionChanged, getColumn, getColumnCount, getColumnIndex, getColumnIndexAtX, getColumnMargin, getColumnModelListeners, getColumns, getColumnSelectionAllowed, getListeners, getSelectedColumnCount, getSelectedColumns, getSelectionModel, getTotalColumnWidth, moveColumn, propertyChange, recalcWidthCache, removeColumn, removeColumnModelListener, setColumnMargin, setColumnSelectionAllowed, setSelectionModel, valueChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_First

boolean _First
Constructor Detail

RowModel

public RowModel()
Primary constructor.

Method Detail

addColumn

public void addColumn(javax.swing.table.TableColumn column)
Appends aColumn to the end of the tableColumns array. This method also posts the columnAdded event to its listeners.

Specified by:
addColumn in interface javax.swing.table.TableColumnModel
Overrides:
addColumn in class javax.swing.table.DefaultTableColumnModel
Parameters:
column - the TableColumn to be added
Throws:
java.lang.IllegalArgumentException - if aColumn is null
See Also:
DefaultTableColumnModel.removeColumn(javax.swing.table.TableColumn)

addRow

public void addRow()
Add a new row to this RowModel by adding a new attribute map.


getAttributes

public AttrMap getAttributes(int row)