com.gsoft.titration.client
Class CommentModel

java.lang.Object
  |
  +--javax.swing.table.AbstractTableModel
        |
        +--com.gsoft.titration.client.CommentModel

class CommentModel
extends AbstractTableModel


Field Summary
 private final String[]columnNames
           
 private Vectordata
           
 private booleanfailedSet
           

Fields inherited from class javax.swing.table.AbstractTableModel
listenerList

Constructor Summary
CommentModel()
           

Method Summary
 voidaddRow(CommentItem a)
           
 ClassgetColumnClass(int columnIndex)
           
 intgetColumnCount()
           
 StringgetColumnName(int column)
           
 intgetRowCount()
           
 CommentItemgetSelectedComment(int x)
           
 ObjectgetValueAt(int row, int column)
           
 booleanisCellEditable(int rowIndex, int columnIndex)
           
 voidremoveAll()
           
 voidremoveRow(int x)
           
 voidsetValueAt(Object aValue, int rowIndex, int columnIndex)
           

Methods inherited from class javax.swing.table.AbstractTableModel
findColumn, addTableModelListener, removeTableModelListener, fireTableDataChanged, fireTableStructureChanged, fireTableRowsInserted, fireTableRowsUpdated, fireTableRowsDeleted, fireTableCellUpdated, fireTableChanged, getListeners

Methods inherited from class java.lang.Object
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize

Field Detail

columnNames

private final String[] columnNames

data

private Vector data

failedSet

private boolean failedSet
Constructor Detail

CommentModel

public CommentModel()
Method Detail

addRow

public void addRow(CommentItem a)

getColumnClass

public Class getColumnClass(int columnIndex)

getColumnCount

public int getColumnCount()

getColumnName

public String getColumnName(int column)

getRowCount

public int getRowCount()

getSelectedComment

public CommentItem getSelectedComment(int x)

getValueAt

public Object getValueAt(int row, int column)

isCellEditable

public boolean isCellEditable(int rowIndex, int columnIndex)

removeAll

public void removeAll()

removeRow

public void removeRow(int x)

setValueAt

public void setValueAt(Object aValue, int rowIndex, int columnIndex)