org.apache.geronimo.samples.daytrader.client
Class TradeQuoteAuditStats
java.lang.Object
javax.swing.table.AbstractTableModel
org.apache.geronimo.samples.daytrader.client.TradeQuoteAuditStats
- All Implemented Interfaces:
- Serializable, TableModel
public class TradeQuoteAuditStats
- extends AbstractTableModel
- See Also:
- Serialized Form
Method Summary |
void |
clearStats()
|
Class |
getColumnClass(int columnIndex)
|
int |
getColumnCount()
|
String |
getColumnName(int columnIndex)
|
int |
getRowCount()
|
TradeStreamerQuoteDataBean |
getSymbol(int row)
|
TradeStreamerQuoteDataBean |
getSymbol(String symbol)
|
Object |
getValueAt(int row,
int column)
|
void |
init()
|
boolean |
isCellEditable(int row,
int column)
|
void |
setValueAt(Object aValue,
int row,
int column)
|
void |
sort(int column,
boolean fromUserGUI)
|
void |
updateSymbol(String symbol,
String company,
BigDecimal newPrice,
BigDecimal open,
BigDecimal low,
BigDecimal high,
double volume,
long publishTime,
BigDecimal priceChange,
double volumeChange)
|
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 |
SYMBOL_COL
public static final int SYMBOL_COL
- See Also:
- Constant Field Values
COMPANY_COL
public static final int COMPANY_COL
- See Also:
- Constant Field Values
PRICE_COL
public static final int PRICE_COL
- See Also:
- Constant Field Values
AUDIT_PRICE_COL
public static final int AUDIT_PRICE_COL
- See Also:
- Constant Field Values
VOLUME_COL
public static final int VOLUME_COL
- See Also:
- Constant Field Values
AUDIT_VOLUME_COL
public static final int AUDIT_VOLUME_COL
- See Also:
- Constant Field Values
OPEN_COL
public static final int OPEN_COL
- See Also:
- Constant Field Values
LOW_COL
public static final int LOW_COL
- See Also:
- Constant Field Values
HIGH_COL
public static final int HIGH_COL
- See Also:
- Constant Field Values
CHANGE_COL
public static final int CHANGE_COL
- See Also:
- Constant Field Values
UPDATE_COL
public static final int UPDATE_COL
- See Also:
- Constant Field Values
TradeQuoteAuditStats
public TradeQuoteAuditStats()
init
public void init()
updateSymbol
public void updateSymbol(String symbol,
String company,
BigDecimal newPrice,
BigDecimal open,
BigDecimal low,
BigDecimal high,
double volume,
long publishTime,
BigDecimal priceChange,
double volumeChange)
getSymbol
public TradeStreamerQuoteDataBean getSymbol(String symbol)
getSymbol
public TradeStreamerQuoteDataBean getSymbol(int row)
clearStats
public void clearStats()
getColumnCount
public int getColumnCount()
getRowCount
public int getRowCount()
getValueAt
public Object getValueAt(int row,
int column)
setValueAt
public void setValueAt(Object aValue,
int row,
int column)
- Specified by:
setValueAt
in interface TableModel
- Overrides:
setValueAt
in class AbstractTableModel
getColumnName
public String getColumnName(int columnIndex)
- Specified by:
getColumnName
in interface TableModel
- Overrides:
getColumnName
in class AbstractTableModel
getColumnClass
public Class getColumnClass(int columnIndex)
- Specified by:
getColumnClass
in interface TableModel
- Overrides:
getColumnClass
in class AbstractTableModel
isCellEditable
public boolean isCellEditable(int row,
int column)
- Specified by:
isCellEditable
in interface TableModel
- Overrides:
isCellEditable
in class AbstractTableModel
sort
public void sort(int column,
boolean fromUserGUI)
Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.