com.vividsolutions.jump.workbench.ui
Class ColumnBasedTableModel

java.lang.Object
  extended by com.vividsolutions.jump.workbench.ui.ColumnBasedTableModel
All Implemented Interfaces:
javax.swing.table.TableModel
Direct Known Subclasses:
ColorThemingTableModel, LayerTableModel, SchemaTableModel

public abstract class ColumnBasedTableModel
extends java.lang.Object
implements javax.swing.table.TableModel

Provides a column based TableModel.


Nested Class Summary
 class ColumnBasedTableModel.Column
           
 
Constructor Summary
ColumnBasedTableModel()
           
 
Method Summary
 void addTableModelListener(javax.swing.event.TableModelListener l)
           
 java.lang.Class getColumnClass(int columnIndex)
           
 int getColumnCount()
           
 java.lang.String getColumnName(int columnIndex)
           
 java.lang.Object getValueAt(int rowIndex, int columnIndex)
           
 int indexOfColumn(java.lang.String name)
           
 void removeTableModelListener(javax.swing.event.TableModelListener l)
           
 void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.table.TableModel
getRowCount, isCellEditable
 

Constructor Detail

ColumnBasedTableModel

public ColumnBasedTableModel()
Method Detail

addTableModelListener

public void addTableModelListener(javax.swing.event.TableModelListener l)
Specified by:
addTableModelListener in interface javax.swing.table.TableModel

removeTableModelListener

public void removeTableModelListener(javax.swing.event.TableModelListener l)
Specified by:
removeTableModelListener in interface javax.swing.table.TableModel

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface javax.swing.table.TableModel

getColumnName

public java.lang.String getColumnName(int columnIndex)
Specified by:
getColumnName in interface javax.swing.table.TableModel

indexOfColumn

public int indexOfColumn(java.lang.String name)

getColumnClass

public java.lang.Class getColumnClass(int columnIndex)
Specified by:
getColumnClass 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

setValueAt

public void setValueAt(java.lang.Object aValue,
                       int rowIndex,
                       int columnIndex)
Specified by:
setValueAt in interface javax.swing.table.TableModel