net.sourceforge.argval.packageinfo.swing
Class PackageInfoTableModel

java.lang.Object
  extended by net.sourceforge.argval.packageinfo.swing.PackageInfoTableModel
All Implemented Interfaces:
TableModel

public final class PackageInfoTableModel
extends Object
implements TableModel

Models the PackageInfo entries of the PackageInfoManagerImpl as a Swing TableModel.

Author:
T. Verhagen

Field Summary
 String[] columnNames
          The TableModel column names.
 
Constructor Summary
PackageInfoTableModel(PackageInfoManager manager)
           
 
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

PackageInfoTableModel

public PackageInfoTableModel(PackageInfoManager manager)
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.