|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.silverpeas.workflow.engine.AbstractReferrableObject
com.silverpeas.workflow.engine.model.FormImpl
public class FormImpl
Class implementing the representation of the <form> element of a Process Model.
| Constructor Summary | |
|---|---|
FormImpl()
Constructor |
|
FormImpl(String name)
Constructor |
|
| Method Summary | |
|---|---|
void |
addInput(Input input)
Add an input Method needed primarily by Castor |
void |
addTitle(ContextualDesignation title)
Add a title Method needed primarily by Castor |
ContextualDesignation |
createDesignation()
Create an object implementing ContextualDesignation Method needed primarily by Castor |
Input |
createInput()
Create and return and object implementing Input |
DataRecord |
getDefaultRecord(String role,
String lang,
DataRecord data)
Converts this object in a DataRecord object |
String |
getHTMLFileName()
Get the name of HTML file to show this form if no HTML file is defined, XMLForm will be used to create the form |
int |
getId()
|
Input |
getInput(Input reference)
Get the input specified by item and / or value |
Input |
getInput(int idx)
Get the input specified by the index |
Input[] |
getInputs()
Get the inputs |
String |
getKey()
Get the unique key, used by equals method |
String |
getName()
Get the name of this form |
AbstractDescriptor |
getParent()
|
String |
getRole()
Get the role |
String |
getTitle(String role,
String language)
Get title in specific language for the given role |
ContextualDesignations |
getTitles()
Get all the titles |
boolean |
hasId()
|
Iterator<Input> |
iterateInput()
Iterate through the inputs |
Iterator<ContextualDesignation> |
iterateTitle()
Iterate through the titles |
void |
removeInput(int idx)
Remove the input specified by the index |
void |
setHTMLFileName(String HTMLFileName)
Set the name of HTML file to show this form if no HTML file is defined, XMLForm will be used to display the form |
void |
setId(int id)
Implemented methods |
void |
setName(String name)
Set the name of this form |
void |
setParent(AbstractDescriptor parent)
|
void |
setRole(String role)
Set the role name |
RecordTemplate |
toRecordTemplate(String role,
String lang)
Converts this object in a RecordTemplate object |
RecordTemplate |
toRecordTemplate(String role,
String lang,
boolean readOnly)
Converts this object in a RecordTemplate object |
| Methods inherited from class com.silverpeas.workflow.engine.AbstractReferrableObject |
|---|
equals, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FormImpl()
public FormImpl(String name)
| Method Detail |
|---|
public String getName()
getName in interface Formpublic String getRole()
Form
getRole in interface Formpublic String getHTMLFileName()
getHTMLFileName in interface Formpublic void setHTMLFileName(String HTMLFileName)
setHTMLFileName in interface Formpublic Input[] getInputs()
getInputs in interface Formpublic Input getInput(int idx)
Form
getInput in interface Formidx - the index
public Input getInput(Input reference)
Form
getInput in interface Formreference - the reference object
public void addInput(Input input)
Form
addInput in interface Formpublic Iterator<Input> iterateInput()
Form
iterateInput in interface Formpublic Input createInput()
Form
createInput in interface Form
public void removeInput(int idx)
throws WorkflowException
Form
removeInput in interface Formidx - the index
WorkflowExceptionpublic ContextualDesignations getTitles()
Form
getTitles in interface Form
public String getTitle(String role,
String language)
Form
getTitle in interface Formrole - role for which the title is
public void addTitle(ContextualDesignation title)
Form
addTitle in interface Formpublic Iterator<ContextualDesignation> iterateTitle()
Form
iterateTitle in interface Formpublic ContextualDesignation createDesignation()
Form
createDesignation in interface Formpublic void setName(String name)
setName in interface Formname - form's namepublic void setRole(String role)
Form
setRole in interface Formrole - name to setpublic String getKey()
getKey in interface ReferrableObjectIntfgetKey in class AbstractReferrableObjectequals,
hashCode
public RecordTemplate toRecordTemplate(String role,
String lang)
throws WorkflowException
toRecordTemplate in interface FormWorkflowException
public DataRecord getDefaultRecord(String role,
String lang,
DataRecord data)
throws FormException,
WorkflowException
getDefaultRecord in interface FormFormException
WorkflowException
public RecordTemplate toRecordTemplate(String role,
String lang,
boolean readOnly)
throws WorkflowException
toRecordTemplate in interface FormWorkflowExceptionpublic void setId(int id)
setId in interface AbstractDescriptorpublic int getId()
getId in interface AbstractDescriptorpublic void setParent(AbstractDescriptor parent)
setParent in interface AbstractDescriptorpublic AbstractDescriptor getParent()
getParent in interface AbstractDescriptorpublic boolean hasId()
hasId in interface AbstractDescriptor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||