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
Modifier and TypeFieldDescriptionstatic final String[]
Columns names.protected Object
protected boolean
Iftrue
display optional.Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionClass<?>
getColumnClass
(int columnIndex) int
getColumnName
(int columnIndex) int
getValueAt
(int rowIndex, int columnIndex) boolean
isCellEditable
(int rowIndex, int columnIndex) void
Set new script, and fire changed event.void
setShowFactorColumn
(boolean showFactorColumn) void
setValueAt
(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 showFactorColumnIftrue
display 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:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
-
getColumnName
- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex) - Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classAbstractTableModel
-
setValueAt
- Specified by:
setValueAt
in interfaceTableModel
- Overrides:
setValueAt
in classAbstractTableModel
-