java.lang.Object
javax.swing.table.AbstractTableModel
com.pjsofts.eurobudget.model.TxnTableModel
com.pjsofts.eurobudget.model.SplitTxnTableModel
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.table.TableModel
- public class SplitTxnTableModel
- extends TxnTableModel
Table model for split transaction.
Table will contain one line per sub transaction.
Display only ctg, amount
| Fields inherited from class com.pjsofts.eurobudget.model.TxnTableModel |
allClasses, allHeaders, ccy, ccy2, COL_AMOUNT, COL_AMOUNT_CCY2, COL_CTG, COL_DATE, COL_DESC, COL_EFF_DATE, COL_ID, COL_SPLIT, COL_SUM, COL_TAG, COL_TYPE, COL_TYPE_ICON, COL_WHERE, defaultColumns, sums, txns |
| Methods inherited from class com.pjsofts.eurobudget.model.TxnTableModel |
getCcy, getCcy2, getColumnClass, getColumnCount, getColumnName, getColumns, getNextMonthRow, getPreviousMonthRow, getRow, getRowCount, getTableIndex, getTransactionAt, getValueAt, setCcy, setCcy2, setColumns, setColumnStatus |
| 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 |
splitTxn
private com.pjsofts.eurobudget.beans.Transaction splitTxn
- the splitted transaction
SplitTxnTableModel
public SplitTxnTableModel(com.pjsofts.eurobudget.beans.Transaction t,
java.util.Currency ccy)
- Creates a new instance of SplitTxnTableModel
removeRow
public void removeRow(int row)
- Removes the row at row from the model.
If virement ,remove also its related
Notification of the row being removed will be sent to all the listeners.
Parameters:
row - the row index of the row to be removed
Throws:
java.lang.ArrayIndexOutOfBoundsException - if the row was invalid
insertRow
public int insertRow(int row,
com.pjsofts.eurobudget.beans.Transaction t)
- Inserts a row in the model. (at the end)
The new row will contain null values unless rowData is specified.
Notification of the row being added will be generated.
Should insert in chronoligical order in the list
isCellEditable
public boolean isCellEditable(int row,
int col)
- Description copied from class:
javax.swing.table.AbstractTableModel
- Returns
true if the specified cell is editable, and
false if it is not. This implementation returns
false for all arguments, subclasses should override the
method if necessary.
- Specified by:
isCellEditable in interface javax.swing.table.TableModel- Overrides:
isCellEditable in class TxnTableModel
setValueAt
public void setValueAt(java.lang.Object aValue,
int row,
int col)
- Change value of transaction