Examples of IssueModel


Examples of com.andrewnatoli.jbug.controlpanel.issue.IssueModel

                Statement issuesStatement = Database.conn.createStatement();
                ResultSet issueSet = issuesStatement.executeQuery(q);
                while(issueSet.next()) {
                    //Add the issue to our ArrayList
                    int issue_id = issueSet.getInt("issue_id");
                    issues.add(new IssueModel(issue_id));
                    System.out.println("Added issue " + issue_id);
                }
                issuesStatement.close();
            }
View Full Code Here

Examples of com.andrewnatoli.jbug.controlpanel.issue.IssueModel

    private JButton btn_view;
    private String project_name;
    private String issue_date;

    public OverviewIssueComponent(int issue_id) {
        final IssueModel issue = new IssueModel(issue_id);
        ProjectModel project = new ProjectModel(issue.getProject_id());
        setMaximumSize(new Dimension(500, 75));
        setLayout(new BorderLayout());

        setBorder(BorderFactory.createTitledBorder(issue.getDate_created() + " - " + project.getTitle()));
        String title = issue.getTitle();
        if(title.length() > 80) {
            title = title.substring(0,80) + "... ";
        }
        lbl_title = new JLabel(title);

        /**
         * JButton to view the issue
         */
        btn_view  = new JButton("View Ticket");
        btn_view.addActionListener(new ActionListener() {
            /**
             * Tell the OverviewController to show the IssueView for the ticket we clicked on.
             * @param actionEvent
             */
            @Override
            public void actionPerformed(ActionEvent actionEvent) {
                ControlPanelController.showIssue(issue.getIssue_id());
            }
        });

        add(lbl_title, BorderLayout.CENTER);
        add(btn_view, BorderLayout.EAST);
View Full Code Here
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.