|
Venice 0.7beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
org.mov.ui.AbstractTableModel
org.mov.ui.AbstractQuoteModel
public abstract class AbstractQuoteModel
Helper for constructing quote table models. This abstract table model allows you to pass a list of columns for describing a table. The model append a list of expression columns that let the user apply expressions to quotes in the table. The model will then care care of returning information to the table about each column and recomputing the expression columns as necessary.
Column
,
ExpressionColumn
,
Serialized FormField Summary | |
---|---|
static int |
EXPRESSION_COLUMN_COUNT
The number of expression columns to display for tables that support them. |
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
AbstractQuoteModel(QuoteBundle quoteBundle,
java.util.List quotes,
int firstExpressionColumn)
Create a new quote table model with no columns. |
Method Summary | |
---|---|
Column |
getColumn(int columnNumber)
Return a column. |
int |
getColumnCount()
Return the number of columns in the table. |
ExpressionColumn[] |
getExpressionColumns()
Return the array of expression columns. |
java.util.List |
getQuotes()
Return the list of quotes in the table. |
int |
getRowCount()
Return the number of rows in the table. |
void |
setExpressionColumns(ExpressionColumn[] expressionColumns)
Set the expression columns. |
void |
setQuotes(java.util.List quotes)
Set the list of quotes to table. |
Methods inherited from class org.mov.ui.AbstractTableModel |
---|
getColumnClass, getColumnName, setColumns |
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 |
Methods inherited from interface javax.swing.table.TableModel |
---|
getValueAt |
Field Detail |
---|
public static final int EXPRESSION_COLUMN_COUNT
Constructor Detail |
---|
public AbstractQuoteModel(QuoteBundle quoteBundle, java.util.List quotes, int firstExpressionColumn)
quoteBundle
- Quote bundlequotes
- A list of Quote
s which contain
the quote symbols and dates to table.firstExpressionColumn
- The column number of the first expression
column.Method Detail |
---|
public ExpressionColumn[] getExpressionColumns()
Column
,
ExpressionColumn
public void setExpressionColumns(ExpressionColumn[] expressionColumns)
expressionColumns
- New expression columnspublic int getColumnCount()
getColumnCount
in interface javax.swing.table.TableModel
getColumnCount
in class AbstractTableModel
public Column getColumn(int columnNumber)
getColumn
in class AbstractTableModel
columnNumber
- Number of column.
public java.util.List getQuotes()
public void setQuotes(java.util.List quotes)
quotes
- New quotes to table.public int getRowCount()
|
Venice 0.7beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |