use of uk.ac.ed.ph.jqtiplus.node.item.interaction.GraphicGapMatchInteraction in project openolat by klemens.
the class GraphicGapMatchInteractionArchive method writeHeader2.
@Override
public int writeHeader2(AssessmentItem item, Interaction interaction, int itemNumber, int interactionNumber, Row dataRow, int col, OpenXMLWorkbook workbook) {
GraphicGapMatchInteraction gapMatchInteraction = (GraphicGapMatchInteraction) interaction;
List<AssociableHotspot> spots = gapMatchInteraction.getAssociableHotspots();
if (spots.size() > 0) {
for (int i = 0; i < spots.size(); i++) {
String header = (itemNumber + 1) + "_GG" + (i + 1);
dataRow.addCell(col++, header, workbook.getStyles().getHeaderStyle());
}
} else {
col++;
}
return col;
}
Aggregations