Search in sources :

Example 1 with IntegerAttribute

use of uk.ac.ed.ph.jqtiplus.attribute.value.IntegerAttribute in project OpenOLAT by OpenOLAT.

the class AssessmentObjectComponentRenderer method renderCol.

public void renderCol(StringOutput sb, AssessmentObjectComponent component, ResolvedAssessmentItem resolvedAssessmentItem, Col col) {
    sb.append("<").append(col.getQtiClassName());
    renderHtmlTagAttributes(sb, component, resolvedAssessmentItem, col, null);
    IntegerAttribute spanAttr = col.getAttributes().getIntegerAttribute(Col.ATTR_SPAN_NAME);
    if (spanAttr.getComputedValue() != null) {
        sb.append(" span=\"").append(spanAttr.getComputedNonNullValue()).append("\"");
    }
    sb.append(">");
    renderEndTag(sb, col);
}
Also used : IntegerAttribute(uk.ac.ed.ph.jqtiplus.attribute.value.IntegerAttribute)

Example 2 with IntegerAttribute

use of uk.ac.ed.ph.jqtiplus.attribute.value.IntegerAttribute in project openolat by klemens.

the class AssessmentObjectComponentRenderer method renderCol.

public void renderCol(StringOutput sb, AssessmentObjectComponent component, ResolvedAssessmentItem resolvedAssessmentItem, Col col) {
    sb.append("<").append(col.getQtiClassName());
    renderHtmlTagAttributes(sb, component, resolvedAssessmentItem, col, null);
    IntegerAttribute spanAttr = col.getAttributes().getIntegerAttribute(Col.ATTR_SPAN_NAME);
    if (spanAttr.getComputedValue() != null) {
        sb.append(" span=\"").append(spanAttr.getComputedNonNullValue()).append("\"");
    }
    sb.append(">");
    renderEndTag(sb, col);
}
Also used : IntegerAttribute(uk.ac.ed.ph.jqtiplus.attribute.value.IntegerAttribute)

Example 3 with IntegerAttribute

use of uk.ac.ed.ph.jqtiplus.attribute.value.IntegerAttribute in project OpenOLAT by OpenOLAT.

the class AssessmentObjectComponentRenderer method renderTableCell.

public void renderTableCell(AssessmentRenderer renderer, StringOutput sb, AssessmentObjectComponent component, ResolvedAssessmentItem resolvedAssessmentItem, ItemSessionState itemSessionState, TableCell cell, URLBuilder ubu, Translator translator) {
    sb.append("<").append(cell.getQtiClassName());
    renderHtmlTagAttributes(sb, component, resolvedAssessmentItem, cell, null);
    IntegerAttribute colSpanAttr = cell.getAttributes().getIntegerAttribute(TableCell.ATTR_COLSPAN_NAME);
    if (colSpanAttr.getComputedValue() != null) {
        sb.append(" colspan=\"").append(colSpanAttr.getComputedNonNullValue()).append("\"");
    }
    IntegerAttribute rowSpanAttr = cell.getAttributes().getIntegerAttribute(TableCell.ATTR_ROWSPAN_NAME);
    if (rowSpanAttr.getComputedValue() != null) {
        sb.append(" rowspan=\"").append(rowSpanAttr.getComputedNonNullValue()).append("\"");
    }
    sb.append(">");
    cell.getChildren().forEach(child -> renderFlow(renderer, sb, component, resolvedAssessmentItem, itemSessionState, child, ubu, translator));
    renderEndTag(sb, cell);
}
Also used : IntegerAttribute(uk.ac.ed.ph.jqtiplus.attribute.value.IntegerAttribute)

Example 4 with IntegerAttribute

use of uk.ac.ed.ph.jqtiplus.attribute.value.IntegerAttribute in project openolat by klemens.

the class AssessmentObjectComponentRenderer method renderTableCell.

public void renderTableCell(AssessmentRenderer renderer, StringOutput sb, AssessmentObjectComponent component, ResolvedAssessmentItem resolvedAssessmentItem, ItemSessionState itemSessionState, TableCell cell, URLBuilder ubu, Translator translator) {
    sb.append("<").append(cell.getQtiClassName());
    renderHtmlTagAttributes(sb, component, resolvedAssessmentItem, cell, null);
    IntegerAttribute colSpanAttr = cell.getAttributes().getIntegerAttribute(TableCell.ATTR_COLSPAN_NAME);
    if (colSpanAttr.getComputedValue() != null) {
        sb.append(" colspan=\"").append(colSpanAttr.getComputedNonNullValue()).append("\"");
    }
    IntegerAttribute rowSpanAttr = cell.getAttributes().getIntegerAttribute(TableCell.ATTR_ROWSPAN_NAME);
    if (rowSpanAttr.getComputedValue() != null) {
        sb.append(" rowspan=\"").append(rowSpanAttr.getComputedNonNullValue()).append("\"");
    }
    sb.append(">");
    cell.getChildren().forEach(child -> renderFlow(renderer, sb, component, resolvedAssessmentItem, itemSessionState, child, ubu, translator));
    renderEndTag(sb, cell);
}
Also used : IntegerAttribute(uk.ac.ed.ph.jqtiplus.attribute.value.IntegerAttribute)

Aggregations

IntegerAttribute (uk.ac.ed.ph.jqtiplus.attribute.value.IntegerAttribute)4