Class CompositeGroupDisplay
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.web.CompositeGroupDisplay
-
- All Implemented Interfaces:
ICompositeDisplay
public class CompositeGroupDisplay extends java.lang.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(java.util.Map<java.lang.String,java.lang.Object> model)Adds the specified model in the model of this instancevoidaddQuestions(java.util.List<Question> listQuestion)Add the questions into the specified listICompositeDisplayfilter(java.util.List<java.lang.Integer> listQuestionIds)java.util.List<Control>getAllDisplayControls()java.lang.StringgetCompositeHtml(javax.servlet.http.HttpServletRequest request, java.util.List<FormQuestionResponse> listFormQuestionResponse, java.util.Locale locale, DisplayType displayType)Builds the HTML of the compositejava.util.List<ICompositeDisplay>getCompositeList()Return the full list of children ICompositeDisplay of an initialized CompositeDisplayFormDisplaygetFormDisplay()return the FormDisplayjava.lang.StringgetIcon()java.lang.StringgetTitle()java.lang.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 java.lang.String getCompositeHtml(javax.servlet.http.HttpServletRequest request, java.util.List<FormQuestionResponse> listFormQuestionResponse, java.util.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 java.util.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 java.lang.String getTitle()
- Specified by:
getTitlein interfaceICompositeDisplay- Returns:
- the title of the compositeDisplay
-
getType
public java.lang.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 java.lang.String getIcon()
- Specified by:
getIconin interfaceICompositeDisplay- Returns:
- the icon name
-
getAllDisplayControls
public java.util.List<Control> getAllDisplayControls()
- Specified by:
getAllDisplayControlsin interfaceICompositeDisplay- Returns:
- all the Display Controls in the child
-
addQuestions
public void addQuestions(java.util.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(java.util.Map<java.lang.String,java.lang.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(java.util.List<java.lang.Integer> listQuestionIds)
- Specified by:
filterin interfaceICompositeDisplay
-
-