Class PdcUserFieldDisplayer

    • Constructor Detail

      • PdcUserFieldDisplayer

        public PdcUserFieldDisplayer()
    • Method Detail

      • getManagedTypes

        public String[] getManagedTypes()
        Returns the name of the managed types.
      • displayScripts

        public void displayScripts​(PrintWriter out,
                                   FieldTemplate template,
                                   PagesContext PagesContext)
        Prints the javascripts which will be used to control the new value given to the named field. The error messages may be adapted to a local language. The FieldTemplate gives the field type and constraints. The FieldTemplate gives the local labeld too. Never throws an Exception but log a silvertrace and writes an empty string when :
        • the fieldName is unknown by the template.
        • the field type is not a managed type.
      • display

        public void display​(PrintWriter out,
                            PdcUserField field,
                            FieldTemplate template,
                            PagesContext PagesContext)
                     throws FormException
        Prints the HTML value of the field. The displayed value must be updatable by the end user. The value format may be adapted to a local language. The fieldName must be used to name the html form input. Never throws an Exception but log a silvertrace and writes an empty string when :
        • the field type is not a managed type.
        Throws:
        FormException
      • isDisplayedMandatory

        public boolean isDisplayedMandatory()
        Method declaration
      • getNbHtmlObjectsDisplayed

        public int getNbHtmlObjectsDisplayed​(FieldTemplate template,
                                             PagesContext pagesContext)
        Method declaration
        Returns:
        the number of HTML Objects displayed by the displayer.