|
|||||||||
| Home >> All >> com >> pjsofts >> eurobudget >> [ beans overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.pjsofts.eurobudget.beans
Class Virement

java.lang.Objectcom.pjsofts.eurobudget.beans.Transaction
com.pjsofts.eurobudget.beans.Virement
- All Implemented Interfaces:
- java.lang.Comparable, java.io.Serializable, java.awt.datatransfer.Transferable
- Direct Known Subclasses:
- RelatedVirement
- public class Virement
- extends Transaction
Java Bean One virement from the account that contains this transaction to another account. When created should generate a related credit transaction in the target account if manages by this software. This should be managed by the class Virement itself ...
| Field Summary | |
private static java.util.ResourceBundle |
i18n
|
private Virement |
relatedVirement
The related transaction, opposite (the one that will appears in target account list of txns) any changes on data, amout, targetAccount should update it. |
private static long |
serialVersionUID
|
private Account |
sourceAccount
Holds value of property sourceAccount. |
private Account |
targetAccount
Holds value of property targetAccount. |
| Fields inherited from class com.pjsofts.eurobudget.beans.Transaction |
DATA_FLAVOR, PROPERTY_ACCOUNT, PROPERTY_AMOUNT, PROPERTY_CATEGORY, PROPERTY_CATEGORYPAIR, PROPERTY_CHECKED, PROPERTY_CREATION_DATE, PROPERTY_DATE, PROPERTY_DETAILS, PROPERTY_DIRECTION, PROPERTY_EFFECTIVE_DATE, PROPERTY_ENTITY, PROPERTY_FROM_ENTITY, PROPERTY_NUMBER, PROPERTY_SPLITTED, PROPERTY_SRC_ACCOUNT, PROPERTY_SUBCATEGORY, PROPERTY_TARGET_ACCOUNT, PROPERTY_TO_ENTITY, PROPERTY_TYPE, PROPERTY_TYPE_ICON, PROPERTY_VERIFIED |
| Constructor Summary | |
Virement()
Created one virement If class if Virement, Automatticaly creates then associate one related virement Original should have getAmount() >= 0; getRealAmount()<=0; Related should have getAmount() <= 0; getRealAmount()>=0; |
|
Virement(java.util.Date date,
double amount,
java.lang.String details,
Account source,
Account target)
convenient constructor |
|
| Method Summary | |
void |
copy(Transaction t)
Not a real copy constructor, but a convertor |
void |
copyAutoEntry(Transaction t)
Copy field that are null or empty for a template transaction. |
java.lang.String |
getDirectionTip()
|
Transaction |
getPasteClone()
|
Virement |
getRelatedVirement()
Getter for property relatedVirement. |
Account |
getSourceAccount()
Getter for property sourceAccount. |
Account |
getTargetAccount()
Getter for property targetAccount. |
java.lang.String |
getType()
not static as it should be override |
javax.swing.Icon |
getTypeIcon()
|
void |
setAmount(double amount)
Setter for property amount. |
void |
setDate(java.util.Date date)
Setter for property date. |
void |
setRelatedVirement(Virement relatedVirement)
Setter for property relatedVirement. |
void |
setSourceAccount(Account sourceAccount)
Setter for property sourceAccount. |
int |
setTargetAccount(Account targetAccount)
Do something only on real Virement (do nothing on RelatedVirement) Setter for property targetAccount. |
| Methods inherited from class com.pjsofts.eurobudget.beans.Transaction |
compareTo, getAmount, getCategoryPair, getClassification, getCreationDate, getDate, getDetails, getEffectiveDate, getEntity, getEntityName, getFlags, getID, getPasteClone, getRealAmount, getTransferData, getTransferDataFlavors, getTxnList, isChecked, isDataFlavorSupported, isSplitted, isVerified, setCategoryPair, setChecked, setClassification, setCreationDate, setDetails, setEffectiveDate, setFlags, setTxnList, setVerified, toString, toStringCSV, toStringTAB, toStringXML |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
i18n
private static final transient java.util.ResourceBundle i18n
sourceAccount
private Account sourceAccount
- Holds value of property sourceAccount.
This is for information only, as the real source account is the one which contains
this transaction in its list.(used to display the info in the related transaction)
targetAccount
private Account targetAccount
- Holds value of property targetAccount.
relatedVirement
private Virement relatedVirement
- The related transaction, opposite (the one that will appears in target account list of txns)
any changes on data, amout, targetAccount should update it.
| Constructor Detail |
Virement
public Virement()
- Created one virement
If class if Virement, Automatticaly creates then associate one related virement
Original should have getAmount() >= 0; getRealAmount()<=0;
Related should have getAmount() <= 0; getRealAmount()>=0;
Virement
public Virement(java.util.Date date, double amount, java.lang.String details, Account source, Account target)
- convenient constructor
| Method Detail |
getTargetAccount
public Account getTargetAccount()
- Getter for property targetAccount.
setTargetAccount
public int setTargetAccount(Account targetAccount)
- Do something only on real Virement (do nothing on RelatedVirement)
Setter for property targetAccount.
This will put the related txn in right account ..
getType
public java.lang.String getType()
- Description copied from class:
Transaction - not static as it should be override
- Overrides:
getTypein classTransaction
getTypeIcon
public javax.swing.Icon getTypeIcon()
- Overrides:
getTypeIconin classTransaction
getDirectionTip
public java.lang.String getDirectionTip()
- Overrides:
getDirectionTipin classTransaction
getSourceAccount
public Account getSourceAccount()
- Getter for property sourceAccount.
setSourceAccount
public void setSourceAccount(Account sourceAccount)
- Setter for property sourceAccount.
getRelatedVirement
public Virement getRelatedVirement()
- Getter for property relatedVirement.
setRelatedVirement
public void setRelatedVirement(Virement relatedVirement)
- Setter for property relatedVirement.
setDate
public void setDate(java.util.Date date)
- Setter for property date.
- Overrides:
setDatein classTransaction
setAmount
public void setAmount(double amount)
- Setter for property amount.
- Overrides:
setAmountin classTransaction
copy
public void copy(Transaction t)
- Not a real copy constructor, but a convertor
- Overrides:
copyin classTransaction
copyAutoEntry
public void copyAutoEntry(Transaction t)
- Copy field that are null or empty for a template transaction.
need to be overridden by each child (that add a property)
this may not copy all properties to respect our human rules...
- Overrides:
copyAutoEntryin classTransaction
getPasteClone
public Transaction getPasteClone()
- Overrides:
getPasteClonein classTransaction
|
|||||||||
| Home >> All >> com >> pjsofts >> eurobudget >> [ beans overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC