org.olat.core.gui.components.form.flexible.impl.elements
Class FileElementRenderer

java.lang.Object
  extended by org.olat.core.gui.components.form.flexible.impl.elements.FileElementRenderer
All Implemented Interfaces:
ComponentRenderer

public class FileElementRenderer
extends java.lang.Object
implements ComponentRenderer

Description:

The file element renderer displays a file upload element for a single file. To make it more beauty, the standard file chooser button form the browser is hidden and a fake button is displayed instead.

If the file element has already a file preset or submitted in a previous request, the file name of this file is displayed.

The read only view displays only the file name

Initial Date: 08.12.2008

Author:
Florian Gnaegi, frentix GmbH, http://www.frentix.com

Constructor Summary
FileElementRenderer()
           
 
Method Summary
 void render(Renderer renderer, StringOutput sb, Component source, URLBuilder ubu, Translator translator, RenderResult renderResult, java.lang.String[] args)
          calls must be threadsafe
 void renderBodyOnLoadJSFunctionCall(Renderer renderer, StringOutput sb, Component source, RenderingState rstate)
          contributes a line to the following code: ...

Specified by:
renderBodyOnLoadJSFunctionCall in interface ComponentRenderer

renderHeaderIncludes

public void renderHeaderIncludes(Renderer renderer,
                                 StringOutput sb,
                                 Component source,
                                 URLBuilder ubu,
                                 Translator translator,
                                 RenderingState rstate)
Specified by:
renderHeaderIncludes in interface ComponentRenderer