de.fesenmeyer.dbnormalizer.gui
Class FDModificationPanel.FDModTableModel

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

private final class FDModificationPanel.FDModTableModel
extends AbstractTableModel


Field Summary
static int CHECK_INDEX
           
static int CHECK_INFO_INDEX
           
(package private)  List<FD> fdList
           
static int LHS_INDEX
           
static int RHS_INDEX
           
(package private)  Table table
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
FDModificationPanel.FDModTableModel()
           
FDModificationPanel.FDModTableModel(Table table)
           
 
Method Summary
 void acceptFDs()
          saves the FDs from the table to the internal table representation
 int getColumnCount()
           
 String getColumnName(int column)
           
 List<FD> getFdList()
           
 int getRowCount()
           
 Table getTable()
           
 Object getValueAt(int rowIndex, int colIndex)
           
 boolean isCellEditable(int rowIndex, int columnIndex)
           
 void refreshTable()
           
 void setTable(Table table)
           
 void setValueAt(Object aValue, int rowIndex, int columnIndex)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LHS_INDEX

public static final int LHS_INDEX
See Also:
Constant Field Values

RHS_INDEX

public static final int RHS_INDEX
See Also:
Constant Field Values

CHECK_INDEX

public static final int CHECK_INDEX
See Also:
Constant Field Values

CHECK_INFO_INDEX

public static final int CHECK_INFO_INDEX
See Also:
Constant Field Values

table

Table table

fdList

List<FD> fdList
Constructor Detail

FDModificationPanel.FDModTableModel

public FDModificationPanel.FDModTableModel()

FDModificationPanel.FDModTableModel

public FDModificationPanel.FDModTableModel(Table table)
Method Detail

getColumnCount

public int getColumnCount()

getRowCount

public int getRowCount()

isCellEditable

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

getValueAt

public Object getValueAt(int rowIndex,
                         int colIndex)

setValueAt

public void setValueAt(Object aValue,
                       int rowIndex,
                       int columnIndex)
Specified by:
setValueAt in interface TableModel
Overrides:
setValueAt in class AbstractTableModel

getColumnName

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

acceptFDs

public void acceptFDs()
saves the FDs from the table to the internal table representation


getTable

public Table getTable()

setTable

public void setTable(Table table)

refreshTable

public void refreshTable()

getFdList

public List<FD> getFdList()