org.jbudget.gui.trans
Class TransactionListModel
java.lang.Object
org.jbudget.gui.trans.TransactionListModelBase
org.jbudget.gui.trans.TransactionListModel
- All Implemented Interfaces:
- javax.swing.table.TableModel, FilterChangeListener, TransactionSorterPanel.TransactionSorterListener, EventDispatcher.DataSourceListener, EventDispatcher.TransactionListener, EventDispatcher.UserListener
public class TransactionListModel
- extends TransactionListModelBase
- implements EventDispatcher.TransactionListener
A TableModel for displaying a list of Transactions.
- Author:
- petrov
|
Method Summary |
void |
dataSourceChanged()
Method that is called when the data directory has changed. |
void |
dispose()
|
void |
finalize()
|
java.lang.String |
getColumnName(int index)
|
protected java.util.List<org.jbudget.Core.Transaction> |
getTransactions()
Returns a list of transactions. |
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
|
void |
transactionAdded(org.jbudget.Core.Transaction transaction)
Called when a transaction is added to the month. |
void |
transactionRemoved(java.util.List<org.jbudget.Core.Transaction.Transfer> transfers,
int cDay,
int cMonth,
int cYear)
Called when a transaction is removed from the month. |
| Methods inherited from class org.jbudget.gui.trans.TransactionListModelBase |
addTableModelListener, addTableModelListener, filterUpdated, fireStopEditing, fireTableChanged, getColumnClass, getColumnCount, getFilter, getRowCount, getValueAt, indexOf, initialize, isCellEditable, removeTableModelListener, setComparator, userAdded, userChanged, userRemoved |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactionListModel
public TransactionListModel()
dispose
public void dispose()
- Overrides:
dispose in class TransactionListModelBase
finalize
public void finalize()
- Overrides:
finalize in class java.lang.Object
getTransactions
protected java.util.List<org.jbudget.Core.Transaction> getTransactions()
- Description copied from class:
TransactionListModelBase
- Returns a list of transactions.
- Specified by:
getTransactions in class TransactionListModelBase
setValueAt
public void setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
- Specified by:
setValueAt in interface javax.swing.table.TableModel- Specified by:
setValueAt in class TransactionListModelBase
getColumnName
public java.lang.String getColumnName(int index)
- Specified by:
getColumnName in interface javax.swing.table.TableModel- Overrides:
getColumnName in class TransactionListModelBase
transactionAdded
public void transactionAdded(org.jbudget.Core.Transaction transaction)
- Called when a transaction is added to the month.
- Specified by:
transactionAdded in interface EventDispatcher.TransactionListener
transactionRemoved
public void transactionRemoved(java.util.List<org.jbudget.Core.Transaction.Transfer> transfers,
int cDay,
int cMonth,
int cYear)
- Called when a transaction is removed from the month.
- Specified by:
transactionRemoved in interface EventDispatcher.TransactionListener
dataSourceChanged
public void dataSourceChanged()
- Method that is called when the data directory has changed.
- Specified by:
dataSourceChanged in interface EventDispatcher.DataSourceListener- Overrides:
dataSourceChanged in class TransactionListModelBase