Class AbstractFormPanelDisplay

java.lang.Object
fr.paris.lutece.plugins.forms.web.form.panel.display.impl.AbstractFormPanelDisplay
All Implemented Interfaces:
IFormListPosition, IFormPanelDisplay
Direct Known Subclasses:
FormPanelFormsDisplay

public abstract class AbstractFormPanelDisplay extends Object implements IFormPanelDisplay
Abstract class for FormPanelDisplay class
  • Constructor Details

    • AbstractFormPanelDisplay

      public AbstractFormPanelDisplay()
  • Method Details

    • getPosition

      public int getPosition()
      Return the position of the element
      Specified by:
      getPosition in interface IFormListPosition
      Returns:
      the position of the element
    • getFormResponseNumber

      public int getFormResponseNumber()
      Return the form response number of the FormPanelDisplay
      Specified by:
      getFormResponseNumber in interface IFormPanelDisplay
      Returns:
      the form response number of the FormPanelDisplay
    • getTemplate

      public String getTemplate()
      Return the template of the FormPanelDisplay
      Specified by:
      getTemplate in interface IFormPanelDisplay
      Returns:
      the template of the FormPanelDisplay
    • isActive

      public boolean isActive()
      Return the boolean which tell if the PanelDisplay is for the active Panel or not
      Specified by:
      isActive in interface IFormPanelDisplay
      Returns:
      the boolean which tell if the PanelDisplay is for the active Panel or not
    • setActive

      public void setActive(boolean bActive)
      Set the boolean which tell if the PanelDisplay is for the active Panel or not
      Specified by:
      setActive in interface IFormPanelDisplay
      Parameters:
      bActive - The boolean which tell if the PanelDisplay is for the active Panel or not
    • getTechnicalCode

      public String getTechnicalCode()
      Return the technical code of the FormPanel
      Specified by:
      getTechnicalCode in interface IFormPanelDisplay
      Returns:
      the technical code of the FormPanel
    • getFormResponseItemList

      public List<FormResponseItem> getFormResponseItemList()
      Return the list of FormItem of the FormPanelDisplay
      Specified by:
      getFormResponseItemList in interface IFormPanelDisplay
      Returns:
      the list of FormItem of the FormPanelDisplay
    • getFormPanel

      public FormPanel getFormPanel()
      Return the formPanel of the FormPanelDisplay
      Specified by:
      getFormPanel in interface IFormPanelDisplay
      Returns:
      the formPanel
    • setFormPanel

      public void setFormPanel(FormPanel formPanel)
      Set the FormPanel of the FormPanelDisplay
      Specified by:
      setFormPanel in interface IFormPanelDisplay
      Parameters:
      formPanel - The FormPanel of the FormPanelDisplay
    • buildTemplate

      public String buildTemplate(Locale locale)
      Build the template of the FormPanelDisplay
      Specified by:
      buildTemplate in interface IFormPanelDisplay
      Parameters:
      locale - The locale used to build the template
      Returns:
      the built template of the FormPanelDisplay
    • buildTemplate

      public String buildTemplate(Map<String,Object> data, Locale locale)
      Build the template of the FormPanelDisplay
      Specified by:
      buildTemplate in interface IFormPanelDisplay
      Parameters:
      data - The data used to build the template
      locale - The locale used to build the template
      Returns:
      the built template of the FormPanelDisplay