public class StepDisplayTree extends Object
| Constructor and Description |
|---|
StepDisplayTree(int nIdStep)
Constructor
|
StepDisplayTree(int nIdStep,
FormResponse formResponse)
Constructor
|
StepDisplayTree(int nIdStep,
FormResponse formResponse,
List<Integer> listQuestionId)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addModel(Map<String,Object> model)
Adds the specified model in the model of this instance
|
String |
getCompositeHtml(javax.servlet.http.HttpServletRequest request,
List<FormQuestionResponse> listFormQuestionResponse,
Locale locale,
DisplayType displayType)
Build and return the html template of the tree for Front-Office display
|
List<ICompositeDisplay> |
getCompositeList()
Build and return all the composite display of the tree as a flat List
|
List<Control> |
getListDisplayControls() |
List<Question> |
getQuestions()
Gives all the questions
|
Map<Integer,List<fr.paris.lutece.plugins.genericattributes.business.Response>> |
getResponses() |
Step |
getStep() |
void |
initStepTree(int nIdStep)
Initialize the composite tree
|
void |
iterate(int nIdFormDisplay)
Iterates the specified form display
|
void |
removeIteration(javax.servlet.http.HttpServletRequest request,
int nIdGroupParent,
int nIndexIterationToRemove)
Remove the specified iteration of group
|
void |
setStep(Step step) |
public StepDisplayTree(int nIdStep)
nIdStep - the step identifierpublic StepDisplayTree(int nIdStep,
FormResponse formResponse)
nIdStep - the step identifierformResponse - the form response containing the responsespublic StepDisplayTree(int nIdStep,
FormResponse formResponse,
List<Integer> listQuestionId)
nIdStep - the step identifierformResponse - the form response containing the responseslistQuestionId - questions to displaypublic void initStepTree(int nIdStep)
nIdStep - The step primary keypublic void iterate(int nIdFormDisplay)
nIdFormDisplay - the id of the form display to iteratepublic void removeIteration(javax.servlet.http.HttpServletRequest request,
int nIdGroupParent,
int nIndexIterationToRemove)
request - the requestnIdGroupParent - the id of the parent groupnIndexIterationToRemove - the index of the iteration to remove in grouppublic String getCompositeHtml(javax.servlet.http.HttpServletRequest request, List<FormQuestionResponse> listFormQuestionResponse, Locale locale, DisplayType displayType)
request - the requestlistFormQuestionResponse - the list of form question responseslocale - the localedisplayType - The display typepublic List<ICompositeDisplay> getCompositeList()
public Step getStep()
public void setStep(Step step)
step - the step to setpublic Map<Integer,List<fr.paris.lutece.plugins.genericattributes.business.Response>> getResponses()
public List<Control> getListDisplayControls()
Copyright © 2021 City of Paris. All rights reserved.