com.rubecula.spreadsheet
Class ColumnModel

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

public class ColumnModel
extends javax.swing.table.DefaultTableColumnModel

Column 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
ColumnModel()
           
 
Method Summary
 void addColumn(javax.swing.table.TableColumn column)
          Appends aColumn to the end of the tableColumns array.
 
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

ColumnModel

public ColumnModel()
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)