Class DummyFieldTemplate
- java.lang.Object
-
- org.silverpeas.core.contribution.content.form.dummy.DummyFieldTemplate
-
- All Implemented Interfaces:
Serializable
,FieldTemplate
public class DummyFieldTemplate extends Object implements FieldTemplate
A dummy FieldTemplate.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DummyFieldTemplate()
DummyFieldTemplate(Field field)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 localsint
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()
-
-
-
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 interfaceFieldTemplate
-
getTypeName
public String getTypeName()
Returns the type name of the described field.- Specified by:
getTypeName
in interfaceFieldTemplate
-
getDisplayerName
public String getDisplayerName()
Returns the name of the FieldDisplayer to display the described field.- Specified by:
getDisplayerName
in interfaceFieldTemplate
-
getLabel
public String getLabel()
Returns the label of the described field (in the default locale).- Specified by:
getLabel
in interfaceFieldTemplate
-
getLabel
public String getLabel(String lang)
Returns the local label of the described field.- Specified by:
getLabel
in interfaceFieldTemplate
-
getLanguages
public String[] getLanguages()
Returns the locals- Specified by:
getLanguages
in interfaceFieldTemplate
-
isMandatory
public boolean isMandatory()
Returns true when the described field must have a value.- Specified by:
isMandatory
in interfaceFieldTemplate
-
isReadOnly
public boolean isReadOnly()
Returns true when the described field can't be updated.- Specified by:
isReadOnly
in interfaceFieldTemplate
-
isDisabled
public boolean isDisabled()
Returns true when the described field must be disabled.- Specified by:
isDisabled
in interfaceFieldTemplate
-
isHidden
public boolean isHidden()
Returns true when the described field must be hidden.- Specified by:
isHidden
in interfaceFieldTemplate
-
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 interfaceFieldTemplate
-
getParametersObj
public List<Parameter> getParametersObj()
- Specified by:
getParametersObj
in interfaceFieldTemplate
-
getEmptyField
public Field getEmptyField()
Returns an empty Field built on this template.- Specified by:
getEmptyField
in interfaceFieldTemplate
-
isSearchable
public boolean isSearchable()
- Specified by:
isSearchable
in interfaceFieldTemplate
-
getTemplateName
public String getTemplateName()
- Specified by:
getTemplateName
in interfaceFieldTemplate
-
isUsedAsFacet
public boolean isUsedAsFacet()
- Specified by:
isUsedAsFacet
in interfaceFieldTemplate
-
getMaximumNumberOfOccurrences
public int getMaximumNumberOfOccurrences()
- Specified by:
getMaximumNumberOfOccurrences
in interfaceFieldTemplate
-
isRepeatable
public boolean isRepeatable()
- Specified by:
isRepeatable
in interfaceFieldTemplate
-
getEmptyField
public Field getEmptyField(int occurrence) throws FormException
- Specified by:
getEmptyField
in interfaceFieldTemplate
- Throws:
FormException
-
-