Package com.andrewnatoli.jbug.controlpanel.overview

Source Code of com.andrewnatoli.jbug.controlpanel.overview.OverviewController

package com.andrewnatoli.jbug.controlpanel.overview;

import com.andrewnatoli.jbug.authentication.CurrentUser;
import com.andrewnatoli.jbug.controlpanel.overview.uicomponents.OverviewIssueComponent;

public class OverviewController extends OverviewView{
    protected OverviewModel model;
    public OverviewController() {
        model = new OverviewModel(CurrentUser.getUser_id());
        addIssuesToView();
    }

    /**
     * addIssuesToView - Generates the OverviewIssueComponents to display the issues we found
     * and then updates the view.
     */
    private void addIssuesToView() {
        for(int i=0; i<model.issues.size(); i++) {
            issueList.add(new OverviewIssueComponent(model.issues.get(i).getIssue_id()));
        }
        updateView();
    }
}
TOP

Related Classes of com.andrewnatoli.jbug.controlpanel.overview.OverviewController

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.