|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jbudget.gui.trans.TransactionEditor.TransferComponents
private class TransactionEditor.TransferComponents
Container class that stores the GUI components for rendering Transfers.
| Field Summary | |
|---|---|
(package private) org.jbudget.gui.components.TitledTextField |
amountField
|
(package private) javax.swing.JComboBox |
fromSelector
|
private java.awt.Color |
invalidEntryColor
Color for highlighting invalid fields |
(package private) int |
mode
Are we editing Transactions or Allocations? |
(package private) javax.swing.JComboBox |
toSelector
|
| Constructor Summary | |
|---|---|
TransactionEditor.TransferComponents(int mode)
|
|
| Method Summary | |
|---|---|
boolean |
checkAmount()
Check amount. |
org.jbudget.Core.Transaction.Transfer |
getTransfer()
|
long |
readAmount()
Reads information from the amount field. |
void |
setAmount(long amount,
boolean update)
Changes the amount for this transfer. |
void |
setBudget(org.jbudget.Core.Budget budget)
Initializes the fromSelector and toSelector from a given budget. |
void |
setTransfer(org.jbudget.Core.Transaction.Transfer transfer)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
final javax.swing.JComboBox fromSelector
final javax.swing.JComboBox toSelector
final org.jbudget.gui.components.TitledTextField amountField
final int mode
private java.awt.Color invalidEntryColor
| Constructor Detail |
|---|
public TransactionEditor.TransferComponents(int mode)
| Method Detail |
|---|
public void setBudget(org.jbudget.Core.Budget budget)
public void setTransfer(org.jbudget.Core.Transaction.Transfer transfer)
public org.jbudget.Core.Transaction.Transfer getTransfer()
throws java.text.ParseException,
org.jbudget.exceptions.InvalidSrcDestEx
java.text.ParseException
org.jbudget.exceptions.InvalidSrcDestEx
public long readAmount()
throws java.text.ParseException
java.text.ParseException
public void setAmount(long amount,
boolean update)
public boolean checkAmount()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||