com.silverpeas.form.displayers
Class VideoFieldDisplayer

java.lang.Object
  extended by com.silverpeas.form.displayers.AbstractFieldDisplayer<FileField>
      extended by com.silverpeas.form.displayers.AbstractFileFieldDisplayer
          extended by com.silverpeas.form.displayers.VideoFieldDisplayer
All Implemented Interfaces:
FieldDisplayer<FileField>

public class VideoFieldDisplayer
extends AbstractFileFieldDisplayer

A displayer of a video. The underlying video player is FlowPlayer (http://flowplayer.org/index.html).


Nested Class Summary
 
Nested classes/interfaces inherited from class com.silverpeas.form.displayers.AbstractFileFieldDisplayer
AbstractFileFieldDisplayer.Operation
 
Field Summary
static String CONTEXT_FORM_VIDEO
           
static boolean DEFAULT_AUTOPLAY
          Should the video auto starts by default?
static String DEFAULT_HEIGHT
          The default height in pixels of the video display area.
static String DEFAULT_WIDTH
          The default width in pixels of the video display area.
static String PARAMETER_AUTOPLAY
          The video autostart parameter name.
static String PARAMETER_HEIGHT
          The video display height parameter name.
static String PARAMETER_WIDTH
          The video display width parameter name.
 
Fields inherited from class com.silverpeas.form.displayers.AbstractFileFieldDisplayer
OPERATION_KEY
 
Constructor Summary
VideoFieldDisplayer()
           
 
Method Summary
 void display(PrintWriter out, FileField field, FieldTemplate template, PagesContext pagesContext)
          Prints the HTML value of the field.
 int getNbHtmlObjectsDisplayed(FieldTemplate template, PagesContext pagesContext)
          Return the number of HTML Objects displayed by the displayer.
 
Methods inherited from class com.silverpeas.form.displayers.AbstractFileFieldDisplayer
checkFieldType, createSimpleDocument, deleteAttachment, displayScripts, getManagedTypes, isDeletion, isDisplayedMandatory, isUpdate, processInput, processUploadedFile, update, update
 
Methods inherited from class com.silverpeas.form.displayers.AbstractFieldDisplayer
index
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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_WIDTH

public static final String PARAMETER_WIDTH
The video display width parameter name.

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

CONTEXT_FORM_VIDEO

public static final String CONTEXT_FORM_VIDEO
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 :

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.


Copyright © 2016 Silverpeas. All Rights Reserved.