fr.ifremer.coser.ui.control
Class ControlDataTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by fr.ifremer.coser.ui.control.ControlDataTableModel
All Implemented Interfaces:
Serializable, TableModel

public class ControlDataTableModel
extends AbstractTableModel

Species and comments check boxed table model.

Version:
$Revision$ Last update : $Date$ By : $Author$
Author:
chatellier
See Also:
Serialized Form

Field Summary
protected  CoserConstants.Category category
           
protected  DataStorage data
           
protected  String[] header
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
ControlDataTableModel(ControlView controlView, CoserConstants.Category category)
           
 
Method Summary
 int getColumnCount()
           
 String getColumnName(int column)
           
 String[] getDataAt(int rowIndex)
          Retourne la donnée (toutes le String[]) à la ligne demandée.
 int getRealIndexOfLine(String lineNumber)
          Retourne l'index dans la liste des données du numero de ligne demandé.
 int getRowCount()
           
 Object getValueAt(int rowIndex, int columnIndex)
           
protected  void updateData(ControlView controlView)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

protected DataStorage data

category

protected CoserConstants.Category category

header

protected String[] header
Constructor Detail

ControlDataTableModel

public ControlDataTableModel(ControlView controlView,
                             CoserConstants.Category category)
Method Detail

updateData

protected void updateData(ControlView controlView)

getRowCount

public int getRowCount()

getColumnCount

public int getColumnCount()

getColumnName

public String getColumnName(int column)
Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel

getValueAt

public Object getValueAt(int rowIndex,
                         int columnIndex)

getDataAt

public String[] getDataAt(int rowIndex)
Retourne la donnée (toutes le String[]) à la ligne demandée.

Parameters:
rowIndex -
Returns:
String[]

getRealIndexOfLine

public int getRealIndexOfLine(String lineNumber)
Retourne l'index dans la liste des données du numero de ligne demandé.

Parameters:
lineNumber - le numero de données
Returns:
l'index


Copyright © 2010-2011 Ifremer. All Rights Reserved.