Interface ICompositeDisplay
-
- All Known Implementing Classes:
CompositeGroupDisplay,CompositeQuestionDisplay
public interface ICompositeDisplayInterface composite to display step components
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddModel(Map<String,Object> model)Adds the specified model in the model of this instancevoidaddQuestions(List<Question> listQuestion)Add the questions into the specified listICompositeDisplayfilter(List<Integer> listQuestionIds)List<Control>getAllDisplayControls()StringgetCompositeHtml(javax.servlet.http.HttpServletRequest request, List<FormQuestionResponse> listFormQuestionResponse, Locale locale, DisplayType displayType)Builds the HTML of the compositeList<ICompositeDisplay>getCompositeList()Return the full list of children ICompositeDisplay of an initialized CompositeDisplayFormDisplaygetFormDisplay()return the FormDisplayStringgetIcon()StringgetTitle()StringgetType()booleanisVisible()is the composite display visible.voiditerate(int nIdFormDisplay)Iterates the specified form displayvoidremoveIteration(javax.servlet.http.HttpServletRequest request, int nIdGroupParent, int nIndexIterationToRemove, FormResponse formResponse)Remove the specified iteration of group
-
-
-
Method Detail
-
getCompositeHtml
String getCompositeHtml(javax.servlet.http.HttpServletRequest request, List<FormQuestionResponse> listFormQuestionResponse, Locale locale, DisplayType displayType)
Builds the HTML of the composite- Parameters:
request- the requestlistFormQuestionResponse- the list of form question responseslocale- The localedisplayType- The display type- Returns:
- the HTML
-
iterate
void iterate(int nIdFormDisplay)
Iterates the specified form display- Parameters:
nIdFormDisplay- the id of the form display to iterate
-
removeIteration
void removeIteration(javax.servlet.http.HttpServletRequest request, int nIdGroupParent, int nIndexIterationToRemove, FormResponse formResponse)Remove the specified iteration of group- Parameters:
request- the requestnIdGroupParent- the id of the groupnIndexIterationToRemove- the index of the iteration to remove in groupformResponse- the form responses
-
getCompositeList
List<ICompositeDisplay> getCompositeList()
Return the full list of children ICompositeDisplay of an initialized CompositeDisplay- Returns:
- the children composite list
-
getTitle
String getTitle()
- Returns:
- the title of the compositeDisplay
-
getType
String getType()
- Returns:
- the type of the compositeDisplay
-
getFormDisplay
FormDisplay getFormDisplay()
return the FormDisplay- Returns:
- the FormDisplay
-
getIcon
String getIcon()
- Returns:
- the icon name
-
getAllDisplayControls
List<Control> getAllDisplayControls()
- Returns:
- all the Display Controls in the child
-
addQuestions
void addQuestions(List<Question> listQuestion)
Add the questions into the specified list- Parameters:
listQuestion- the list of question to complete
-
addModel
void addModel(Map<String,Object> model)
Adds the specified model in the model of this instance- Parameters:
model- the model to add
-
isVisible
boolean isVisible()
is the composite display visible.- Returns:
-
filter
ICompositeDisplay filter(List<Integer> listQuestionIds)
-
-