com.silverpeas.form.dummy
Class DummyFieldTemplate

java.lang.Object
  extended by com.silverpeas.form.dummy.DummyFieldTemplate
All Implemented Interfaces:
FieldTemplate

public class DummyFieldTemplate
extends Object
implements FieldTemplate

A dummy FieldTemplate.


Constructor Summary
DummyFieldTemplate()
           
DummyFieldTemplate(Field field)
           
 
Method Summary
 String getDisplayerName()
          Returns the name of the FieldDisplayer to display the described field.
 Field getEmptyField()
          Returns an empty Field built on this template.
 Field getEmptyField(int occurrence)
           
 String getFieldName()
          Returns the field name of the Field built on this template.
 String getLabel()
          Returns the label of the described field (in the default locale).
 String getLabel(String lang)
          Returns the local label of the described field.
 String[] getLanguages()
          Returns the locals
 int getMaximumNumberOfOccurrences()
           
 Map<String,String> getParameters(String language)
          Returns a Map (String -> String) of named parameters which can be used by the displayer (max-size, length ...).
 List<Parameter> getParametersObj()
           
 String getTemplateName()
           
 String getTypeName()
          Returns the type name of the described field.
 boolean isDisabled()
          Returns true when the described field must be disabled.
 boolean isHidden()
          Returns true when the described field must be hidden.
 boolean isMandatory()
          Returns true when the described field must have a value.
 boolean isReadOnly()
          Returns true when the described field can't be updated.
 boolean isRepeatable()
           
 boolean isSearchable()
           
 boolean isUsedAsFacet()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyFieldTemplate

public DummyFieldTemplate()

DummyFieldTemplate

public DummyFieldTemplate(Field field)
Method Detail

getFieldName

public String getFieldName()
Returns the field name of the Field built on this template.

Specified by:
getFieldName in interface FieldTemplate

getTypeName

public String getTypeName()
Returns the type name of the described field.

Specified by:
getTypeName in interface FieldTemplate

getDisplayerName

public String getDisplayerName()
Returns the name of the FieldDisplayer to display the described field.

Specified by:
getDisplayerName in interface FieldTemplate

getLabel

public String getLabel()
Returns the label of the described field (in the default locale).

Specified by:
getLabel in interface FieldTemplate

getLabel

public String getLabel(String lang)
Returns the local label of the described field.

Specified by:
getLabel in interface FieldTemplate

getLanguages

public String[] getLanguages()
Returns the locals

Specified by:
getLanguages in interface FieldTemplate

isMandatory

public boolean isMandatory()
Returns true when the described field must have a value.

Specified by:
isMandatory in interface FieldTemplate

isReadOnly

public boolean isReadOnly()
Returns true when the described field can't be updated.

Specified by:
isReadOnly in interface FieldTemplate

isDisabled

public boolean isDisabled()
Returns true when the described field must be disabled.

Specified by:
isDisabled in interface FieldTemplate

isHidden

public boolean isHidden()
Returns true when the described field must be hidden.

Specified by:
isHidden in interface FieldTemplate

getParameters

public Map<String,String> getParameters(String language)
Returns a Map (String -> String) of named parameters which can be used by the displayer (max-size, length ...).

Specified by:
getParameters in interface FieldTemplate

getParametersObj

public List<Parameter> getParametersObj()
Specified by:
getParametersObj in interface FieldTemplate

getEmptyField

public Field getEmptyField()
Returns an empty Field built on this template.

Specified by:
getEmptyField in interface FieldTemplate

isSearchable

public boolean isSearchable()
Specified by:
isSearchable in interface FieldTemplate

getTemplateName

public String getTemplateName()
Specified by:
getTemplateName in interface FieldTemplate

isUsedAsFacet

public boolean isUsedAsFacet()
Specified by:
isUsedAsFacet in interface FieldTemplate

getMaximumNumberOfOccurrences

public int getMaximumNumberOfOccurrences()
Specified by:
getMaximumNumberOfOccurrences in interface FieldTemplate

isRepeatable

public boolean isRepeatable()
Specified by:
isRepeatable in interface FieldTemplate

getEmptyField

public Field getEmptyField(int occurrence)
                    throws FormException
Specified by:
getEmptyField in interface FieldTemplate
Throws:
FormException


Copyright © 2016 Silverpeas. All Rights Reserved.