use of doc.attributes.EnumeratedAttribute in project OpenNotebook by jaltekruse.
the class TextObject method addDefaultAttributes.
@Override
public void addDefaultAttributes() {
addAttribute(new StringAttribute(TEXT, ""));
addAttribute(new IntegerAttribute(FONT_SIZE, 12, 1, 50));
addAttribute(new BooleanAttribute(SHOW_BOX, false));
addAttribute(new EnumeratedAttribute(ALIGNMENT, LEFT, alignments));
addAction(MathObject.MAKE_INTO_PROBLEM);
}
use of doc.attributes.EnumeratedAttribute in project OpenNotebook by jaltekruse.
the class AnswerBoxObject method addDefaultAttributes.
@Override
public void addDefaultAttributes() {
//this.addAction(GRADE);
addAttribute(new StringAttribute(STUDENT_ANSWER, "", true, true));
addList(new ListAttribute<>(CORRECT_ANSWERS, new StringAttribute(""), 20, true, false));
addAttribute(new IntegerAttribute(FONT_SIZE, 12, 1, 50, true, false));
addAttribute(new IntegerAttribute(TOTAL_POINTS, 5, 1, 100, true, false));
addAttribute(new IntegerAttribute(STUDENT_SCORE, 5, 0, 100, true, false));
addAttribute(new EnumeratedAttribute(ANSWER_TYPE, PLAIN_TEXT, ANSWER_TYPES));
}
Aggregations