if ("saveButton".equals(e.getActionCommand())) {
currentPayee.setName(name.getText());
currentPayee.setFilters(filters.getText());
currentPayee.setActive(new Boolean(true));
DAOFactory daoFactory = new DAOFactory();
PayeeDAO payeeDao = (PayeeDAO)daoFactory.getDAO("payee");
payeeDao.store(currentPayee, false);
buildPayeesTree();
buildPayeeDropDown();
checkButtonStatus();
}
else if ("clearButton".equals(e.getActionCommand())) {
currentPayee = new Payee();
name.setText(currentPayee.getName());
filters.setText(currentPayee.getFilters());
updateRegisterTableData();
checkButtonStatus();
}
else if ("deleteButton".equals(e.getActionCommand())) {
DAOFactory daoFactory = new DAOFactory();
PayeeDAO payeeDao = (PayeeDAO)daoFactory.getDAO("payee");
currentPayee.setActive(new Boolean(false));
payeeDao.delete(currentPayee);
currentPayee = new Payee();
name.setText(currentPayee.getName());
filters.setText(currentPayee.getFilters());
updateRegisterTableData();