@Override public boolean isPageValid() { // an account was selected, make sure that the destination is valid if (destinationAccount == null) { destinationAccount = accountCombo.getSelectedAccount(); } return true; }
private void accountAction() { destinationAccount = accountCombo.getSelectedAccount(); /* Save the id of the selected account */ if (destinationAccount != null) { pref.put(LAST_ACCOUNT, destinationAccount.getUuid()); pref.putInt(DATE_FORMAT, dateFormatCombo.getSelectedIndex()); } }
public Account getAccount() { if (destinationAccount == null) { destinationAccount = accountCombo.getSelectedAccount(); } return destinationAccount; }