Interface ICompositeDisplay
- All Known Implementing Classes:
CompositeGroupDisplay,CompositeQuestionDisplay
public interface ICompositeDisplay
Interface composite to display step components
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the specified model in the model of this instancevoidaddQuestions(List<Question> listQuestion) Add the questions into the specified listfilterFromListQuestion(List<Question> listQuestion) filter composiste listChildren with the listQuestion using iteration numbergetCompositeHtml(javax.servlet.http.HttpServletRequest request, List<FormQuestionResponse> listFormQuestionResponse, Locale locale, DisplayType displayType) Builds the HTML of the compositeReturn the full list of children ICompositeDisplay of an initialized CompositeDisplayreturn the FormDisplaygetIcon()Return the IterationNumber of the questiongetTitle()getType()booleanis 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 Details
-
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
- Returns:
- all the Display Controls in the child
-
addQuestions
Add the questions into the specified list- Parameters:
listQuestion- the list of question to complete
-
addModel
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
-
filterFromListQuestion
filter composiste listChildren with the listQuestion using iteration number- Parameters:
listQuestion- The listQuestion- Returns:
- composite display
-
getIterationNumber
Integer getIterationNumber()Return the IterationNumber of the question- Returns:
- IterationNumber
-