|
||||||||||
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 FieldTemplate
public String getTypeName()
getTypeName
in interface FieldTemplate
public String getDisplayerName()
getDisplayerName
in interface FieldTemplate
public String getLabel()
getLabel
in interface FieldTemplate
public String getLabel(String language)
getLabel
in interface FieldTemplate
public String[] getLanguages()
getLanguages
in interface FieldTemplate
public boolean isMandatory()
isMandatory
in interface FieldTemplate
public boolean isReadOnly()
isReadOnly
in interface FieldTemplate
public boolean isDisabled()
isDisabled
in interface FieldTemplate
public boolean isHidden()
isHidden
in interface FieldTemplate
public Map<String,String> getParameters(String language)
getParameters
in interface FieldTemplate
public List<Parameter> getParametersObj()
getParametersObj
in interface FieldTemplate
public Field getEmptyField() throws FormException
getEmptyField
in interface FieldTemplate
FormException
getField
public Field getEmptyField(int occurrence) throws FormException
getEmptyField
in interface FieldTemplate
FormException
public boolean isSearchable()
isSearchable
in interface FieldTemplate
public String getTemplateName()
getTemplateName
in interface FieldTemplate
public boolean isUsedAsFacet()
isUsedAsFacet
in interface FieldTemplate
public int getMaximumNumberOfOccurrences()
getMaximumNumberOfOccurrences
in interface FieldTemplate
public 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 |