sk.stuba.fiit.foo07.genex.gui
Class GenexTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
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
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
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 |
GenexTableModel
public GenexTableModel(javax.swing.ImageIcon catIcon,
javax.swing.ImageIcon qIcon,
CategoryDao catDao,
QuestionDao qDao,
QuestionTypeDao qtDao)
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.