|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.silverpeas.workflow.engine.dataRecord.ProcessInstanceFieldTemplate
public abstract class ProcessInstanceFieldTemplate
A ProcessInstanceFieldTemplate describes a field of a process instance.
| Constructor Summary | |
|---|---|
ProcessInstanceFieldTemplate(String fieldName,
String typeName,
String displayerName,
String label)
|
|
| Method Summary | |
|---|---|
String |
getDisplayerName()
Returns the name of the FieldDisplayer to display the described field. |
Field |
getEmptyField()
Throws an illegal call exception, since an empty field can't be built from this template. |
Field |
getEmptyField(int occurrence)
|
abstract Field |
getField(ProcessInstance instance)
Returns a field built from this template and filled from the given process instance. |
String |
getFieldName()
Returns the field name of the Field built on this template. |
String |
getLabel()
Returns the default label of the described field. |
String |
getLabel(String language)
Returns the local label of the described field. |
String[] |
getLanguages()
Returns an empty array : this implementation use only a default local. |
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 false. |
boolean |
isHidden()
Returns false. |
boolean |
isMandatory()
Returns false since a process instance field is read only. |
boolean |
isReadOnly()
Returns true since a process instance field is read only. |
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 |
|---|
public ProcessInstanceFieldTemplate(String fieldName,
String typeName,
String displayerName,
String label)
| Method Detail |
|---|
public String getFieldName()
getFieldName in interface FieldTemplatepublic String getTypeName()
getTypeName in interface FieldTemplatepublic String getDisplayerName()
getDisplayerName in interface FieldTemplatepublic String getLabel()
getLabel in interface FieldTemplatepublic String getLabel(String language)
getLabel in interface FieldTemplatepublic String[] getLanguages()
getLanguages in interface FieldTemplatepublic boolean isMandatory()
isMandatory in interface FieldTemplatepublic boolean isReadOnly()
isReadOnly in interface FieldTemplatepublic boolean isDisabled()
isDisabled in interface FieldTemplatepublic boolean isHidden()
isHidden in interface FieldTemplatepublic Map<String,String> getParameters(String language)
getParameters in interface FieldTemplatepublic List<Parameter> getParametersObj()
getParametersObj in interface FieldTemplate
public Field getEmptyField()
throws FormException
getEmptyField in interface FieldTemplateFormExceptiongetField
public Field getEmptyField(int occurrence)
throws FormException
getEmptyField in interface FieldTemplateFormExceptionpublic boolean isSearchable()
isSearchable in interface FieldTemplatepublic String getTemplateName()
getTemplateName in interface FieldTemplatepublic boolean isUsedAsFacet()
isUsedAsFacet in interface FieldTemplatepublic int getMaximumNumberOfOccurrences()
getMaximumNumberOfOccurrences in interface FieldTemplatepublic boolean isRepeatable()
isRepeatable in interface FieldTemplate
public abstract Field getField(ProcessInstance instance)
throws FormException
FormException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||