net.sourceforge.argval.manifestinfo.swing
Class ManifestInfoTableModel

java.lang.Object
  extended by net.sourceforge.argval.manifestinfo.swing.ManifestInfoTableModel
All Implemented Interfaces:
TableModel

public class ManifestInfoTableModel
extends Object
implements TableModel

Models the ManifestInfo entries of the ManifestInfoManager as a Swing TableModel.

Author:
T. Verhagen

Field Summary
 String[] columnNames
          The TableModel column names.
 
Constructor Summary
ManifestInfoTableModel(ManifestInfoManager manifestInfoManager)
           
 
Method Summary
 void addTableModelListener(TableModelListener tml)
           
 Class<?> getColumnClass(int columnIndex)
           
 int getColumnCount()
           
 String getColumnName(int columnIndex)
           
 int getRowCount()
           
 Object getValueAt(int rowIndex, int columnIndex)
           
 boolean isCellEditable(int rowIndex, int columnIndex)
           
 void removeTableModelListener(TableModelListener tml)
           
 void setValueAt(Object value, int rowIndex, int columnIndex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

columnNames

public final String[] columnNames
The TableModel column names.

Constructor Detail

ManifestInfoTableModel

public ManifestInfoTableModel(ManifestInfoManager manifestInfoManager)
Method Detail

getColumnClass

public Class<?> getColumnClass(int columnIndex)
Specified by:
getColumnClass in interface TableModel

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface TableModel

getColumnName

public String getColumnName(int columnIndex)
Specified by:
getColumnName in interface TableModel

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface TableModel

getValueAt

public Object getValueAt(int rowIndex,
                         int columnIndex)
Specified by:
getValueAt in interface TableModel

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int columnIndex)
Specified by:
isCellEditable in interface TableModel

setValueAt

public void setValueAt(Object value,
                       int rowIndex,
                       int columnIndex)
Specified by:
setValueAt in interface TableModel

addTableModelListener

public void addTableModelListener(TableModelListener tml)
Specified by:
addTableModelListener in interface TableModel

removeTableModelListener

public void removeTableModelListener(TableModelListener tml)
Specified by:
removeTableModelListener in interface TableModel


Copyright © 2013 Verhagen Software. All Rights Reserved.