public class ScriptParametersTableModel extends AbstractTableModel
Modifier and Type | Field and Description |
---|---|
static String[] |
COLUMN_NAMES
Columns names.
|
protected Object |
script |
protected List<String> |
scriptParametersNames |
protected boolean |
showFactorColumn
If
true display optional. |
listenerList
Constructor and Description |
---|
ScriptParametersTableModel() |
ScriptParametersTableModel(Object script) |
Modifier and Type | Method and Description |
---|---|
Class<?> |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
String |
getColumnName(int columnIndex) |
int |
getRowCount() |
Object |
getValueAt(int rowIndex,
int columnIndex) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
void |
setScript(Object script)
Set new script, and fire changed event.
|
void |
setShowFactorColumn(boolean showFactorColumn) |
void |
setValueAt(Object value,
int rowIndex,
int columnIndex) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
public static final String[] COLUMN_NAMES
protected Object script
protected boolean showFactorColumn
true
display optional.public ScriptParametersTableModel()
public ScriptParametersTableModel(Object script)
public void setShowFactorColumn(boolean showFactorColumn)
public void setScript(Object script)
script
- scriptpublic int getColumnCount()
public int getRowCount()
public Object getValueAt(int rowIndex, int columnIndex)
public Class<?> getColumnClass(int columnIndex)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public String getColumnName(int columnIndex)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
public void setValueAt(Object value, int rowIndex, int columnIndex)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
Copyright © 1999–2020 CodeLutin. All rights reserved.