edu.iastate.metnet.model
Class GroupShareTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by com.jgoodies.binding.adapter.TableAdapter
          extended by edu.iastate.metnet.model.GroupShareTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class GroupShareTableModel
extends com.jgoodies.binding.adapter.TableAdapter

Author:
Jie Li
See Also:
Serialized Form

Field Summary
(package private) static org.apache.log4j.Logger logger
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
GroupShareTableModel(javax.swing.ListModel listModel)
           
GroupShareTableModel(javax.swing.ListModel listModel, java.lang.Integer blockid)
           
 
Method Summary
 java.lang.Integer getBlockid()
           
 java.lang.Class getColumnClass(int columnIndex)
           
 GroupObject getGroupObject(int rowIndex)
           
 java.lang.Object getValueAt(int rowIndex, int columnIndex)
           
 boolean isCellEditable(int rowIndex, int columnIndex)
           
 void setBlockid(java.lang.Integer blockid)
           
 void setValueAt(java.lang.Object object, int rowIndex, int columnIndex)
           
 
Methods inherited from class com.jgoodies.binding.adapter.TableAdapter
createChangeHandler, getColumnCount, getColumnName, getRow, getRowCount
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

static org.apache.log4j.Logger logger
Constructor Detail

GroupShareTableModel

public GroupShareTableModel(javax.swing.ListModel listModel)

GroupShareTableModel

public GroupShareTableModel(javax.swing.ListModel listModel,
                            java.lang.Integer blockid)
Method Detail

getBlockid

public java.lang.Integer getBlockid()
Returns:
Returns the blockid.

setBlockid

public void setBlockid(java.lang.Integer blockid)
Parameters:
blockid - The blockid to set.

getValueAt

public java.lang.Object getValueAt(int rowIndex,
                                   int columnIndex)

getGroupObject

public GroupObject getGroupObject(int rowIndex)

setValueAt

public void setValueAt(java.lang.Object object,
                       int rowIndex,
                       int columnIndex)
Specified by:
setValueAt in interface javax.swing.table.TableModel
Overrides:
setValueAt in class javax.swing.table.AbstractTableModel

isCellEditable

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

getColumnClass

public java.lang.Class getColumnClass(int columnIndex)
Specified by:
getColumnClass in interface javax.swing.table.TableModel
Overrides:
getColumnClass in class javax.swing.table.AbstractTableModel