fr.reseaumexico.editor
Class InputDesignTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by fr.reseaumexico.editor.InputDesignTableModel
All Implemented Interfaces:
InputDesignScenarioListener, Serializable, EventListener, TableModel

public class InputDesignTableModel
extends AbstractTableModel
implements InputDesignScenarioListener

Since:
0.1
Author:
sletellier
See Also:
Serialized Form

Field Summary
protected  TableModel delegate
           
protected  List<Factor> factors
           
protected  InputDesign inputDesign
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
InputDesignTableModel()
           
 
Method Summary
 Class<?> getColumnClass(int rowIndex)
           
 int getColumnCount()
           
 String getColumnName(int rowIndex)
           
 Factor getFactor(int i)
           
 InputDesign getInputDesign()
           
 int getRowCount()
           
 Scenario getScenario(int i)
           
 Collection<Scenario> getScenarios()
           
 Object getValueAt(int rowIndex, int columnIndex)
           
 boolean isCellEditable(int rowIndex, int columnIndex)
           
 void scenarioAdded(InputDesignScenarioEvent event)
           
 void scenarioRemoved(InputDesignScenarioEvent event)
           
 void setInputDesign(InputDesign inputDesign)
           
 void setValueAt(Object o, int rowIndex, int columnIndex)
           
 
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

delegate

protected TableModel delegate

inputDesign

protected InputDesign inputDesign

factors

protected List<Factor> factors
Constructor Detail

InputDesignTableModel

public InputDesignTableModel()
Method Detail

setInputDesign

public void setInputDesign(InputDesign inputDesign)

scenarioAdded

public void scenarioAdded(InputDesignScenarioEvent event)
Specified by:
scenarioAdded in interface InputDesignScenarioListener

scenarioRemoved

public void scenarioRemoved(InputDesignScenarioEvent event)
Specified by:
scenarioRemoved in interface InputDesignScenarioListener

getInputDesign

public InputDesign getInputDesign()

getScenarios

public Collection<Scenario> getScenarios()

getScenario

public Scenario getScenario(int i)

getFactor

public Factor getFactor(int i)

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface TableModel

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface TableModel

getColumnName

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

getColumnClass

public Class<?> getColumnClass(int rowIndex)
Specified by:
getColumnClass in interface TableModel
Overrides:
getColumnClass in class AbstractTableModel

isCellEditable

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

getValueAt

public Object getValueAt(int rowIndex,
                         int columnIndex)
Specified by:
getValueAt in interface TableModel

setValueAt

public void setValueAt(Object o,
                       int rowIndex,
                       int columnIndex)
Specified by:
setValueAt in interface TableModel
Overrides:
setValueAt in class AbstractTableModel


Copyright © 2011-2012 Code Lutin. All Rights Reserved.