public class CompositeGroupDisplay extends Object implements ICompositeDisplay
| Constructor and Description |
|---|
CompositeGroupDisplay(FormDisplay formDisplay,
FormResponse formResponse,
int nIterationNumber)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addModel(Map<String,Object> model)
Adds the specified model in the model of this instance
|
void |
addQuestions(List<Question> listQuestion)
Add the questions into the specified list
|
ICompositeDisplay |
filter(List<Integer> listQuestionIds) |
List<Control> |
getAllDisplayControls() |
String |
getCompositeHtml(javax.servlet.http.HttpServletRequest request,
List<FormQuestionResponse> listFormQuestionResponse,
Locale locale,
DisplayType displayType)
Builds the HTML of the composite
|
List<ICompositeDisplay> |
getCompositeList()
Return the full list of children ICompositeDisplay of an initialized CompositeDisplay
|
FormDisplay |
getFormDisplay()
return the FormDisplay
|
String |
getIcon() |
String |
getTitle() |
String |
getType() |
boolean |
isVisible()
is the composite display visible.
|
void |
iterate(int nIdFormDisplay)
Iterates the specified form display
|
void |
removeIteration(javax.servlet.http.HttpServletRequest request,
int nIdGroupParent,
int nIndexIterationToRemove,
FormResponse formResponse)
Remove the specified iteration of group
|
public CompositeGroupDisplay(FormDisplay formDisplay, FormResponse formResponse, int nIterationNumber)
formDisplay - the form displayformResponse - the form responsenIterationNumber - the iteration numberpublic String getCompositeHtml(javax.servlet.http.HttpServletRequest request, List<FormQuestionResponse> listFormQuestionResponse, Locale locale, DisplayType displayType)
getCompositeHtml in interface ICompositeDisplayrequest - the requestlistFormQuestionResponse - the list of form question responseslocale - The localedisplayType - The display typepublic void iterate(int nIdFormDisplay)
iterate in interface ICompositeDisplaynIdFormDisplay - the id of the form display to iteratepublic void removeIteration(javax.servlet.http.HttpServletRequest request,
int nIdGroupParent,
int nIndexIterationToRemove,
FormResponse formResponse)
removeIteration in interface ICompositeDisplayrequest - the requestnIdGroupParent - the id of the groupnIndexIterationToRemove - the index of the iteration to remove in groupformResponse - the form responsespublic List<ICompositeDisplay> getCompositeList()
ICompositeDisplaygetCompositeList in interface ICompositeDisplaypublic String getTitle()
getTitle in interface ICompositeDisplaypublic String getType()
getType in interface ICompositeDisplaypublic FormDisplay getFormDisplay()
ICompositeDisplaygetFormDisplay in interface ICompositeDisplaypublic String getIcon()
getIcon in interface ICompositeDisplaypublic List<Control> getAllDisplayControls()
getAllDisplayControls in interface ICompositeDisplaypublic void addQuestions(List<Question> listQuestion)
addQuestions in interface ICompositeDisplaylistQuestion - the list of question to completepublic void addModel(Map<String,Object> model)
addModel in interface ICompositeDisplaymodel - the model to addpublic boolean isVisible()
ICompositeDisplayisVisible in interface ICompositeDisplaypublic ICompositeDisplay filter(List<Integer> listQuestionIds)
filter in interface ICompositeDisplayCopyright © 2019 City of Paris. All rights reserved.