Class ScriptParametersParamModel
java.lang.Object
javax.swing.table.AbstractTableModel
fr.ifremer.isisfish.ui.models.common.ScriptParametersParamModel
- All Implemented Interfaces:
Serializable,TableModel
Model de la table de definition de parametre d'un script.
Columns :
- Parameter name
- Parameter value
- Parameter factor (if enabled)
- Version:
- $Revision$ Last update : $Date$ By : $Author$
- Author:
- chatellier
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String[]Columns names.protected Objectprotected booleanIftruedisplay optional.Fields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?>getColumnClass(int columnIndex) intgetColumnName(int columnIndex) intgetValueAt(int rowIndex, int columnIndex) booleanisCellEditable(int rowIndex, int columnIndex) voidSet new script, and fire changed event.voidsetShowFactorColumn(boolean showFactorColumn) voidsetValueAt(Object value, int rowIndex, int columnIndex) Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
Field Details
-
COLUMN_NAMES
Columns names. -
script
-
scriptParametersNames
-
showFactorColumn
protected boolean showFactorColumnIftruedisplay optional.
-
-
Constructor Details
-
ScriptParametersParamModel
public ScriptParametersParamModel() -
ScriptParametersParamModel
-
-
Method Details
-
setShowFactorColumn
public void setShowFactorColumn(boolean showFactorColumn) -
setScript
Set new script, and fire changed event.- Parameters:
script- script
-
getColumnCount
public int getColumnCount() -
getRowCount
public int getRowCount() -
getValueAt
-
getColumnClass
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
getColumnName
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex) - Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
setValueAt
- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-