src/main/java/seedu/address/ui/MainWindow.java
/**
     * Updates the calorie panels with calorie values of the day that is viewed.
     *
     * @param indexOfDayViewed the index (zeroBased) of the day that is viewed
     */
Updates the calorie panels with calorie values of the day that is viewed.
@param indexOfDayViewed the index (zeroBased) of the day that is viewed
Updates the calorie panels with calorie values of the day that is viewed . @param indexOfDayViewed the index ( zeroBased ) of the day that is viewed
void updateCaloriePanelsWhenViewed(int indexOfDayViewed) {
        indexOfDayCurrentlyShowingCalories = indexOfDayViewed;
        calorieInputListPanel.update(logic.getFilteredDayList().get(indexOfDayViewed).getCalorieManager()
                .getCalorieInputList());
        calorieOutputListPanel.update(logic.getFilteredDayList().get(indexOfDayViewed).getCalorieManager()
                .getCalorieOutputList());
    }
void updateCaloriePanelsWhenViewed ( int indexOfDayViewed ) { indexOfDayCurrentlyShowingCalories = indexOfDayViewed ; calorieInputListPanel . update ( logic . getFilteredDayList ( ) . get ( indexOfDayViewed ) . getCalorieManager ( ) . getCalorieInputList ( ) ) ; calorieOutputListPanel . update ( logic . getFilteredDayList ( ) . get ( indexOfDayViewed ) . getCalorieManager ( ) . getCalorieOutputList ( ) ) ; }
Updates the calorie panels with calorie values of the day that is viewed.
Updates the calorie panels with calorie values of the day that is viewed .