Package bg.smoc.model.web

Examples of bg.smoc.model.web.ResultsRow.addCell()


    private void loadHeaderList() {
        ResultsRow headerRow = resultsTable.addHeader();
        ResultsStyle styleHeader = new ResultsStyle();
        styleHeader.setBold(true);

        headerRow.addCell("Rank", styleHeader);
        headerRow.addCell("Names", styleHeader);
        headerRow.addCell("Team", styleHeader);
        for (Contest contest : selectedContests) {
            headerRow.addCell("Login", styleHeader);
            for (Task task : contest.getTasks()) {
View Full Code Here


        ResultsRow headerRow = resultsTable.addHeader();
        ResultsStyle styleHeader = new ResultsStyle();
        styleHeader.setBold(true);

        headerRow.addCell("Rank", styleHeader);
        headerRow.addCell("Names", styleHeader);
        headerRow.addCell("Team", styleHeader);
        for (Contest contest : selectedContests) {
            headerRow.addCell("Login", styleHeader);
            for (Task task : contest.getTasks()) {
                if (includeTestGroupResults) {
View Full Code Here

        ResultsStyle styleHeader = new ResultsStyle();
        styleHeader.setBold(true);

        headerRow.addCell("Rank", styleHeader);
        headerRow.addCell("Names", styleHeader);
        headerRow.addCell("Team", styleHeader);
        for (Contest contest : selectedContests) {
            headerRow.addCell("Login", styleHeader);
            for (Task task : contest.getTasks()) {
                if (includeTestGroupResults) {
                    for (int i = 0; i < task.getTestGroups().size(); ++i) {
View Full Code Here

        headerRow.addCell("Rank", styleHeader);
        headerRow.addCell("Names", styleHeader);
        headerRow.addCell("Team", styleHeader);
        for (Contest contest : selectedContests) {
            headerRow.addCell("Login", styleHeader);
            for (Task task : contest.getTasks()) {
                if (includeTestGroupResults) {
                    for (int i = 0; i < task.getTestGroups().size(); ++i) {
                        headerRow.addCell(Integer.toString(i + 1), styleHeader);
                    }
View Full Code Here

        for (Contest contest : selectedContests) {
            headerRow.addCell("Login", styleHeader);
            for (Task task : contest.getTasks()) {
                if (includeTestGroupResults) {
                    for (int i = 0; i < task.getTestGroups().size(); ++i) {
                        headerRow.addCell(Integer.toString(i + 1), styleHeader);
                    }
                }
                headerRow.addCell(task.getName(), styleHeader);
            }
            headerRow.addCell(needsGrandTotal() ? contest.getShortName() : "Total", styleHeader);
View Full Code Here

                if (includeTestGroupResults) {
                    for (int i = 0; i < task.getTestGroups().size(); ++i) {
                        headerRow.addCell(Integer.toString(i + 1), styleHeader);
                    }
                }
                headerRow.addCell(task.getName(), styleHeader);
            }
            headerRow.addCell(needsGrandTotal() ? contest.getShortName() : "Total", styleHeader);
        }
        if (needsGrandTotal()) {
            headerRow.addCell("Grand total", styleHeader);
View Full Code Here

                        headerRow.addCell(Integer.toString(i + 1), styleHeader);
                    }
                }
                headerRow.addCell(task.getName(), styleHeader);
            }
            headerRow.addCell(needsGrandTotal() ? contest.getShortName() : "Total", styleHeader);
        }
        if (needsGrandTotal()) {
            headerRow.addCell("Grand total", styleHeader);
        }
    }
View Full Code Here

                headerRow.addCell(task.getName(), styleHeader);
            }
            headerRow.addCell(needsGrandTotal() ? contest.getShortName() : "Total", styleHeader);
        }
        if (needsGrandTotal()) {
            headerRow.addCell("Grand total", styleHeader);
        }
    }

    private boolean needsGrandTotal() {
        return selectedContests.size() > 1;
View Full Code Here

    private UserContestData reportForUser(Contest contest, String login) {
        BigDecimal totalPoints = BigDecimal.ZERO;

        ResultsRow row = new ResultsRow();
        row.addCell(login);
        for (Task task : contest.getTasks()) {
            AccumulatedGrade testResults = graderManager.getResult(contest.getId(), login, task);
            if (includeTestGroupResults) {
                for (int i = 0; i < testResults.getTestGroups().size(); ++i) {
                    ResultsCell cell = new ResultsCell("-");
View Full Code Here

                                    + login
                                    + "&taskId="
                                    + task.getNameForTest(i + 1));
                        }
                    }
                    row.addCell(cell);
                }
            }
            if (testResults != null) {
                totalPoints = totalPoints.add(new BigDecimal(testResults.getTotal()));
            }
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.