Index
All Classes and Interfaces|All Packages|Serialized Form
A
- account(int) - Method in class bank.Bank
- Account - Class in bank
-
This class represents the relationship between a bank and its customers (account holders).
- Account(int, double) - Constructor for class bank.Account
- AccountException - Exception Class in bank.account
-
Basic exception class for bank operations.
- AccountException(int) - Constructor for exception class bank.account.AccountException
- AccountOperationException - Exception Class in bank.account
-
Exception for unsuccessful operations on accounts.
- AccountOperationException(int, double) - Constructor for exception class bank.account.AccountOperationException
- accounts() - Method in class bank.Bank
-
Return all the accounts as an unmodifiable collection.
- add(Object) - Method in class pt.tecnico.uilib.Display
- addAll(Collection) - Method in class pt.tecnico.uilib.Display
- addBalance(double) - Method in class bank.account.CurrentAccount
-
Add to the current balance (protected!).
- addBalance(double) - Method in class bank.account.SavingsAccount
-
Add to the current balance (protected!).
- addBooleanField(String, String) - Method in class pt.tecnico.uilib.forms.Form
- addBooleanField(String, String) - Method in class pt.tecnico.uilib.menus.Command
- addHolder(Client) - Method in class bank.Account
-
Add an account holder.
- addIntegerField(String, String) - Method in class pt.tecnico.uilib.forms.Form
- addIntegerField(String, String) - Method in class pt.tecnico.uilib.menus.Command
- addLine(Object) - Method in class pt.tecnico.uilib.Display
-
Add a line of text in a new-line.
- addNewLine(Object, boolean) - Method in class pt.tecnico.uilib.Display
-
Add a line of text in a new-line.
- addOptionField(String, String, String...) - Method in class pt.tecnico.uilib.forms.Form
- addOptionField(String, String, String...) - Method in class pt.tecnico.uilib.menus.Command
- addRealField(String, String) - Method in class pt.tecnico.uilib.forms.Form
- addRealField(String, String) - Method in class pt.tecnico.uilib.menus.Command
- addSavingsAccount(double, double, int) - Method in class bank.Account
- addStringField(String, String) - Method in class pt.tecnico.uilib.forms.Form
- addStringField(String, String) - Method in class pt.tecnico.uilib.menus.Command
- App - Class in bank.app
-
Interactive bank application.
- App() - Constructor for class bank.app.App
B
- BadEntryException - Exception Class in bank
-
Client id does not exist..
- BadEntryException(String) - Constructor for exception class bank.BadEntryException
- BalanceTooLowException - Exception Class in bank.account
-
Balance is lower than amount being withdrawn.
- BalanceTooLowException(int, double, double) - Constructor for exception class bank.account.BalanceTooLowException
- bank - package bank
- Bank - Class in bank
-
Banks have clients and accounts.
- Bank(String) - Constructor for class bank.Bank
-
Constructor.
- bank.account - package bank.account
- bank.app - package bank.app
- bank.app.account - package bank.app.account
- bank.app.bank - package bank.app.bank
- bank.app.client - package bank.app.client
- bank.app.exceptions - package bank.app.exceptions
- bank.app.savings - package bank.app.savings
- bank.client - package bank.client
- booleanField(String) - Method in class pt.tecnico.uilib.forms.Form
- booleanField(String) - Method in class pt.tecnico.uilib.menus.Command
C
- canBeRemoved() - Method in class bank.Account
-
Verifies whether an account can be removed.
- clear() - Method in class pt.tecnico.uilib.Display
-
Clear display.
- clear() - Method in class pt.tecnico.uilib.forms.Field
-
Mark the Input as unread
- clear() - Method in class pt.tecnico.uilib.forms.Form
-
Clear the form.
- cleared() - Method in class pt.tecnico.uilib.forms.Field
- client(int) - Method in class bank.Bank
- Client - Class in bank.client
-
Class Holder contains information about holders of bank accounts.
- Client(int, String) - Constructor for class bank.client.Client
-
Constructor (initializes id and name).
- Client(String[]) - Constructor for class bank.client.Client
-
Constructor (initializes from array of String).
- ClientException - Exception Class in bank.client
-
Basic exception class for holder-related problems.
- ClientException(int) - Constructor for exception class bank.client.ClientException
- clients() - Method in class bank.Bank
-
Return all the account holders as an unmodifiable collection.
- close() - Method in class bank.account.SavingsAccount
-
Close savings account.
- close() - Method in class pt.tecnico.uilib.Dialog
-
Close the interaction.
- close() - Method in interface pt.tecnico.uilib.InteractionDriver
-
Close all I/O channels.
- close() - Method in class pt.tecnico.uilib.swing.NewSwingInteraction
- close() - Method in class pt.tecnico.uilib.swing.SwingInteraction
- close() - Method in class pt.tecnico.uilib.text.TextInteraction
- Command<Receiver> - Class in pt.tecnico.uilib.menus
-
Command represents an operation that can be carried out by or over an entity.
- Command(boolean, String) - Constructor for class pt.tecnico.uilib.menus.Command
- Command(boolean, String, Receiver) - Constructor for class pt.tecnico.uilib.menus.Command
- Command(boolean, String, Receiver, Predicate) - Constructor for class pt.tecnico.uilib.menus.Command
- Command(String, Receiver) - Constructor for class pt.tecnico.uilib.menus.Command
- Command(String, Receiver, Predicate) - Constructor for class pt.tecnico.uilib.menus.Command
- CommandException - Exception Class in pt.tecnico.uilib.menus
-
This class represents events in unsuccessful command executions.
- CommandException(String) - Constructor for exception class pt.tecnico.uilib.menus.CommandException
- CommandException(String, Throwable) - Constructor for exception class pt.tecnico.uilib.menus.CommandException
- compareTo(Account) - Method in class bank.Account
-
Compares account numbers.
- confirm(String) - Static method in class pt.tecnico.uilib.forms.Form
- createAccount(double) - Method in class bank.Bank
-
Create and register account.
- createSavingsAccount(double, double, int) - Method in class bank.Account
- CurrentAccount - Class in bank.account
-
Class for current accounts.
- CurrentAccount(int, double) - Constructor for class bank.account.CurrentAccount
-
Initialize a current account, setting the initial balance.
- currentAccountBalance() - Method in class bank.Account
D
- deposit(double) - Method in class bank.account.CurrentAccount
-
Add the given amount to the current balance (if the amount is positive).
- deposit(double) - Method in class bank.Account
-
Makes a deposit in the current account.
- deposit(double) - Method in class bank.account.SavingsAccount
-
Savings accounts can only be initialized: they cannot be the object of deposit operations.
- Dialog - Class in pt.tecnico.uilib
-
Dialog with the user.
- Dialog(InteractionDriver) - Constructor for class pt.tecnico.uilib.Dialog
- dirty() - Method in class pt.tecnico.uilib.forms.Field
-
Mark the Input as read
- display() - Method in class pt.tecnico.uilib.Display
-
Display the text held by this display, even if the text to show is the empty string.
- Display - Class in pt.tecnico.uilib
-
Display lines of text.
- Display() - Constructor for class pt.tecnico.uilib.Display
-
Build a Display without a title and use the static IO
- Display(String) - Constructor for class pt.tecnico.uilib.Display
- Display(Dialog, String) - Constructor for class pt.tecnico.uilib.Display
- displayText() - Method in class pt.tecnico.uilib.Display
-
Display the text held by this display only if there is something to show (text is not the empty string).
- DoOpenMenu - Class in pt.tecnico.uilib.menus
-
Command to open a menu.
- DoOpenMenu(String, Menu) - Constructor for class pt.tecnico.uilib.menus.DoOpenMenu
- DuplicateClientException - Exception Class in bank.client
-
This exception represents a duplicate client problem.
- DuplicateClientException(int, String) - Constructor for exception class bank.client.DuplicateClientException
- DuplicateClientIdException - Exception Class in bank.app.exceptions
-
Client id does not exist..
- DuplicateClientIdException(int) - Constructor for exception class bank.app.exceptions.DuplicateClientIdException
E
- entries() - Method in class pt.tecnico.uilib.forms.Form
- entries() - Method in class pt.tecnico.uilib.menus.Menu
- entry(int) - Method in class pt.tecnico.uilib.menus.Menu
- equals(Object) - Method in class bank.account.CurrentAccount
- equals(Object) - Method in class bank.account.SavingsAccount
- equals(Object) - Method in class bank.Account
-
Two accounts are considered equal when they have the same account number.
- equals(Object) - Method in class bank.Bank
- equals(Object) - Method in class bank.client.Client
- execute() - Method in class pt.tecnico.uilib.menus.Command
-
Executes the command: as defined in the Command pattern, the command's execution should eventually invoke the receiver's action.
- execute() - Method in class pt.tecnico.uilib.menus.DoOpenMenu
F
- field(String) - Method in class pt.tecnico.uilib.forms.Form
- Field<Type> - Class in pt.tecnico.uilib.forms
-
This class represents an input field in a form.
- Field() - Constructor for class pt.tecnico.uilib.forms.Field
-
Build an Input without a title
- Field(String) - Constructor for class pt.tecnico.uilib.forms.Field
- FieldNone - Class in pt.tecnico.uilib.forms
-
Request no value (used as a separator within a form).
- fill(Form) - Method in class pt.tecnico.uilib.Dialog
- fill(Form) - Method in interface pt.tecnico.uilib.InteractionDriver
- fill(Form) - Method in class pt.tecnico.uilib.swing.NewSwingInteraction
- fill(Form) - Method in class pt.tecnico.uilib.swing.SwingInteraction
- fill(Form) - Method in class pt.tecnico.uilib.text.TextInteraction
- Form - Class in pt.tecnico.uilib.forms
-
A Form has a set of input fields.
- Form() - Constructor for class pt.tecnico.uilib.forms.Form
-
use default values: static UI and no title
- Form(String) - Constructor for class pt.tecnico.uilib.forms.Form
- Form(Dialog, String) - Constructor for class pt.tecnico.uilib.forms.Form
G
- getAmount() - Method in exception class bank.account.AccountOperationException
- getBalance() - Method in exception class bank.account.BalanceTooLowException
- getBalance() - Method in class bank.account.CurrentAccount
-
Returns the current balance.
- getBalance() - Method in class bank.account.SavingsAccount
-
Returns the current balance.
- getCreationDate() - Method in class bank.account.CurrentAccount
-
Returns the date of the deposit.
- getCreationDate() - Method in class bank.account.SavingsAccount
-
Returns the date of the deposit.
- getDuration() - Method in class bank.account.SavingsAccount
-
Get the account's duration.
- getEntry() - Method in exception class bank.BadEntryException
- getHolderName() - Method in exception class bank.client.DuplicateClientException
- getName() - Method in class bank.Bank
- getName() - Method in class bank.client.Client
- getNumber() - Method in exception class bank.account.AccountException
- getNumber() - Method in class bank.account.CurrentAccount
-
Return the deposit account number.
- getNumber() - Method in class bank.account.SavingsAccount
-
Return the deposit account number.
- getNumber() - Method in class bank.Account
- getNumber() - Method in class bank.client.Client
- getNumber() - Method in exception class bank.client.ClientException
- getRate() - Method in class bank.account.CurrentAccount
-
Return the account rate.
- getRate() - Method in class bank.account.SavingsAccount
-
Return the account rate.
H
I
- importFile(String) - Method in class bank.Bank
-
Simple function to parse basic information about accounts and holders.
- integerField(String) - Method in class pt.tecnico.uilib.forms.Form
- integerField(String) - Method in class pt.tecnico.uilib.menus.Command
- InteractionDriver - Interface in pt.tecnico.uilib
-
Generic interaction driver (back-end).
- InvalidAccountIdException - Exception Class in bank.app.exceptions
-
User interface exception invalid withdrawal operations.
- InvalidAccountIdException(int) - Constructor for exception class bank.app.exceptions.InvalidAccountIdException
- InvalidClientIdException - Exception Class in bank.app.exceptions
-
Client id does not exist..
- InvalidClientIdException(int) - Constructor for exception class bank.app.exceptions.InvalidClientIdException
- InvalidDateException - Exception Class in bank.app.exceptions
-
User exception for presenting bad dates.
- InvalidDateException(int) - Constructor for exception class bank.app.exceptions.InvalidDateException
- InvalidDepositException - Exception Class in bank.account
-
Exception for unsuccessful deposit operations.
- InvalidDepositException(int, double) - Constructor for exception class bank.account.InvalidDepositException
- InvalidDepositUIException - Exception Class in bank.app.exceptions
-
User interface exception invalid withdrawal operations.
- InvalidDepositUIException(int, double) - Constructor for exception class bank.app.exceptions.InvalidDepositUIException
- InvalidRemovalException - Exception Class in bank.account
-
Exception for unsuccessful removal operations.
- InvalidRemovalException(int, double) - Constructor for exception class bank.account.InvalidRemovalException
- InvalidRemovalUIException - Exception Class in bank.app.exceptions
-
User interface exception invalid withdrawal operations.
- InvalidRemovalUIException(int, double) - Constructor for exception class bank.app.exceptions.InvalidRemovalUIException
- InvalidSavingsAccountIdException - Exception Class in bank.app.exceptions
-
User interface exception invalid withdrawal operations.
- InvalidSavingsAccountIdException(int) - Constructor for exception class bank.app.exceptions.InvalidSavingsAccountIdException
- InvalidWithdrawalException - Exception Class in bank.account
-
Exception for unsuccessful withdrawal operations.
- InvalidWithdrawalException(int, double) - Constructor for exception class bank.account.InvalidWithdrawalException
- InvalidWithdrawalUIException - Exception Class in bank.app.exceptions
-
User interface exception invalid withdrawal operations.
- InvalidWithdrawalUIException(int, double) - Constructor for exception class bank.app.exceptions.InvalidWithdrawalUIException
- isLast() - Method in class pt.tecnico.uilib.menus.Command
-
Indicates whether, in a menu, this is the last command.
- isReadOnly() - Method in class pt.tecnico.uilib.forms.Field
-
Is the input field read-only.
- isReadOnly() - Method in class pt.tecnico.uilib.forms.FieldNone
-
Is the input field read-only.
- isValid() - Method in class pt.tecnico.uilib.menus.Command
L
- load(String) - Static method in class bank.Bank
M
- main(String[]) - Static method in class bank.app.App
- Menu - Class in bank.app.account
-
Menu for bank accounts.
- Menu - Class in bank.app.bank
-
Bank menu.
- Menu - Class in bank.app.client
-
This class represents the Menu for BankAccounts.
- Menu - Class in bank.app.savings
-
Menu for savings accounts.
- Menu - Class in pt.tecnico.uilib.menus
-
Class Menu manages a list of commands.
- Menu(SavingsAccount) - Constructor for class bank.app.savings.Menu
- Menu(Account, Bank) - Constructor for class bank.app.account.Menu
- Menu(Bank) - Constructor for class bank.app.bank.Menu
- Menu(Client) - Constructor for class bank.app.client.Menu
- Menu(String, Command...) - Constructor for class pt.tecnico.uilib.menus.Menu
- Menu(Dialog, String, Command...) - Constructor for class pt.tecnico.uilib.menus.Menu
N
- NAME_COMPARATOR - Static variable in class bank.client.Client
-
NAME_COMPARATOR allow comparing holders based on their names.
- NegativeAmountException - Exception Class in bank.account
-
Exception for negative amounts.
- NegativeAmountException(int, double) - Constructor for exception class bank.account.NegativeAmountException
- NegativeDepositUIException - Exception Class in bank.app.exceptions
-
User interface exception invalid withdrawal operations.
- NegativeDepositUIException(double) - Constructor for exception class bank.app.exceptions.NegativeDepositUIException
- NegativeWithdrawalUIException - Exception Class in bank.app.exceptions
-
User interface exception invalid withdrawal operations.
- NegativeWithdrawalUIException(double) - Constructor for exception class bank.app.exceptions.NegativeWithdrawalUIException
- NewSwingInteraction - Class in pt.tecnico.uilib.swing
-
New Swing interaction back-end.
- NewSwingInteraction() - Constructor for class pt.tecnico.uilib.swing.NewSwingInteraction
-
Constructor.
- NoBalanceWithdrawalUIException - Exception Class in bank.app.exceptions
-
User interface exception invalid withdrawal operations.
- NoBalanceWithdrawalUIException(double, double) - Constructor for exception class bank.app.exceptions.NoBalanceWithdrawalUIException
- NoSuchAccountException - Exception Class in bank.account
-
Account does not exist.
- NoSuchAccountException(int) - Constructor for exception class bank.account.NoSuchAccountException
- NoSuchClientException - Exception Class in bank.client
-
Client does not exist.
- NoSuchClientException(int) - Constructor for exception class bank.client.NoSuchClientException
- NoSuchSavingsAccountException - Exception Class in bank.account
-
Account does not exist.
- NoSuchSavingsAccountException(int) - Constructor for exception class bank.account.NoSuchSavingsAccountException
- NUMBER_COMPARATOR - Static variable in class bank.client.Client
-
NUMBER_COMPARATOR allow comparing holders based on their numbers.
O
- open() - Method in class pt.tecnico.uilib.menus.Menu
-
The menu interacts with the user and executes the appropriate commands.
- open(Menu) - Method in class pt.tecnico.uilib.Dialog
- open(Menu) - Method in interface pt.tecnico.uilib.InteractionDriver
- open(Menu) - Method in class pt.tecnico.uilib.swing.NewSwingInteraction
- open(Menu) - Method in class pt.tecnico.uilib.swing.SwingInteraction
- open(Menu) - Method in class pt.tecnico.uilib.text.TextInteraction
- optionField(String) - Method in class pt.tecnico.uilib.forms.Form
- optionField(String) - Method in class pt.tecnico.uilib.menus.Command
P
- parse() - Method in class pt.tecnico.uilib.forms.Form
-
Request the parsing of all the form's fields, clearing previous field values.
- parse(boolean) - Method in class pt.tecnico.uilib.forms.Form
-
Request the parsing of all the form's fields.
- parse(String) - Method in class pt.tecnico.uilib.forms.Field
-
Each Input must parse its own specific type of value, written in accordance with the specific regular expression.
- parse(String) - Method in class pt.tecnico.uilib.forms.FieldNone
- performCommand() - Method in class pt.tecnico.uilib.menus.Command
- popup(Object) - Method in class pt.tecnico.uilib.Display
-
Easy display method.
- popup(Collection) - Method in class pt.tecnico.uilib.Display
-
Easy display method.
- prompt() - Method in class pt.tecnico.uilib.forms.Field
- pt.tecnico.uilib - package pt.tecnico.uilib
- pt.tecnico.uilib.forms - package pt.tecnico.uilib.forms
- pt.tecnico.uilib.menus - package pt.tecnico.uilib.menus
- pt.tecnico.uilib.swing - package pt.tecnico.uilib.swing
- pt.tecnico.uilib.text - package pt.tecnico.uilib.text
R
- realField(String) - Method in class pt.tecnico.uilib.forms.Form
- realField(String) - Method in class pt.tecnico.uilib.menus.Command
- registerClient(int, String) - Method in class bank.Bank
- removeAccount(Account) - Method in class bank.Bank
-
Remove an account.
- removeClient(int) - Method in class bank.Bank
- removeSavingsAccount(SavingsAccount) - Method in class bank.Account
-
Remove a given savings account.
- render(String, String) - Method in class pt.tecnico.uilib.Dialog
- render(String, String) - Method in interface pt.tecnico.uilib.InteractionDriver
- render(String, String) - Method in class pt.tecnico.uilib.swing.NewSwingInteraction
- render(String, String) - Method in class pt.tecnico.uilib.swing.SwingInteraction
- render(String, String) - Method in class pt.tecnico.uilib.text.TextInteraction
- requestInteger(String) - Static method in class pt.tecnico.uilib.forms.Form
- requestOption(String, String...) - Static method in class pt.tecnico.uilib.forms.Form
- requestReal(String) - Static method in class pt.tecnico.uilib.forms.Form
- requestString(String) - Static method in class pt.tecnico.uilib.forms.Form
S
- save(String) - Method in class bank.Bank
- savingsAccount(int) - Method in class bank.Account
-
Returns the savings accounts associated with the bank account.
- SavingsAccount - Class in bank.account
-
Class for savings accounts.
- SavingsAccount(int, double, double, int, Account) - Constructor for class bank.account.SavingsAccount
- savingsAccounts() - Method in class bank.Account
-
Returns the savings accounts associated with the bank account.
- set(Type) - Method in class pt.tecnico.uilib.forms.Field
- setName(String) - Method in class bank.client.Client
- size() - Method in class pt.tecnico.uilib.menus.Menu
- stringField(String) - Method in class pt.tecnico.uilib.forms.Form
- stringField(String) - Method in class pt.tecnico.uilib.menus.Command
- SwingInteraction - Class in pt.tecnico.uilib.swing
-
Swing interaction back-end.
- SwingInteraction() - Constructor for class pt.tecnico.uilib.swing.SwingInteraction
-
Constructor.
T
- TextInteraction - Class in pt.tecnico.uilib.text
-
Text interaction back-end (either through the keyboard or files).
- TextInteraction() - Constructor for class pt.tecnico.uilib.text.TextInteraction
-
Constructor (package).
- title() - Method in class pt.tecnico.uilib.forms.Form
- title() - Method in class pt.tecnico.uilib.menus.Command
- title() - Method in class pt.tecnico.uilib.menus.Menu
- toString() - Method in class bank.account.CurrentAccount
- toString() - Method in class bank.account.SavingsAccount
- toString() - Method in class bank.Account
-
String representation of the account: presents the account number and the total balance.
- toString() - Method in class bank.client.Client
- toString() - Method in class pt.tecnico.uilib.forms.Field
- toString() - Method in exception class pt.tecnico.uilib.menus.CommandException
- totalBalance() - Method in class bank.Account
-
Returns the total balance for the account.
U
V
W
- withdraw(double) - Method in class bank.account.CurrentAccount
-
Withdraw a given amount: the balance must be grater or equal to the amount to be withdrawn.
- withdraw(double) - Method in class bank.account.SavingsAccount
-
Withdrawals cannot be performed on savings accounts.
- withdraw(double) - Method in class bank.Account
-
Performs a withdrawal.
_
- _display - Variable in class pt.tecnico.uilib.menus.Command
-
This command's display.
- _receiver - Variable in class pt.tecnico.uilib.menus.Command
-
The entity providing the command's context.
- _valid - Variable in class pt.tecnico.uilib.menus.Command
-
The validity predicate: is the command available/visible?
- _value - Variable in class pt.tecnico.uilib.forms.Field
-
value to be read
All Classes and Interfaces|All Packages|Serialized Form