|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.carlosbcruz.account.dynamicmodel.AccountUserAccount
public class AccountUserAccount
Represents an User Account. An user com.carlosbcruz.account.control has a set of transactions.
| Constructor Summary | |
|---|---|
AccountUserAccount(java.lang.String accountId)
|
|
| Method Summary | |
|---|---|
void |
addAccountModelListener(AccountModelListener listener)
Add a listener to the com.carlosbcruz.account.control model |
void |
addTransaction(AccountTransaction transaction)
Insert a transaction at the end |
java.lang.String |
getAccountId()
Returns the com.carlosbcruz.account.control Id. |
int |
getNumberOfAllTransactions()
Inform the total of transactions existent |
int |
getNumberOfTransactions(int year)
Returns the number of transactions for a specif year. |
int |
getNumberOfYears()
Inform the number of different years existent |
int |
getPositionOfFirstTransactions(int year)
Returns the position of the first transactions for a specif year. |
AccountTransaction |
getTransaction(int position)
Return the transaction for a specifc position |
AccountTransaction |
getTransaction(int year,
int position)
Seek for the a specific transaction ina relative position into the specified year |
int |
getYearByPosition(int position)
Inform the correspondig year by position. |
void |
removeAccountModelListener(AccountModelListener listener)
Remove a listener to the com.carlosbcruz.account.control model |
void |
setAccountId(java.lang.String accountId)
Sets the com.carlosbcruz.account.control Id. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AccountUserAccount(java.lang.String accountId)
accountId - The accountId to set| Method Detail |
|---|
public java.lang.String getAccountId()
public void setAccountId(java.lang.String accountId)
accountId - The accountId to setpublic int getNumberOfAllTransactions()
public AccountTransaction getTransaction(int position)
position - The informed position
public int getNumberOfTransactions(int year)
year - target year
public int getPositionOfFirstTransactions(int year)
year - target year
public AccountTransaction getTransaction(int year,
int position)
year - target yearposition - position inside the year. Zero reffers to the first one.
public int getNumberOfYears()
public int getYearByPosition(int position)
position - Position of the year
public void addTransaction(AccountTransaction transaction)
transaction - The transaction to be insertedpublic void addAccountModelListener(AccountModelListener listener)
listener - instance that will listen to model change events.public void removeAccountModelListener(AccountModelListener listener)
listener - instance that will listen to model change events.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||