|
SalesPoint Framework v3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
util.swing.AbstractTableModel
data.swing.CountingStockTableModel
A TableModel that models the contents of a CountingStock.
| Nested Class Summary | |
static class |
CountingStockTableModel.Record
A CountingStockTableModel's record.
|
| Field Summary | |
protected Comparator |
m_cmpComparator
The Comparator that defines the sorting order of records in the model. |
protected CountingStock |
m_csModel
The CountingStock being modelled. |
protected DataBasket |
m_dbBasket
The DataBasket used to determine visibility. |
protected boolean |
m_fShowZeros
If true, show lines informing about a zero amount of objects. |
protected List |
m_lKeys
The internal model. |
| Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
| Constructor Summary | |
CountingStockTableModel(CountingStock cs,
DataBasket db,
Comparator cmp,
boolean fShowZeros,
TableEntryDescriptor ted)
Create a new CountingStockTableModel. |
|
| Method Summary | |
void |
addedCatalogItem(CatalogChangeEvent e)
Update the internal model and inform any listeners according to the received event. |
void |
addedStockItems(StockChangeEvent e)
Update the internal model and inform any listeners according to the received event. |
void |
canEditCatalogItem(CatalogChangeEvent e)
Update the internal model and inform any listeners according to the received event. |
void |
canEditStockItems(StockChangeEvent e)
Update the internal model and inform any listeners according to the received event. |
void |
canRemoveCatalogItem(CatalogChangeEvent e)
Update the internal model and inform any listeners according to the received event. |
void |
canRemoveStockItems(StockChangeEvent e)
Update the internal model and inform any listeners according to the received event. |
protected void |
checkAdd(String sKey)
Internal helper method. |
protected void |
checkRemove(String sKey)
Internal helper method. |
protected void |
checkUpdate(String sKey)
Internal helper method. |
void |
commitAddStockItems(StockChangeEvent e)
Update the internal model and inform any listeners according to the received event. |
void |
commitedAddCatalogItem(CatalogChangeEvent e)
Update the internal model and inform any listeners according to the received event. |
void |
commitEditCatalogItem(CatalogChangeEvent e)
Update the internal model and inform any listeners according to the received event. |
void |
commitEditStockItems(StockChangeEvent e)
Update the internal model and inform any listeners according to the received event. |
void |
commitedRemoveCatalogItem(CatalogChangeEvent e)
Update the internal model and inform any listeners according to the received event. |
void |
commitRemoveStockItems(StockChangeEvent e)
Update the internal model and inform any listeners according to the received event. |
void |
editingCatalogItem(CatalogChangeEvent e)
Update the internal model and inform any listeners according to the received event. |
void |
editingStockItems(StockChangeEvent e)
Update the internal model and inform any listeners according to the received event. |
Object |
getRecord(int row)
Get the record at the given index. |
int |
getRowCount()
Get the number of records in this model. |
void |
noEditCatalogItem(CatalogChangeEvent e)
Update the internal model and inform any listeners according to the received event. |
void |
noEditStockItems(StockChangeEvent e)
Update the internal model and inform any listeners according to the received event. |
void |
noRemoveCatalogItem(CatalogChangeEvent e)
Update the internal model and inform any listeners according to the received event. |
void |
noRemoveStockItems(StockChangeEvent e)
Update the internal model and inform any listeners according to the received event. |
void |
propertyChange(PropertyChangeEvent e)
Update the internal model and inform any listeners according to the received event. |
void |
removedCatalogItem(CatalogChangeEvent e)
Update the internal model and inform any listeners according to the received event. |
void |
removedStockItems(StockChangeEvent e)
Update the internal model and inform any listeners according to the received event. |
void |
rollbackAddStockItems(StockChangeEvent e)
Update the internal model and inform any listeners according to the received event. |
void |
rollbackEditCatalogItem(CatalogChangeEvent e)
Update the internal model and inform any listeners according to the received event. |
void |
rollbackEditStockItems(StockChangeEvent e)
Update the internal model and inform any listeners according to the received event. |
void |
rollbackRemoveStockItems(StockChangeEvent e)
Update the internal model and inform any listeners according to the received event. |
void |
rolledbackAddCatalogItem(CatalogChangeEvent e)
Update the internal model and inform any listeners according to the received event. |
void |
rolledbackRemoveCatalogItem(CatalogChangeEvent e)
Update the internal model and inform any listeners according to the received event. |
void |
setData(Object n_csModel)
set the table's data. |
void |
subscribe()
Subscribe as a listener to the model. |
void |
unsubscribe()
Un-Subscribe as a listener from the model. |
void |
updateModel()
Update the internal model based on the modelled CountingStock. |
| Methods inherited from class util.swing.AbstractTableModel |
getColumnClass, getColumnCount, getColumnName, getEntryDescriptor, getValueAt, isCellEditable, orderByColumn, reOrderBy, setValueAt |
| 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 |
protected DataBasket m_dbBasket
protected CountingStock m_csModel
filtered.
protected Comparator m_cmpComparator
protected boolean m_fShowZeros
protected List m_lKeys
| Constructor Detail |
public CountingStockTableModel(CountingStock cs,
DataBasket db,
Comparator cmp,
boolean fShowZeros,
TableEntryDescriptor ted)
cs - the Stock to be modelled.db - the DataBasket to be used to determine visibility.cmp - the Comparator defining the sorting order. If null the records will be sorted
according to the natural ordering of their keys.fShowZeros - if true, lines informing about a zero amount of objects will be shown.ted - a TableEntryDescriptor that can split a CountingStockTableModel.Record into a table's cells.| Method Detail |
public void setData(Object n_csModel)
CountingStock
setData in class AbstractTableModeln_csModel - the new datapublic Object getRecord(int row)
getRecord in class AbstractTableModelrow - the index for which to retrieve the record. Element of [0, getRowCount()).
CountingStockTableModel.Record to be displayed at the given index. May return null if
either there is no record at the indicated position or an exception occurs.public int getRowCount()
getRowCount in interface TableModelpublic void subscribe()
Catalog is a ListenableCatalog,
subscribe as a listener. If the modelled CountingStock is a ListenableStock, subscribe as
a listener.
subscribe in interface HelpableListenerpublic void unsubscribe()
Catalog is a ListenableCatalog,
un-subscribe as a listener. If the modelled CountingStock is a ListenableStock,
un-subscribe as a listener.
unsubscribe in interface HelpableListenerpublic void updateModel()
CountingStock.
updateModel in interface HelpableListenerpublic void addedStockItems(StockChangeEvent e)
This method is public as an implementation detail and must not be called directly.
addedStockItems in interface StockChangeListenere - an event object describing the event.public void commitAddStockItems(StockChangeEvent e)
This method is public as an implementation detail and must not be called directly.
commitAddStockItems in interface StockChangeListenere - an event object describing the event.public void rollbackAddStockItems(StockChangeEvent e)
This method is public as an implementation detail and must not be called directly.
rollbackAddStockItems in interface StockChangeListenere - an event object describing the event.
public void canRemoveStockItems(StockChangeEvent e)
throws VetoException
This method is public as an implementation detail and must not be called directly.
canRemoveStockItems in interface StockChangeListenere - an event object describing the event.
VetoException - if the listener wants to veto the removal.public void noRemoveStockItems(StockChangeEvent e)
This method is public as an implementation detail and must not be called directly.
noRemoveStockItems in interface StockChangeListenere - an event object describing the event.public void removedStockItems(StockChangeEvent e)
This method is public as an implementation detail and must not be called directly.
removedStockItems in interface StockChangeListenere - an event object describing the event.public void commitRemoveStockItems(StockChangeEvent e)
This method is public as an implementation detail and must not be called directly.
commitRemoveStockItems in interface StockChangeListenere - an event object describing the event.public void rollbackRemoveStockItems(StockChangeEvent e)
This method is public as an implementation detail and must not be called directly.
rollbackRemoveStockItems in interface StockChangeListenere - an event object describing the event.
public void canEditStockItems(StockChangeEvent e)
throws VetoException
This method is public as an implementation detail and must not be called directly.
canEditStockItems in interface StockChangeListenere - an event object describing the event.
VetoException - if the listener wants to veto the editing.public void noEditStockItems(StockChangeEvent e)
This method is public as an implementation detail and must not be called directly.
noEditStockItems in interface StockChangeListenere - an event object describing the event.public void editingStockItems(StockChangeEvent e)
This method is public as an implementation detail and must not be called directly.
editingStockItems in interface StockChangeListenere - an event object describing the event.public void commitEditStockItems(StockChangeEvent e)
This method is public as an implementation detail and must not be called directly.
commitEditStockItems in interface StockChangeListenere - an event object describing the event.public void rollbackEditStockItems(StockChangeEvent e)
This method is public as an implementation detail and must not be called directly.
rollbackEditStockItems in interface StockChangeListenere - an event object describing the event.public void addedCatalogItem(CatalogChangeEvent e)
This method is public as an implementation detail and must not be called directly.
addedCatalogItem in interface CatalogChangeListenere - an event object describing the event.public void commitedAddCatalogItem(CatalogChangeEvent e)
This method is public as an implementation detail and must not be called directly.
commitedAddCatalogItem in interface CatalogChangeListenere - an event object describing the event.public void rolledbackAddCatalogItem(CatalogChangeEvent e)
This method is public as an implementation detail and must not be called directly.
rolledbackAddCatalogItem in interface CatalogChangeListenere - an event object describing the event.
public void canRemoveCatalogItem(CatalogChangeEvent e)
throws VetoException
This method is public as an implementation detail and must not be called directly.
canRemoveCatalogItem in interface CatalogChangeListenere - an event object describing the event.
VetoException - if the listener wants to veto the removal.public void noRemoveCatalogItem(CatalogChangeEvent e)
This method is public as an implementation detail and must not be called directly.
noRemoveCatalogItem in interface CatalogChangeListenere - an event object describing the event.public void removedCatalogItem(CatalogChangeEvent e)
This method is public as an implementation detail and must not be called directly.
removedCatalogItem in interface CatalogChangeListenere - an event object describing the event.public void commitedRemoveCatalogItem(CatalogChangeEvent e)
This method is public as an implementation detail and must not be called directly.
commitedRemoveCatalogItem in interface CatalogChangeListenere - an event object describing the event.public void rolledbackRemoveCatalogItem(CatalogChangeEvent e)
This method is public as an implementation detail and must not be called directly.
rolledbackRemoveCatalogItem in interface CatalogChangeListenere - an event object describing the event.
public void canEditCatalogItem(CatalogChangeEvent e)
throws VetoException
This method is public as an implementation detail and must not be called directly.
canEditCatalogItem in interface CatalogChangeListenere - an event object describing the event.
VetoException - if the listener wants to veto the editing.public void noEditCatalogItem(CatalogChangeEvent e)
This method is public as an implementation detail and must not be called directly.
noEditCatalogItem in interface CatalogChangeListenere - an event object describing the event.public void editingCatalogItem(CatalogChangeEvent e)
This method is public as an implementation detail and must not be called directly.
editingCatalogItem in interface CatalogChangeListenere - an event object describing the event.public void commitEditCatalogItem(CatalogChangeEvent e)
This method is public as an implementation detail and must not be called directly.
commitEditCatalogItem in interface CatalogChangeListenere - an event object describing the event.public void rollbackEditCatalogItem(CatalogChangeEvent e)
This method is public as an implementation detail and must not be called directly.
rollbackEditCatalogItem in interface CatalogChangeListenere - an event object describing the event.public void propertyChange(PropertyChangeEvent e)
This method is public as an implementation detail and must not be called directly.
propertyChange in interface PropertyChangeListenerprotected void checkAdd(String sKey)
protected void checkRemove(String sKey)
protected void checkUpdate(String sKey)
|
SalesPoint Framework v3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||