Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.pjsofts.eurobudget.beans
Class Versement  view Versement download Versement.java

java.lang.Object
  extended bycom.pjsofts.eurobudget.beans.Transaction
      extended bycom.pjsofts.eurobudget.beans.Versement
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable, java.awt.datatransfer.Transferable

public class Versement
extends Transaction

Java Bean


Field Summary
private  Entity fromEntity
          Holds value of property toEntity.
private static java.util.ResourceBundle i8n
           
private static long serialVersionUID
           
 
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
Versement()
           
Versement(java.util.Date date, double amount, java.lang.String details, CategoryPair cat, Entity e)
          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()
           
 Entity getEntity()
          Convenient method when iterating over transactions and avoiding instanceof
 java.lang.String getEntityName()
          Convenient method when iterating over transactions and avoiding instanceof
 Entity getFromEntity()
          Getter for property fromEntity.
 Transaction getPasteClone()
           
 double getRealAmount()
           
 java.lang.String getType()
          not static as it should be override
 javax.swing.Icon getTypeIcon()
           
 void setFromEntity(Entity fromEntity)
          Setter for property fromEntity.
 
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
 
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

fromEntity

private Entity fromEntity
Holds value of property toEntity.


i8n

private static final transient java.util.ResourceBundle i8n
Constructor Detail

Versement

public Versement()

Versement

public Versement(java.util.Date date,
                 double amount,
                 java.lang.String details,
                 CategoryPair cat,
                 Entity e)
convenient constructor

Method Detail

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