Class CompositeGroupDisplay
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.web.CompositeGroupDisplay
-
- All Implemented Interfaces:
ICompositeDisplay
public class CompositeGroupDisplay extends Object implements ICompositeDisplay
Implementation of ICompositeDisplay for Groups
-
-
Constructor Summary
Constructors Constructor Description CompositeGroupDisplay(FormDisplay formDisplay, FormResponse formResponse, int nIterationNumber)Constructor
-
Method Summary
All Methods Instance Methods Concrete 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
-
-
-
Constructor Detail
-
CompositeGroupDisplay
public CompositeGroupDisplay(FormDisplay formDisplay, FormResponse formResponse, int nIterationNumber)
Constructor- Parameters:
formDisplay- the form displayformResponse- the form responsenIterationNumber- the iteration number
-
-
Method Detail
-
getCompositeHtml
public String getCompositeHtml(javax.servlet.http.HttpServletRequest request, List<FormQuestionResponse> listFormQuestionResponse, Locale locale, DisplayType displayType)
Builds the HTML of the composite- Specified by:
getCompositeHtmlin interfaceICompositeDisplay- Parameters:
request- the requestlistFormQuestionResponse- the list of form question responseslocale- The localedisplayType- The display type- Returns:
- the HTML
-
iterate
public void iterate(int nIdFormDisplay)
Iterates the specified form display- Specified by:
iteratein interfaceICompositeDisplay- Parameters:
nIdFormDisplay- the id of the form display to iterate
-
removeIteration
public void removeIteration(javax.servlet.http.HttpServletRequest request, int nIdGroupParent, int nIndexIterationToRemove, FormResponse formResponse)Remove the specified iteration of group- Specified by:
removeIterationin interfaceICompositeDisplay- Parameters:
request- the requestnIdGroupParent- the id of the groupnIndexIterationToRemove- the index of the iteration to remove in groupformResponse- the form responses
-
getCompositeList
public List<ICompositeDisplay> getCompositeList()
Description copied from interface:ICompositeDisplayReturn the full list of children ICompositeDisplay of an initialized CompositeDisplay- Specified by:
getCompositeListin interfaceICompositeDisplay- Returns:
- the children composite list
-
getTitle
public String getTitle()
- Specified by:
getTitlein interfaceICompositeDisplay- Returns:
- the title of the compositeDisplay
-
getType
public String getType()
- Specified by:
getTypein interfaceICompositeDisplay- Returns:
- the type of the compositeDisplay
-
getFormDisplay
public FormDisplay getFormDisplay()
Description copied from interface:ICompositeDisplayreturn the FormDisplay- Specified by:
getFormDisplayin interfaceICompositeDisplay- Returns:
- the FormDisplay
-
getIcon
public String getIcon()
- Specified by:
getIconin interfaceICompositeDisplay- Returns:
- the icon name
-
getAllDisplayControls
public List<Control> getAllDisplayControls()
- Specified by:
getAllDisplayControlsin interfaceICompositeDisplay- Returns:
- all the Display Controls in the child
-
addQuestions
public void addQuestions(List<Question> listQuestion)
Add the questions into the specified list- Specified by:
addQuestionsin interfaceICompositeDisplay- Parameters:
listQuestion- the list of question to complete
-
addModel
public void addModel(Map<String,Object> model)
Adds the specified model in the model of this instance- Specified by:
addModelin interfaceICompositeDisplay- Parameters:
model- the model to add
-
isVisible
public boolean isVisible()
Description copied from interface:ICompositeDisplayis the composite display visible.- Specified by:
isVisiblein interfaceICompositeDisplay- Returns:
-
filter
public ICompositeDisplay filter(List<Integer> listQuestionIds)
- Specified by:
filterin interfaceICompositeDisplay
-
-