Examples of HtmlTableRow


Examples of pt.ist.fenixWebFramework.renderers.components.HtmlTableRow

        }

        private void generateGroupRowWithText(final HtmlTable mainTable, final String text, boolean addHeaders, final int level,
                final CurriculumGroup curriculumGroup) {

            final HtmlTableRow groupRow = mainTable.createRow();
            groupRow.setClasses(getCurriculumGroupRowClass());
            addTabsToRow(groupRow, level);

            final HtmlTableCell cell = groupRow.createCell();
            cell.setClasses(getLabelCellClass());

            final HtmlComponent body;
            if (curriculumGroup != null && curriculumGroup.isRoot()) {
                body =
                        createDegreeCurricularPlanNameLink(curriculumGroup.getDegreeCurricularPlanOfDegreeModule(),
                                executionPeriodContext);
            } else {
                body = new HtmlText(createGroupName(text, curriculumGroup).toString(), false);
            }
            cell.setBody(body);

            if (!addHeaders) {
                cell.setColspan(MAX_LINE_SIZE - level);// - 2);
                // generateRulesInfo(groupRow, curriculumGroup);
            } else {
                cell.setColspan(MAX_COL_SPAN_FOR_TEXT_ON_GROUPS_WITH_CHILDS - level);

                generateHeadersForGradeWeightAndEctsCredits(groupRow);
                final HtmlTableCell cellAfterEcts = groupRow.createCell();
                cellAfterEcts.setColspan(MAX_LINE_SIZE - MAX_COL_SPAN_FOR_TEXT_ON_GROUPS_WITH_CHILDS - HEADERS_SIZE);// -
                // 2);

                // generateRulesInfo(groupRow, curriculumGroup);
            }
View Full Code Here

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlTableRow

                generateDismissalRow(mainTable, dismissal, level);
            }
        }

        private void generateDismissalRow(HtmlTable mainTable, Dismissal dismissal, int level) {
            final HtmlTableRow dismissalRow = mainTable.createRow();
            addTabsToRow(dismissalRow, level);
            dismissalRow
                    .setClasses(dismissal.getCredits().isTemporary() ? getTemporaryDismissalRowClass() : getDismissalRowClass());

            generateDismissalLabelCell(mainTable, dismissalRow, dismissal, level);
            generateCellsBetweenLabelAndGradeCell(dismissalRow);
            generateDismissalGradeCell(dismissalRow, dismissal);
View Full Code Here

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlTableRow

        }

        private void generateExternalEnrolmentRow(HtmlTable mainTable, ExternalEnrolment externalEnrolment, int level,
                boolean isFromDetail) {

            final HtmlTableRow externalEnrolmentRow = mainTable.createRow();
            externalEnrolmentRow.setClasses(getEnrolmentRowClass());
            addTabsToRow(externalEnrolmentRow, level);

            generateExternalEnrolmentLabelCell(externalEnrolmentRow, externalEnrolment, level);
            generateCellsBetweenLabelAndGradeCell(externalEnrolmentRow);
            generateEnrolmentGradeCell(externalEnrolmentRow, externalEnrolment);
View Full Code Here

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlTableRow

            }
        }

        private void generateEnrolmentRow(HtmlTable mainTable, Enrolment enrolment, int level, boolean allowSelection,
                boolean isFromDetail, boolean isDismissal) {
            final HtmlTableRow enrolmentRow = mainTable.createRow();
            addTabsToRow(enrolmentRow, level);
            enrolmentRow.setClasses(getEnrolmentRowClass());

            if (enrolment.isEnroled()) {
                generateEnrolmentWithStateEnroled(enrolmentRow, enrolment, level, allowSelection);
            } else {
                generateCurricularCourseCodeAndNameCell(enrolmentRow, enrolment, level, allowSelection);
View Full Code Here

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlTableRow

            if (evaluation == null) {
                return;
            }

            final HtmlTableRow enrolmentRow = mainTable.createRow();

            addTabsToRow(enrolmentRow, level);
            enrolmentRow.setClasses(getEnrolmentRowClass());

            generateCellWithText(enrolmentRow, evaluation.getEnrolmentEvaluationTypeDescription(), getLabelCellClass(),
                    MAX_COL_SPAN_FOR_TEXT_ON_CURRICULUM_LINES - level);
            generateCellWithText(enrolmentRow, "", getEnrolmentTypeCellClass(), ENROLLMENT_EVALUATION_TYPE_NEXT_COLUMN_SPAN);
View Full Code Here

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlTableRow

            }
        }

        private void generateGroupRowWithText(final HtmlTable mainTable, final String text, boolean addHeaders, final int level) {

            final HtmlTableRow groupRow = mainTable.createRow();
            groupRow.setClasses(getHeaderRowClass());

            final HtmlTableCell textCell = groupRow.createCell();
            textCell.setText(text);
            textCell.setClasses(getLabelCellClass());
            textCell.setRowspan(2);
            textCell.setColspan(MAX_COL_SPAN_FOR_TEXT_ON_CURRICULUM_LINES);

            final HtmlTableCell averageCell = groupRow.createCell();
            averageCell.setText("Média de Curso");
            averageCell.setClasses(getGradeCellClass());
            averageCell.setColspan(3);

            final HtmlTableCell executionYearCell = groupRow.createCell();
            executionYearCell.setText("Ano Lectivo");
            executionYearCell.setClasses(getGradeCellClass());
            executionYearCell.setColspan(2);
            executionYearCell.setRowspan(2);

            final HtmlTableRow groupSubRow = mainTable.createRow();
            groupSubRow.setClasses(getHeaderRowClass());
            generateCellWithText(groupSubRow, BundleUtil.getString(Bundle.APPLICATION, "label.grade"), getGradeCellClass());
            generateCellWithText(groupSubRow, BundleUtil.getString(Bundle.APPLICATION, "label.weight"), getEctsCreditsCellClass());
            generateCellWithText(groupSubRow, "Peso x Classificação", getEctsCreditsCellClass());
        }
