net.sourceforge.formview.displayer
Interface IHTMLDisplayer

All Known Implementing Classes:
DisplayerConfig

public interface IHTMLDisplayer


Method Summary
 java.lang.String getAttributesName()
          Return attribute names to parse for a displayer.
 java.lang.String getName()
          Return name of displayer for specific HTML element Name of displayer must be the same name of HTML element.
 void processHTML(FieldView field, java.lang.String defaultBehaviour, java.util.Map contextValuesMap, au.id.jericho.lib.html.Element htmlElement, au.id.jericho.lib.html.OutputDocument htmlOutputDocument)
          Transform current HTML element by adding (before, after HTML element) another HTML content, by adding HTML attribute to HTML element or by replacing HTML element by another HTML content.
 

Method Detail

getName

java.lang.String getName()
Return name of displayer for specific HTML element Name of displayer must be the same name of HTML element. (eg : return select if you want implement displayer for HTML select element. Use character _ if you want filter about element type HTML. (eg : return input_text for displayer input type="text")

Returns:
name of displayer

getAttributesName

java.lang.String getAttributesName()
Return attribute names to parse for a displayer. Eg : name,id

Returns:

processHTML

void processHTML(FieldView field,
                 java.lang.String defaultBehaviour,
                 java.util.Map contextValuesMap,
                 au.id.jericho.lib.html.Element htmlElement,
                 au.id.jericho.lib.html.OutputDocument htmlOutputDocument)
Transform current HTML element by adding (before, after HTML element) another HTML content, by adding HTML attribute to HTML element or by replacing HTML element by another HTML content.

Parameters:
field - characteristics (MAXLENGTH, REQUIRED, DATE). ATTENTION !!! this parameter can be null, when field are not defined into XML config form-view.xml.
defaultBehaviour - global behaviour of your form.
contextValuesMap - Map which contains keys/values context, which can be use to generate HTML (eg: key=${maxlength} value=50, you can use into HTML String and replace key by value to generate .
htmlElement - HTML (in) element
htmlOutputDocument - HTML output document which contains the whole HTML content after trenasformation.


Copyright 2006 null. All Rights Reserved.