Android Open Source - journal Expense Edit Listener






From Project

Back to project page journal.

License

The source code is released under:

MIT License

If you think the Android project journal listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package cochrane343.journal;
/*from w w  w .ja  v a2 s.c  o  m*/
/**
 * Callback interface for adding, updating and deleting expenses.
 * 
 * @author cochrane34
 * @since 1.0
 */
public interface ExpenseEditListener {
    /**
     * Callback method to be invoked for adding a new expense.
     * @param description the descriptive text for the expense to add
     * @param costInCents the cost of the expense to add in cents
     * @param category the id of the category of the expense to add
     */
    void onAddExpense(final String description, final long costInCents, final long category);
    
    /**
     * Callback method to be invoked for updating an existing expense.
     * @param id the id of the expense to update
     * @param description the new descriptive text for the expense to update
     * @param costInCents the new cost in cents of the expense to update 
     * @param category the new id of the category of the expense to update
     */
    void onUpdateExpense(final long id, final String description, final long costInCents, final long category);

    /**
     * Callback method to be invoked for deleting an existing expense.
     * @param id the id of the expense to delete
     */
    void onDeleteExpense(final long id);
}




Java Source Code List

cochrane343.journal.Constants.java
cochrane343.journal.CurrencyHelper.java
cochrane343.journal.DateTimeHelper.java
cochrane343.journal.ExpenseEditListener.java
cochrane343.journal.ExpensesListAdapter.java
cochrane343.journal.MainActivity.java
cochrane343.journal.MonthlyExpensesFragment.java
cochrane343.journal.MonthlyExpensesPagerAdapter.java
cochrane343.journal.SettingsActivity.java
cochrane343.journal.TranslationHelper.java
cochrane343.journal.contentprovider.JournalContentProvider.java
cochrane343.journal.contentprovider.JournalContract.java
cochrane343.journal.contentprovider.JournalDatabaseHelper.java
cochrane343.journal.dialogs.CategorySpinnerAdapter.java
cochrane343.journal.dialogs.ExpenseDialogFragment.java
cochrane343.journal.dialogs.ExpenseDialogListener.java
cochrane343.journal.exceptions.IllegalDisplayModeException.java
cochrane343.journal.exceptions.IllegalLoaderIdException.java
cochrane343.journal.exceptions.IllegalUriException.java
cochrane343.journal.exceptions.MissingFragmentArgumentException.java