|
||||||||||
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 Form
public String getRole()
Form
getRole
in interface Form
public String getHTMLFileName()
getHTMLFileName
in interface Form
public void setHTMLFileName(String HTMLFileName)
setHTMLFileName
in interface Form
public Input[] getInputs()
getInputs
in interface Form
public Input getInput(int idx)
Form
getInput
in interface Form
idx
- the index
public Input getInput(Input reference)
Form
getInput
in interface Form
reference
- the reference object
public void addInput(Input input)
Form
addInput
in interface Form
public Iterator<Input> iterateInput()
Form
iterateInput
in interface Form
public Input createInput()
Form
createInput
in interface Form
public void removeInput(int idx) throws WorkflowException
Form
removeInput
in interface Form
idx
- the index
WorkflowException
public ContextualDesignations getTitles()
Form
getTitles
in interface Form
public String getTitle(String role, String language)
Form
getTitle
in interface Form
role
- role for which the title is
public void addTitle(ContextualDesignation title)
Form
addTitle
in interface Form
public Iterator<ContextualDesignation> iterateTitle()
Form
iterateTitle
in interface Form
public ContextualDesignation createDesignation()
Form
createDesignation
in interface Form
public void setName(String name)
setName
in interface Form
name
- form's namepublic void setRole(String role)
Form
setRole
in interface Form
role
- name to setpublic String getKey()
getKey
in interface ReferrableObjectIntf
getKey
in class AbstractReferrableObject
equals
,
hashCode
public RecordTemplate toRecordTemplate(String role, String lang) throws WorkflowException
toRecordTemplate
in interface Form
WorkflowException
public DataRecord getDefaultRecord(String role, String lang, DataRecord data) throws FormException, WorkflowException
getDefaultRecord
in interface Form
FormException
WorkflowException
public RecordTemplate toRecordTemplate(String role, String lang, boolean readOnly) throws WorkflowException
toRecordTemplate
in interface Form
WorkflowException
public void setId(int id)
setId
in interface AbstractDescriptor
public int getId()
getId
in interface AbstractDescriptor
public void setParent(AbstractDescriptor parent)
setParent
in interface AbstractDescriptor
public AbstractDescriptor getParent()
getParent
in interface AbstractDescriptor
public boolean hasId()
hasId
in interface AbstractDescriptor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |