|
Venice 0.7beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mov.portfolio.AccountDialog
public class AccountDialog
A dialog that allows the user to enter an account name and currency. The account could be a portfolio or a portfolio's account. Example:
AccountDialog dialog = new AccountDialog(desktop, Locale.getString("ENTER_PORTFOLIO_NAME"), Locale.getString("NEW_PORTFOLIO")); if(dialog.showDialog()) { String accountName = dialog.getAccountName(); Currency accountCurrency = dialog.getAccountCurrency(); }
Constructor Summary | |
---|---|
AccountDialog(javax.swing.JComponent parent,
java.lang.String message,
java.lang.String title)
Create new account dialog. |
|
AccountDialog(javax.swing.JComponent parent,
java.lang.String message,
java.lang.String title,
Currency currency)
Create new account dialog. |
Method Summary | |
---|---|
Currency |
getAccountCurrency()
Return the currency selected. |
java.lang.String |
getAccountName()
Return the account name entered into the dialog. |
boolean |
showDialog()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AccountDialog(javax.swing.JComponent parent, java.lang.String message, java.lang.String title)
parent
- The parent component to tie the dialog tomessage
- The prompt texttitle
- The title to place on the dialogpublic AccountDialog(javax.swing.JComponent parent, java.lang.String message, java.lang.String title, Currency currency)
parent
- The parent component to tie the dialog tomessage
- The prompt texttitle
- The title to place on the dialogcurrency
- The default currency for the account.Method Detail |
---|
public boolean showDialog()
public java.lang.String getAccountName()
public Currency getAccountCurrency()
|
Venice 0.7beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |