src/main/java/seedu/address/ui/MainWindow.java
/**
     * Updates the calorie lists and status bar when a view command is used.
     *
     * @param indexOfDayToView index of the item to be viewed.
     */
Updates the calorie lists and status bar when a view command is used.
@param indexOfDayToView index of the item to be viewed.
Updates the calorie lists and status bar when a view command is used . @param indexOfDayToView index of the item to be viewed .
@FXML
    public void handleView(int indexOfDayToView) {
        updateCaloriePanelsWhenViewed(indexOfDayToView);
        setDateLabel(logic.getFilteredDayList().get(indexOfDayToView).getDate().get().toString());
    }
@ FXML public void handleView ( int indexOfDayToView ) { updateCaloriePanelsWhenViewed ( indexOfDayToView ) ; setDateLabel ( logic . getFilteredDayList ( ) . get ( indexOfDayToView ) . getDate ( ) . get ( ) . toString ( ) ) ; }
Updates the calorie lists and status bar when a view command is used.
Updates the calorie lists and status bar when a view command is used .