org.jbudget.gui.month
Class TableColumnModel

java.lang.Object
  extended by javax.swing.table.DefaultTableColumnModel
      extended by org.jbudget.gui.month.TableColumnModel
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener, javax.swing.event.ListSelectionListener, javax.swing.table.TableColumnModel

public class TableColumnModel
extends javax.swing.table.DefaultTableColumnModel

Author:
petrov
See Also:
Serialized Form

Field Summary
(package private)  TableColumnSorter columnSorter
          Object used to sort the columns in the table.
 
Fields inherited from class javax.swing.table.DefaultTableColumnModel
changeEvent, columnMargin, columnSelectionAllowed, listenerList, selectionModel, tableColumns, totalColumnWidth
 
Constructor Summary
TableColumnModel()
          Default constructor.
TableColumnModel(TableColumnSorter columnSorter)
          Initializes the TableColumnModel with a given sorter object.
 
Method Summary
 void addColumn(javax.swing.table.TableColumn column)
          Adds a column.
 void setSorter(TableColumnSorter columnSorter)
          Change the sorter used by the TableColumnModel.
 
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

columnSorter

TableColumnSorter columnSorter
Object used to sort the columns in the table.

Constructor Detail

TableColumnModel

public TableColumnModel()
Default constructor. Initializes the TableColumnModel to use the DefaultTablesorter object to sort columns.


TableColumnModel

public TableColumnModel(TableColumnSorter columnSorter)
Initializes the TableColumnModel with a given sorter object.

Method Detail

setSorter

public void setSorter(TableColumnSorter columnSorter)
Change the sorter used by the TableColumnModel.


addColumn

public void addColumn(javax.swing.table.TableColumn column)
Adds a column.

Specified by:
addColumn in interface javax.swing.table.TableColumnModel
Overrides:
addColumn in class javax.swing.table.DefaultTableColumnModel