sk.stuba.fiit.foo07.genex.gui
Class GenexTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by sk.stuba.fiit.foo07.genex.gui.GenexTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class GenexTableModel
extends javax.swing.table.AbstractTableModel

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
GenexTableModel(javax.swing.ImageIcon catIcon, javax.swing.ImageIcon qIcon, CategoryDao catDao, QuestionDao qDao, QuestionTypeDao qtDao)
           
 
Method Summary
 void actualizeContent()
           
 void copyData(int[] selIndices)
           
 void cutData(int[] selIndices)
           
 void deleteItems(int[] selIndices)
           
 void fireTableDataChanged()
           
 Category getActualCategory()
           
 int getColumnCount()
           
 java.lang.String getColumnName(int col)
           
 int getRowCount()
           
 java.lang.Object getValue(int row)
           
 java.lang.Object getValueAt(int row, int col)
           
 void initColumnNames()
           
 boolean isCellEditable(int row, int col)
           
 void pasteData()
           
 void setActualCategory(Category newCat)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, 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

GenexTableModel

public GenexTableModel(javax.swing.ImageIcon catIcon,
                       javax.swing.ImageIcon qIcon,
                       CategoryDao catDao,
                       QuestionDao qDao,
                       QuestionTypeDao qtDao)
Method Detail

fireTableDataChanged

public void fireTableDataChanged()
Overrides:
fireTableDataChanged in class javax.swing.table.AbstractTableModel

actualizeContent

public void actualizeContent()

setActualCategory

public void setActualCategory(Category newCat)

getActualCategory

public Category getActualCategory()

initColumnNames

public void initColumnNames()

getColumnCount

public int getColumnCount()

getRowCount

public int getRowCount()

getColumnName

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

getValueAt

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

isCellEditable

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

getValue

public java.lang.Object getValue(int row)

deleteItems

public void deleteItems(int[] selIndices)

copyData

public void copyData(int[] selIndices)

cutData

public void cutData(int[] selIndices)

pasteData

public void pasteData()
               throws java.sql.SQLException
Throws:
java.sql.SQLException


Copyright © 2008 Faculty of Informatics and Information Technologies, STU Bratislava. All Rights Reserved.