|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
celeboss.ui.util.SortedTableModel
celeboss.ui.MonitorableTableModel
celeboss.ui.CelebrityTableModel
This table model attaches to a Celebrity factory and display the celebrity details. It reacts to the dynamic changes to the CelebrityFactory and Celebrities.
| Nested Class Summary |
| Nested classes inherited from class celeboss.ui.MonitorableTableModel |
MonitorableTableModel.ColumnSpec |
| Field Summary | |
static int |
DIVIDEND
Potential dividend column |
static int |
GROWTHHOUR
Index of the Growth per hour column |
static int |
GROWTHTODAY
Index of the growth today column |
static int |
GROWTHYESTERDAY
Predicated price column |
static int |
NAME
Index of Name column |
static int |
SHAREPRICE
Share price column index |
static int |
UPDATED
Time of last update column |
static int |
YIELD
Index of the Yield column |
| Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
| Constructor Summary | |
CelebrityTableModel(java.util.Collection celebs)
Create a model that holds a list of celebrities. |
|
| Method Summary | |
protected java.lang.Object |
getCellValue(java.lang.Object row,
int column)
Get the value of a specific cell. |
| Methods inherited from class celeboss.ui.MonitorableTableModel |
addObject, getColumnClass, getColumnCount, getColumnDescription, getColumnName, propertyChange, release, removeObject |
| Methods inherited from class celeboss.ui.util.SortedTableModel |
addObject, cellUpdated, getRow, getRowCount, getRowId, getValueAt, removeObject, sortByColumn |
| Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int NAME
public static final int GROWTHHOUR
public static final int GROWTHTODAY
public static final int GROWTHYESTERDAY
public static final int DIVIDEND
public static final int YIELD
public static final int SHAREPRICE
public static final int UPDATED
| Constructor Detail |
public CelebrityTableModel(java.util.Collection celebs)
celebs - List of celebrities to display| Method Detail |
protected java.lang.Object getCellValue(java.lang.Object row,
int column)
getCellValue in class SortedTableModelrow - The object at the required row.column - The id of the column.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||