use of doc.attributes.DateAttribute in project OpenNotebook by jaltekruse.
the class Document method addAttributes.
private void addAttributes() {
addAttribute(new StringAttribute(FILENAME));
addAttribute(new StringAttribute(AUTHOR));
addAttribute(new DateAttribute(DATE));
addAttribute(new IntegerAttribute(LAST_PROBLEM_NUMBER, 1));
addAttribute(new DoubleAttribute(X_MARGIN, .5, .5, 3));
addAttribute(new DoubleAttribute(Y_MARGIN, .5, .5, 3));
}
use of doc.attributes.DateAttribute in project OpenNotebook by jaltekruse.
the class ProblemGenerator method addProblemAttributes.
private void addProblemAttributes() {
addAttribute(new StringAttribute(NAME, false));
addAttribute(new StringAttribute(DIRECTIONS, false));
addAttribute(new StringAttribute(AUTHOR, false));
addAttribute(new DateAttribute(DATE, false));
addAttribute(new UUIDAttribute(UUID_STR, UUID.randomUUID(), false));
addList(new ListAttribute<>(TAGS, new StringAttribute(""), false));
addList(new ListAttribute<>(SCRIPTS, new StringAttribute("")));
}
Aggregations