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, removeTableModelListenerpublic 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 TableModelgetColumnClass in class AbstractTableModelpublic String getColumnName(int columnIndex)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelpublic void setValueAt(Object value, int rowIndex, int columnIndex)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelCopyright © 1999–2015 CodeLutin. All rights reserved.