de.fesenmeyer.dbnormalizer.gui
Class FKInfoPanel.FKInfoTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by de.fesenmeyer.dbnormalizer.gui.FKInfoPanel.FKInfoTableModel
All Implemented Interfaces:
Serializable, TableModel
Enclosing class:
FKInfoPanel

public class FKInfoPanel.FKInfoTableModel
extends AbstractTableModel

See Also:
Serialized Form

Field Summary
private  String[] columnNames
           
private  List<FK> fks
           
private  TableContainer tableContainer
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
FKInfoPanel.FKInfoTableModel()
           
 
Method Summary
private  String createCustomTableName(String tableName, String catalog, String schema)
           
 int getColumnCount()
           
 String getColumnName(int column)
           
 List<FK> getFks()
           
 int getRowCount()
           
 Object getValueAt(int rowIndex, int colIndex)
           
 boolean isCellEditable(int rowIndex, int columnIndex)
           
 void setFks(List<FK> fks, TableContainer tableContainer)
           
 
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
 

Field Detail

fks

private List<FK> fks

columnNames

private String[] columnNames

tableContainer

private TableContainer tableContainer
Constructor Detail

FKInfoPanel.FKInfoTableModel

public FKInfoPanel.FKInfoTableModel()
Method Detail

getColumnCount

public int getColumnCount()

getColumnName

public String getColumnName(int column)
Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel

getRowCount

public int getRowCount()

getValueAt

public Object getValueAt(int rowIndex,
                         int colIndex)

isCellEditable

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

getFks

public List<FK> getFks()

setFks

public void setFks(List<FK> fks,
                   TableContainer tableContainer)

createCustomTableName

private String createCustomTableName(String tableName,
                                     String catalog,
                                     String schema)