|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
ex1.OpDetailTableModel
This table model handles the operation tables for the indivdual processes. Each of these appears as a seperate tab. The main view is handled by the OprnTableModel. Each process has its own instance of this table model. Each process view will have a different number of columns depending on how many parameters the process contains.
| Field Summary |
| Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
| Constructor Summary | |
OpDetailTableModel(int tab,
OprnTableModel ops,
DefnFileParser p)
Creates a new instance of OpDetailTableModel |
|
| Method Summary | |
java.lang.String |
getChoice(int col,
int ind)
Get a specific choice string from a column. |
int |
getChoiceCount(int col)
Get number of choices a dropdown list would have for a column |
java.lang.Class |
getColumnClass(int c)
Class of the column, will be either JComboBox or String |
int |
getColumnCount()
Returns the number of columns for this particular group |
java.lang.String |
getColumnName(int col)
Get the prompt(header) for a particular detail column. |
int |
getColumnType(int col)
Get the type of data in this column |
int |
getRowCount()
Return the number of rows this view has. |
java.lang.Object |
getValueAt(int row,
int col)
Get the value at a specific row and column. |
boolean |
isCellEditable(int row,
int col)
Check if this cell can be modified, for files that don't have a particular action false (readonly) will be returned. |
void |
setAltUnits(boolean val)
Set whether alternate units are used which cause conversions. |
void |
setValueAt(java.lang.Object o,
int row,
int col)
Stores a value into the table |
void |
sort(int col,
int status)
This sorts the rows based on the contents of a specific column. |
| Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OpDetailTableModel(int tab,
OprnTableModel ops,
DefnFileParser p)
| Method Detail |
public int getColumnCount()
public java.lang.Class getColumnClass(int c)
public boolean isCellEditable(int row,
int col)
row - row to checkcol - column to check
public int getRowCount()
public void setAltUnits(boolean val)
val - True if alternate (English) units.public int getColumnType(int col)
col - column number to get
public int getChoiceCount(int col)
col - column number to get
public java.lang.String getChoice(int col,
int ind)
col - column number to getind - index in choice array to return.
public java.lang.String getColumnName(int col)
col - the column number to get
public java.lang.Object getValueAt(int row,
int col)
row - the row to getcol - the column to get
public void setValueAt(java.lang.Object o,
int row,
int col)
o - Object to storerow - row where object came fromcol - column where object came from
public void sort(int col,
int status)
col - column to sortstatus - ascending, descending or nothing
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||