|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--javax.swing.table.AbstractTableModel
|
+--s2iInstCktTableModel
A TableModel class to keep the list of instantiated top-level subckts.
| Field Summary | |
private static int |
colLimit
Number of instance columns (elem + def + nodes) to allocate space for. |
protected java.lang.Object[][] |
data
The instance data. |
protected int |
maxCol
Number of columns currently in use (widest row). |
protected int |
rowCtr
Number of rows currently in use. |
private static int |
rowLimit
Number of instance rows to allocate space for. |
| Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
| Constructor Summary | |
s2iInstCktTableModel()
|
|
| Method Summary | |
void |
addInstance(java.lang.String CktDef)
Add a new row for an instance. |
java.util.Vector |
archive()
Connvert the table data to a Vector of Strings, which can be stored. |
void |
clearAll()
Clear all data from the table. |
int |
getColumnCount()
Return the number of columns in the widest row. |
java.lang.String |
getColumnName(int col)
Get the name of a column by position |
java.util.Enumeration |
getNodes()
Get an enumeration of unique node names present in the data model. |
int |
getRowCount()
Return the number of rows defined. |
java.lang.Object |
getValueAt(int row,
int col)
Return the value of a cell by position. |
boolean |
isCellBlank(int row,
int col)
Determine if the value of a cell is null |
boolean |
isCellEditable(int row,
int col)
Determine if the user can edit a cell value. |
static void |
main(java.lang.String[] args)
A main method for testing this class. |
void |
printdataNcol()
Print the table data to stdout in DEBUG mode. |
void |
setValueAt(java.lang.Object value,
int row,
int col)
Set a cell value. |
| Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener,
findColumn,
fireTableCellUpdated,
fireTableChanged,
fireTableDataChanged,
fireTableRowsDeleted,
fireTableRowsInserted,
fireTableRowsUpdated,
fireTableStructureChanged,
getColumnClass,
removeTableModelListener |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private static final int rowLimit
private static final int colLimit
protected java.lang.Object[][] data
protected int rowCtr
protected int maxCol
| Constructor Detail |
public s2iInstCktTableModel()
| Method Detail |
public void clearAll()
public int getColumnCount()
public int getRowCount()
public java.lang.String getColumnName(int col)
column - number (first column is 0)
public java.lang.Object getValueAt(int row,
int col)
row - The cell rowcol - The cell column
public boolean isCellBlank(int row,
int col)
row - The cell rowcol - The cell columnpublic void addInstance(java.lang.String CktDef)
CktDef - The String of instance tokenspublic void printdataNcol()
public java.util.Vector archive()
public java.util.Enumeration getNodes()
public boolean isCellEditable(int row,
int col)
row - The cell rowcol - The cell column
public void setValueAt(java.lang.Object value,
int row,
int col)
value - The value to set the cell torow - The cell rowcol - The cell columnpublic static void main(java.lang.String[] args)
args - unused
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||