Class VideoFieldDisplayer

    • Field Detail

      • DEFAULT_WIDTH

        public static final String DEFAULT_WIDTH
        The default width in pixels of the video display area.
        See Also:
        Constant Field Values
      • DEFAULT_HEIGHT

        public static final String DEFAULT_HEIGHT
        The default height in pixels of the video display area.
        See Also:
        Constant Field Values
      • DEFAULT_AUTOPLAY

        public static final boolean DEFAULT_AUTOPLAY
        Should the video auto starts by default?
        See Also:
        Constant Field Values
      • PARAMETER_HEIGHT

        public static final String PARAMETER_HEIGHT
        The video display height parameter name.
        See Also:
        Constant Field Values
      • PARAMETER_AUTOPLAY

        public static final String PARAMETER_AUTOPLAY
        The video autostart parameter name.
        See Also:
        Constant Field Values
    • Constructor Detail

      • VideoFieldDisplayer

        public VideoFieldDisplayer()
    • Method Detail

      • display

        public void display​(PrintWriter out,
                            FileField field,
                            FieldTemplate template,
                            PagesContext pagesContext)
                     throws FormException
        Description copied from interface: FieldDisplayer
        Prints the HTML value of the field. 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
      • getNbHtmlObjectsDisplayed

        public int getNbHtmlObjectsDisplayed​(FieldTemplate template,
                                             PagesContext pagesContext)
        Description copied from interface: FieldDisplayer
        Return the number of HTML Objects displayed by the displayer.
        Returns:
        the number of HTML Objects displayed by the displayer.