|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Form
Interface describing a representation of the <Form> element of a Process Model.
Method Summary | |
---|---|
void |
addInput(Input input)
Add an input Method needed primarily by Castor |
void |
addTitle(ContextualDesignation description)
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 display the form |
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 |
getName()
Get the name of this form |
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 |
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 |
setName(String name)
Set the name of this form |
void |
setRole(String role)
Set the role name |
RecordTemplate |
toRecordTemplate(String roleName,
String language)
Converts this object in a RecordTemplate object |
RecordTemplate |
toRecordTemplate(String roleName,
String language,
boolean readOnly)
Converts this object in a RecordTemplate object |
Method Detail |
---|
String getName()
void setName(String name)
name
- form's nameString getRole()
void setRole(String role)
role
- name to setString getHTMLFileName()
void setHTMLFileName(String HTMLFileName)
Input[] getInputs()
Input getInput(int idx)
idx
- the index
Input getInput(Input reference)
reference
- the reference object
Input createInput()
Iterator<Input> iterateInput()
void addInput(Input input)
void removeInput(int idx) throws WorkflowException
idx
- the index
WorkflowException
ContextualDesignations getTitles()
String getTitle(String role, String language)
lang
- title's languagerole
- role for which the title is
Iterator<ContextualDesignation> iterateTitle()
void addTitle(ContextualDesignation description)
ContextualDesignation createDesignation()
DataRecord getDefaultRecord(String role, String lang, DataRecord data) throws FormException, WorkflowException
FormException
WorkflowException
RecordTemplate toRecordTemplate(String roleName, String language) throws WorkflowException
WorkflowException
RecordTemplate toRecordTemplate(String roleName, String language, boolean readOnly) throws WorkflowException
WorkflowException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |