com.partnersoft.v3x.gui
Class LabelledListTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by com.partnersoft.v3x.gui.LabelledListTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class LabelledListTableModel
extends javax.swing.table.AbstractTableModel

Displays a list of items in the given order, with corresponding labels to the left. Labels can be set independently of the viewed list, but should always have the same length.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
LabelledListTableModel()
           
 
Method Summary
 int getColumnCount()
           
 java.lang.String getColumnName(int i)
           
 LabelledList getList()
           
 int getRowCount()
           
 java.lang.Object getValueAt(int row, int col)
           
 boolean isCellEditable(int rowIndex, int colIndex)
           
 void setList(LabelledList newList)
           
 
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
 

Constructor Detail

LabelledListTableModel

public LabelledListTableModel()
Method Detail

getColumnName

public java.lang.String getColumnName(int i)
Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel

getColumnCount

public int getColumnCount()

getRowCount

public int getRowCount()

getValueAt

public java.lang.Object getValueAt(int row,
                                   int col)

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int colIndex)
Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.AbstractTableModel

getList

public LabelledList getList()

setList

public void setList(LabelledList newList)