fr.ifremer.isisfish.ui.models.common
Class ScriptParametersTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
fr.ifremer.isisfish.ui.models.common.ScriptParametersTableModel
- All Implemented Interfaces:
- Serializable, TableModel
public class ScriptParametersTableModel
- extends AbstractTableModel
Model de la table de definition de parametre d'un script.
Columns :
Parameter name
Parameter value
Parameter factor (if enabled)
- Version:
- $Revision: 3523 $
Last update : $Date: 2011-11-08 15:11:46 +0100 (Tue, 08 Nov 2011) $
By : $Author: echatellier $
- Author:
- chatellier
- See Also:
- Serialized Form
| 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 |
COLUMN_NAMES
public static final String[] COLUMN_NAMES
- Columns names.
script
protected Object script
scriptParametersNames
protected List<String> scriptParametersNames
showFactorColumn
protected boolean showFactorColumn
- If
true display optional.
ScriptParametersTableModel
public ScriptParametersTableModel()
ScriptParametersTableModel
public ScriptParametersTableModel(Object script)
setShowFactorColumn
public void setShowFactorColumn(boolean showFactorColumn)
setScript
public void setScript(Object script)
- Set new script, and fire changed event.
- Parameters:
script - script
getColumnCount
public int getColumnCount()
getRowCount
public int getRowCount()
getValueAt
public Object getValueAt(int rowIndex,
int columnIndex)
getColumnClass
public Class<?> getColumnClass(int columnIndex)
- Specified by:
getColumnClass in interface TableModel- Overrides:
getColumnClass in class AbstractTableModel
getColumnName
public String getColumnName(int columnIndex)
- Specified by:
getColumnName in interface TableModel- Overrides:
getColumnName in class AbstractTableModel
isCellEditable
public boolean isCellEditable(int rowIndex,
int columnIndex)
- Specified by:
isCellEditable in interface TableModel- Overrides:
isCellEditable in class AbstractTableModel
setValueAt
public void setValueAt(Object value,
int rowIndex,
int columnIndex)
- Specified by:
setValueAt in interface TableModel- Overrides:
setValueAt in class AbstractTableModel
Copyright © 1999-2012 CodeLutin. All Rights Reserved.