hoplugins.transfers.ui.model
Class TransferTypeTableModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byhoplugins.transfers.ui.model.TransferTypeTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class TransferTypeTableModel
extends javax.swing.table.AbstractTableModel

TableModel representing the effect of training.

Author:
Massimiliano Amato
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
TransferTypeTableModel(java.util.List values)
          Creates a TransferTypeTableModel.
 
Method Summary
 int getColumnCount()
          
 java.lang.String getColumnName(int column)
          
 int getRowCount()
          
 java.lang.Object getValueAt(int rowIndex, int columnIndex)
          
 boolean isCellEditable(int row, int column)
          Method that returns if a cell is editable or not
 void setValueAt(java.lang.Object value, int row, int col)
          When a value is updated, update the value in the right TrainingWeek in p_V_trainingsVector store the change thru HO API.
 
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
 

Constructor Detail

TransferTypeTableModel

public TransferTypeTableModel(java.util.List values)
Creates a TransferTypeTableModel.

Parameters:
values - List of values to show in table.
Method Detail

isCellEditable

public final boolean isCellEditable(int row,
                                    int column)
Method that returns if a cell is editable or not

Parameters:
row - Row number
column - Column number
Returns:
true is cell is editable, false if not.

getColumnCount

public final int getColumnCount()


getColumnName

public final java.lang.String getColumnName(int column)


getRowCount

public final int getRowCount()


setValueAt

public final void setValueAt(java.lang.Object value,
                             int row,
                             int col)
When a value is updated, update the value in the right TrainingWeek in p_V_trainingsVector store the change thru HO API. Refresh the main table, and deselect any player

Parameters:
value - Value to set
row - Row number
col - Column number

getValueAt

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



Copyright © 2005 Hattrick Organizer Plugins Project. All Rights Reserved.