java.lang.Object
com.pjsofts.eurobudget.beans.Transaction
com.pjsofts.eurobudget.beans.Versement
- All Implemented Interfaces:
- java.lang.Comparable, java.io.Serializable, java.awt.datatransfer.Transferable
- public class Versement
- extends Transaction
Java Bean
| 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 |
| Methods inherited from class com.pjsofts.eurobudget.beans.Transaction |
compareTo, getAmount, getCategoryPair, getClassification, getCreationDate, getDate, getDetails, getEffectiveDate, getFlags, getID, getPasteClone, getTransferData, getTransferDataFlavors, getTxnList, isChecked, isDataFlavorSupported, isSplitted, isVerified, setAmount, setCategoryPair, setChecked, setClassification, setCreationDate, setDate, setDetails, setEffectiveDate, setFlags, setTxnList, setVerified, toString, toStringCSV, toStringTAB, toStringXML |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
fromEntity
private Entity fromEntity
- Holds value of property toEntity.
i8n
private static final transient java.util.ResourceBundle i8n
Versement
public Versement()
Versement
public Versement(java.util.Date date,
double amount,
java.lang.String details,
CategoryPair cat,
Entity e)
- convenient constructor
getFromEntity
public Entity getFromEntity()
- Getter for property fromEntity.
setFromEntity
public void setFromEntity(Entity fromEntity)
- Setter for property fromEntity.
getType
public java.lang.String getType()
- Description copied from class:
Transaction
- not static as it should be override
- Overrides:
getType in class Transaction
getTypeIcon
public javax.swing.Icon getTypeIcon()
- Overrides:
getTypeIcon in class Transaction
getDirectionTip
public java.lang.String getDirectionTip()
- Overrides:
getDirectionTip in class Transaction
getEntity
public Entity getEntity()
- Convenient method when iterating over transactions and avoiding instanceof
- Overrides:
getEntity in class Transaction
getEntityName
public java.lang.String getEntityName()
- Convenient method when iterating over transactions and avoiding instanceof
- Overrides:
getEntityName in class Transaction
getRealAmount
public double getRealAmount()
- Overrides:
getRealAmount in class Transaction
copy
public void copy(Transaction t)
- Not a real copy constructor, but a convertor
- Overrides:
copy in class Transaction
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:
copyAutoEntry in class Transaction
getPasteClone
public Transaction getPasteClone()
- Overrides:
getPasteClone in class Transaction