if (info.containsMessage()) {
switch (message) {
case QTIConstants.MESSAGE_ITEM_SUBMITTED :
//item hints?
if (info.isHint()) {
Hint el_hint = info.getCurrentOutput().getHint();
if (el_hint.getFeedbackstyle() == Hint.FEEDBACKSTYLE_INCREMENTAL) {
// increase the hint level so we know which hint to display
ItemContext itc = act.getCurrentSectionContext().getCurrentItemContext();
int nLevel = itc.getHintLevel() + 1;
int numofhints = el_hint.getChildCount();
if (nLevel > numofhints) nLevel = numofhints;
itc.setHintLevel(nLevel);
//<!ELEMENT hint (qticomment? , hintmaterial+)>
displayFeedback(sb, (GenericQTIElement)el_hint.getChildAt(nLevel-1), ai, translator.getLocale());
} else {
displayFeedback(sb, el_hint, ai, translator.getLocale());
}
}
//item solution?