|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
PhaseTableModel
public class PhaseTableModel
Creates a table container to hold properties of phases present in the equilibrium assemblage. This table is displayed in the main window of the GUI.
Field Summary | |
---|---|
static int |
UNIT_GRAMS
Quantity of each phase is displayed in grams. |
static int |
UNIT_VOLUME_PERCENT
Quantity of each phase is displayed in volume %. |
static int |
UNIT_WEIGHT_PERCENT
Quantity of each phase is displayed in wt %. |
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Method Summary | |
---|---|
java.lang.Class |
getColumnClass(int c)
Get class of objects stored in a table column. |
int |
getColumnCount()
Get number of columns in the table. |
java.lang.String |
getColumnName(int col)
Get column header label. |
int |
getRowCount()
Get number of rows in the table. |
java.lang.Object |
getValueAt(int row,
int col)
Get value stored in a table cell. |
boolean |
isCellEditable(int row,
int col)
Determine if a particular table cell may be edited by the user on the GUI. |
void |
setDisplayUnit(int units)
Sets display of the quantity property for all phases in the table. |
void |
setValueAt(java.lang.Object value,
int row,
int col)
Set the value of a cell in the table. |
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 |
Field Detail |
---|
public static int UNIT_GRAMS
public static int UNIT_WEIGHT_PERCENT
public static int UNIT_VOLUME_PERCENT
Method Detail |
---|
public void setDisplayUnit(int units)
units
- Permissible values are UNIT_GRAMS, UNIT_WEIGHT_PERCENT, and UNIT_VOLUME_PERCENT.public int getColumnCount()
public int getRowCount()
public java.lang.String getColumnName(int col)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
col
- Index number of table column.
public java.lang.Object getValueAt(int row, int col)
row
- Index number of table row.col
- Index number of table column.
public java.lang.Class getColumnClass(int c)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
c
- Index number of table column.
public boolean isCellEditable(int row, int col)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
row
- Index number of table row.col
- Index number of table column.
public void setValueAt(java.lang.Object value, int row, int col)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
value
- Java object.row
- Index number of table row.col
- Index number of table column.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |