// Path: app/src/main/java/ajitsingh/com/expensemanager/activity/CurrentMonthExpenseFragment.java
// public class CurrentMonthExpenseFragment extends Fragment implements CurrentMonthExpenseView {
// 
//   @Override
//   public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//     return inflater.inflate(R.layout.expense_graph, container, false);
//   }
// 
//   @Override
//   public void onActivityCreated(Bundle savedInstanceState) {
//     super.onActivityCreated(savedInstanceState);
// 
//     ExpenseDatabaseHelper expenseDatabaseHelper = new ExpenseDatabaseHelper(getActivity());
//     CurrentMonthExpensePresenter presenter = new CurrentMonthExpensePresenter(this, expenseDatabaseHelper);
// 
//     presenter.plotGraph();
//     presenter.showTotalExpense();
//     expenseDatabaseHelper.close();
//   }
// 
//   @Override
//   public void displayGraph(List<Bar> points) {
//     BarGraph graph = (BarGraph)getActivity().findViewById(R.id.graph);
//     graph.setBars((ArrayList<Bar>) points);
//   }
// 
//   @Override
//   public void displayTotalExpense(Long totalExpense) {
//     TextView totalExpenseTextBox = (TextView) getActivity().findViewById(R.id.current_months_total_expense);
//     totalExpenseTextBox.setText(getString(R.string.total_expense) + " " + getString(R.string.rupee_sym) + totalExpense);
//   }
// 
//   @Override
//   public int getGraphColor() {
//     return getActivity().getResources().getColor(R.color.light_blue);
//   }
// }
// 
// Path: app/src/main/java/ajitsingh/com/expensemanager/activity/CurrentWeekExpenseFragment.java
// public class CurrentWeekExpenseFragment extends Fragment implements CurrentWeekExpenseView {
// 
//   @Override
//   public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//     return inflater.inflate(R.layout.current_week_expenses, container, false);
//   }
// 
//   @Override
//   public void onActivityCreated(Bundle savedInstanceState) {
//     super.onActivityCreated(savedInstanceState);
// 
//     ExpenseDatabaseHelper expenseDatabaseHelper = new ExpenseDatabaseHelper(getActivity());
//     CurrentWeekExpensePresenter presenter = new CurrentWeekExpensePresenter(expenseDatabaseHelper, this);
//     presenter.renderTotalExpenses();
//     presenter.renderCurrentWeeksExpenses();
//     expenseDatabaseHelper.close();
//   }
// 
//   @Override
//   public void displayCurrentWeeksExpenses(Map<String, List<Expense>> expensesByDate) {
//     ExpandableListView listView = (ExpandableListView) getActivity().findViewById(R.id.current_week_expenses_list);
//     listView.setAdapter(new CurrentWeeksExpenseAdapter(getActivity(), expensesByDate));
//   }
// 
//   @Override
//   public void displayTotalExpenses(Long totalExpense) {
//     TextView totalExpenseTextBox = (TextView) getActivity().findViewById(R.id.current_week_expense);
//     totalExpenseTextBox.setText(getString(R.string.total_expense) + " " + getString(R.string.rupee_sym) + totalExpense);
//   }
// }
// 
// Path: app/src/main/java/ajitsingh/com/expensemanager/view/NavigationDrawerItemView.java
// public interface NavigationDrawerItemView {
//     void render(Fragment fragment);
// 
//     void goToHome();
// }


import ajitsingh.com.expensemanager.activity.CurrentMonthExpenseFragment;
import ajitsingh.com.expensemanager.activity.CurrentWeekExpenseFragment;
import ajitsingh.com.expensemanager.view.NavigationDrawerItemView;
package ajitsingh.com.expensemanager.presenter;


public class NavigationDrawerPresenter {

  public static final String THIS_WEEK = "This Week";
  public static final String THIS_MONTH = "This Month";
  public static final String HOME = "Home";
  private NavigationDrawerItemView view;

