Class VideoFieldDisplayer
- java.lang.Object
-
- org.silverpeas.core.contribution.content.form.displayers.AbstractFieldDisplayer<FileField>
-
- org.silverpeas.core.contribution.content.form.displayers.AbstractFileFieldDisplayer
-
- org.silverpeas.core.contribution.content.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 org.silverpeas.core.contribution.content.form.displayers.AbstractFileFieldDisplayer
AbstractFileFieldDisplayer.Operation
-
-
Field Summary
Fields Modifier and Type Field Description 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 org.silverpeas.core.contribution.content.form.displayers.AbstractFileFieldDisplayer
OPERATION_KEY
-
-
Constructor Summary
Constructors Constructor Description VideoFieldDisplayer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 org.silverpeas.core.contribution.content.form.displayers.AbstractFileFieldDisplayer
checkFieldType, createSimpleDocument, deleteAttachment, displayScripts, getManagedTypes, isDeletion, isDisplayedMandatory, isUpdate, processInput, processUploadedFile, update, update
-
Methods inherited from class org.silverpeas.core.contribution.content.form.displayers.AbstractFieldDisplayer
getDefaultValue, index
-
-
-
-
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
-
-
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.
-
-