View Full Code Here

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlTableRow

                generateRow(mainTable, entry, level, true);
            }
        }

        private void generateRow(HtmlTable mainTable, final ICurriculumEntry entry, int level, boolean allowSelection) {
            final HtmlTableRow enrolmentRow = mainTable.createRow();
            enrolmentRow.setClasses(getEnrolmentRowClass());

            generateCodeAndNameCell(enrolmentRow, entry, level, allowSelection);
            if (entry instanceof ExternalEnrolment) {
                generateExternalEnrolmentLabelCell(enrolmentRow, (ExternalEnrolment) entry, level);
            }
View Full Code Here

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlTableRow

            cell.setBody(span);
        }

        private void generateAverageSums(final HtmlTable mainTable) {
            final HtmlTableRow row = mainTable.createRow();
            row.setClasses(getHeaderRowClass());

            final HtmlTableCell sumsCell = row.createCell();
            sumsCell.setText("Somatórios");
            sumsCell.setStyle("text-align: right;");
            sumsCell.setColspan(15);

            final HtmlTableCell sumPiCell = row.createCell();
            sumPiCell.setText(this.curriculum.getSumPi().toString());
            sumPiCell.setClasses(getGradeCellClass());

            final HtmlTableCell sumPiCiCell = row.createCell();
            sumPiCiCell.setText(this.curriculum.getSumPiCi().toString());
            sumPiCiCell.setClasses(getGradeCellClass());

            final HtmlTableCell emptyCell = row.createCell();
            emptyCell.setClasses(getGradeCellClass());
            emptyCell.setColspan(2);
        }
View Full Code Here

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlTableRow

            }
        }

        private void generateCurricularYearHeaderRowWithText(final HtmlTable table, final String text, boolean addHeaders,
                final int level) {
            final HtmlTableRow groupRow = table.createRow();
            groupRow.setClasses(getHeaderRowClass());

            final HtmlTableCell textCell = groupRow.createCell();
            textCell.setText(text);
            textCell.setClasses(getLabelCellClass());
            textCell.setRowspan(2);
            textCell.setColspan(MAX_COL_SPAN_FOR_TEXT_ON_CURRICULUM_LINES);

            final HtmlTableCell curricularYearCell = groupRow.createCell();
            curricularYearCell.setText("Ano Curricular");
            curricularYearCell.setClasses(getGradeCellClass());
            curricularYearCell.setColspan(1);

            final HtmlTableCell executionYearCell = groupRow.createCell();
            executionYearCell.setText("Ano Lectivo");
            executionYearCell.setClasses(getGradeCellClass());
            executionYearCell.setColspan(2);
            executionYearCell.setRowspan(2);

            final HtmlTableRow groupSubRow = table.createRow();
            groupSubRow.setClasses(getHeaderRowClass());
            generateCellWithText(groupSubRow, BundleUtil.getString(Bundle.APPLICATION, "label.ects"), getEctsCreditsCellClass());
        }
View Full Code Here

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlTableRow

            }
        }

        private void generateCurricularYearRow(HtmlTable mainTable, final ICurriculumEntry entry, int level,
                boolean allowSelection) {
            final HtmlTableRow enrolmentRow = mainTable.createRow();
            enrolmentRow.setClasses(getEnrolmentRowClass());

            generateCodeAndNameCell(enrolmentRow, entry, level, allowSelection);
            if (entry instanceof ExternalEnrolment) {
                generateExternalEnrolmentLabelCell(enrolmentRow, (ExternalEnrolment) entry, level);
            }
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.