  public NavigationDrawerPresenter(NavigationDrawerItemView view) {
    this.view = view;
  }

// Path: app/src/main/java/ajitsingh/com/expensemanager/activity/CurrentMonthExpenseFragment.java
// public class CurrentMonthExpenseFragment extends Fragment implements CurrentMonthExpenseView {
// 
//   @Override
//   public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//     return inflater.inflate(R.layout.expense_graph, container, false);
//   }
// 
//   @Override
//   public void onActivityCreated(Bundle savedInstanceState) {
//     super.onActivityCreated(savedInstanceState);
// 
//     ExpenseDatabaseHelper expenseDatabaseHelper = new ExpenseDatabaseHelper(getActivity());
//     CurrentMonthExpensePresenter presenter = new CurrentMonthExpensePresenter(this, expenseDatabaseHelper);
// 
//     presenter.plotGraph();
//     presenter.showTotalExpense();
//     expenseDatabaseHelper.close();
//   }
// 
//   @Override
//   public void displayGraph(List<Bar> points) {
//     BarGraph graph = (BarGraph)getActivity().findViewById(R.id.graph);
//     graph.setBars((ArrayList<Bar>) points);
//   }
// 
//   @Override
//   public void displayTotalExpense(Long totalExpense) {
//     TextView totalExpenseTextBox = (TextView) getActivity().findViewById(R.id.current_months_total_expense);
//     totalExpenseTextBox.setText(getString(R.string.total_expense) + " " + getString(R.string.rupee_sym) + totalExpense);
//   }
// 
//   @Override
//   public int getGraphColor() {
//     return getActivity().getResources().getColor(R.color.light_blue);
//   }
// }
// 
// Path: app/src/main/java/ajitsingh/com/expensemanager/activity/CurrentWeekExpenseFragment.java
// public class CurrentWeekExpenseFragment extends Fragment implements CurrentWeekExpenseView {
// 
//   @Override
//   public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//     return inflater.inflate(R.layout.current_week_expenses, container, false);
//   }
// 
//   @Override
//   public void onActivityCreated(Bundle savedInstanceState) {
//     super.onActivityCreated(savedInstanceState);
// 
//     ExpenseDatabaseHelper expenseDatabaseHelper = new ExpenseDatabaseHelper(getActivity());
//     CurrentWeekExpensePresenter presenter = new CurrentWeekExpensePresenter(expenseDatabaseHelper, this);
//     presenter.renderTotalExpenses();
//     presenter.renderCurrentWeeksExpenses();
//     expenseDatabaseHelper.close();
//   }
// 
//   @Override
//   public void displayCurrentWeeksExpenses(Map<String, List<Expense>> expensesByDate) {
//     ExpandableListView listView = (ExpandableListView) getActivity().findViewById(R.id.current_week_expenses_list);
//     listView.setAdapter(new CurrentWeeksExpenseAdapter(getActivity(), expensesByDate));
//   }
// 
//   @Override
//   public void displayTotalExpenses(Long totalExpense) {
//     TextView totalExpenseTextBox = (TextView) getActivity().findViewById(R.id.current_week_expense);
//     totalExpenseTextBox.setText(getString(R.string.total_expense) + " " + getString(R.string.rupee_sym) + totalExpense);
//   }
// }
// 
// Path: app/src/main/java/ajitsingh/com/expensemanager/view/NavigationDrawerItemView.java
// public interface NavigationDrawerItemView {
//     void render(Fragment fragment);
// 
//     void goToHome();
// }


// Path: app/src/main/java/ajitsingh/com/expensemanager/presenter/NavigationDrawerPresenter.java
import ajitsingh.com.expensemanager.activity.CurrentMonthExpenseFragment;
import ajitsingh.com.expensemanager.activity.CurrentWeekExpenseFragment;
import ajitsingh.com.expensemanager.view.NavigationDrawerItemView;

package ajitsingh.com.expensemanager.presenter;


public class NavigationDrawerPresenter {

  public static final String THIS_WEEK = "This Week";
  public static final String THIS_MONTH = "This Month";
  public static final String HOME = "Home";
  private NavigationDrawerItemView view;

  public NavigationDrawerPresenter(NavigationDrawerItemView view) {
    this.view = view;
  }

  public void onItemSelected(String drawerItem) {