public class TableModelScriptInstances
extends javax.swing.table.AbstractTableModel
| Modifier and Type | Field and Description |
|---|---|
static org.apache.log4j.Logger |
log
Used for logging.
|
| Constructor and Description |
|---|
TableModelScriptInstances()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bumpSequences(int bottomSequence,
int topSequence,
int bumpModifier)
Bumps sequences up or down between the bottom and top sequences.
|
void |
deleteRow(int row)
Deletes a row from the model.
|
java.lang.Class |
getColumnClass(int column)
JTable uses this method to determine the default renderer/
editor for each cell.
|
int |
getColumnCount()
Gets the number of columns held by the table.
|
java.lang.String |
getColumnName(int col)
Gets the name of a column, given an integer representing it's ordinal position.
|
int |
getRowCount()
Gets the number of rows held by the table.
|
java.lang.Object |
getValueAt(int row,
int col)
Gets the value at a certain row and column in the table.
|
boolean |
isCellEditable(int row,
int col)
Indicates whether or not a given cell is editable.
|
void |
rowDeleted(int row)
Indicates that a row was deleted.
|
void |
scriptInstancesDataUpdated()
Indicates that the script instances information has been updated.
|
void |
setColumnNames(java.lang.String[] columnNames)
Sets the column names.
|
void |
setScriptInstances(ScriptInstances scriptInstances)
Sets the
ArrayList that contains the script instances. |
void |
setValueAt(java.lang.Object value,
int row,
int col)
Sets the value at a certain row and column in the table.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerpublic TableModelScriptInstances()
public void setColumnNames(java.lang.String[] columnNames)
columnNames - An array of strings containing all of the column names.public void setScriptInstances(ScriptInstances scriptInstances)
ArrayList that contains the script instances.scriptInstances - The ArrayList.public int getColumnCount()
int representing the number of columns.public int getRowCount()
int representing the number of rows.public java.lang.String getColumnName(int col)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelcol - The ordinal position of the column.public java.lang.Object getValueAt(int row,
int col)
row - The row number.col - The ordinal position of the column.Object representing the data.public java.lang.Class getColumnClass(int column)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelcolumn - The ordinal position of the column (this parameter is ignored
by this implementation of the method).Class of the column.public boolean isCellEditable(int row,
int col)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelrow - The row number.col - The ordinal position of the column.boolean indicating whether or not the cell is editable.public void setValueAt(java.lang.Object value,
int row,
int col)
setValueAt in interface javax.swing.table.TableModelsetValueAt in class javax.swing.table.AbstractTableModelrow - The row number.col - The ordinal position of the column.public void bumpSequences(int bottomSequence,
int topSequence,
int bumpModifier)
bottomSequence - The bottom sequence.topSequence - The top sequence.bumpModifier - Modifies each sequence.public void deleteRow(int row)
row - The row number to be deleted.public void scriptInstancesDataUpdated()
public void rowDeleted(int row)
row - The row that was deleted.