public class SectionEditVisitor<X extends ContentBuilder> extends ContentVisitor<X>
ContentVisitor
that converts a specific target SectionManager.Section
into
an edit form.
The rest of the page is shown as in the super classContentVisitor.NoAnswer
ANSWER_COL, complete_viz, has_question_viz, QUESTION_COL, response, sess
Constructor and Description |
---|
SectionEditVisitor(X cb,
SessionService sess,
ResponseManager.Response<?> response,
Form f,
SectionManager.Section target) |
Modifier and Type | Method and Description |
---|---|
void |
visitQuestion(Table<java.lang.String,QuestionManager.Question> t,
QuestionManager.Question q) |
<C extends ContentBuilder> |
visitSection(C builder,
java.util.Map<java.lang.String,java.lang.String> errors,
SectionManager.Section s) |
getContext, getLogger, visitPage, visitPage, visitQuestion, visitSection
public SectionEditVisitor(X cb, SessionService sess, ResponseManager.Response<?> response, Form f, SectionManager.Section target)
cb
- sess
- response
- public void visitQuestion(Table<java.lang.String,QuestionManager.Question> t, QuestionManager.Question q) throws java.lang.Exception
visitQuestion
in class ContentVisitor<X extends ContentBuilder>
java.lang.Exception
public <C extends ContentBuilder> C visitSection(C builder, java.util.Map<java.lang.String,java.lang.String> errors, SectionManager.Section s) throws java.lang.Exception
visitSection
in class ContentVisitor<X extends ContentBuilder>
java.lang.Exception