com.silverpeas.form.displayers
Class MapFieldDisplayer

java.lang.Object
  extended by com.silverpeas.form.displayers.AbstractFieldDisplayer<TextField>
      extended by com.silverpeas.form.displayers.AbstractTextFieldDisplayer<TextField>
          extended by com.silverpeas.form.displayers.MapFieldDisplayer
All Implemented Interfaces:
FieldDisplayer<TextField>

public class MapFieldDisplayer
extends AbstractTextFieldDisplayer<TextField>

A UserFieldDisplayer is an object which can display a UserFiel in HTML and can retrieve via HTTP any updated value.

See Also:
Field, FieldTemplate, Form, FieldDisplayer

Field Summary
static String KIND_HYBRID
           
static String KIND_NORMAL
           
static String KIND_RELIEF
           
static String KIND_SATELLITE
           
static String PARAM_ENLARGE
           
static String PARAM_HEIGHT
           
static String PARAM_KIND
           
static String PARAM_MAP
           
static String PARAM_WIDTH
           
static String PARAM_ZOOM
           
 
Constructor Summary
MapFieldDisplayer()
           
 
Method Summary
 void display(PrintWriter out, TextField field, FieldTemplate template, PagesContext pageContext)
          Prints the HTML value of the field.
 
Methods inherited from class com.silverpeas.form.displayers.AbstractTextFieldDisplayer
addMandatoryScript, addSpecificScript, displayScripts, getManagedTypes, getNbHtmlObjectsDisplayed, isDisplayedMandatory, update
 
Methods inherited from class com.silverpeas.form.displayers.AbstractFieldDisplayer
index, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_MAP

public static final String PARAM_MAP
See Also:
Constant Field Values

PARAM_HEIGHT

public static final String PARAM_HEIGHT
See Also:
Constant Field Values

PARAM_WIDTH

public static final String PARAM_WIDTH
See Also:
Constant Field Values

PARAM_KIND

public static final String PARAM_KIND
See Also:
Constant Field Values

PARAM_ZOOM

public static final String PARAM_ZOOM
See Also:
Constant Field Values

PARAM_ENLARGE

public static final String PARAM_ENLARGE
See Also:
Constant Field Values

KIND_NORMAL

public static final String KIND_NORMAL
See Also:
Constant Field Values

KIND_SATELLITE

public static final String KIND_SATELLITE
See Also:
Constant Field Values

KIND_HYBRID

public static final String KIND_HYBRID
See Also:
Constant Field Values

KIND_RELIEF

public static final String KIND_RELIEF
See Also:
Constant Field Values
Constructor Detail

MapFieldDisplayer

public MapFieldDisplayer()
Method Detail

display

public void display(PrintWriter out,
                    TextField field,
                    FieldTemplate template,
                    PagesContext pageContext)
             throws FormException
Prints the HTML value of the field. The displayed value must be updatable by the end user. 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 :

Parameters:
out -
field -
PagesContext -
template -
Throws:
FormException


Copyright © 2016 Silverpeas. All Rights Reserved.