public class FormField extends BaseOpenmrsMetadata implements java.io.Serializable, java.lang.Comparable<FormField>
fields
on a form
A form can
have many 0 to n fields associated with it in a hierarchical manor. This FormField object governs
what/how that takes placeForm
,
Field
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected Field |
field |
protected java.lang.Integer |
fieldNumber |
protected java.lang.String |
fieldPart |
protected Form |
form |
protected java.lang.Integer |
formFieldId |
protected java.lang.Integer |
maxOccurs |
protected java.lang.Integer |
minOccurs |
protected java.lang.Integer |
pageNumber |
protected FormField |
parent |
protected java.lang.Boolean |
required |
static long |
serialVersionUID |
protected java.lang.Float |
sortWeight |
Constructor and Description |
---|
FormField()
default constructor
|
FormField(java.lang.Integer formFieldId)
constructor with id
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(FormField f)
Sort order for the form fields in the schema.
|
Field |
getField() |
java.lang.Integer |
getFieldNumber() |
java.lang.String |
getFieldPart() |
Form |
getForm() |
java.lang.Integer |
getFormFieldId() |
java.lang.Integer |
getId() |
java.lang.Integer |
getMaxOccurs() |
java.lang.Integer |
getMinOccurs() |
java.lang.Integer |
getPageNumber() |
FormField |
getParent() |
java.lang.Boolean |
getRequired() |
java.lang.Float |
getSortWeight() |
java.lang.Boolean |
isRequired() |
void |
setField(Field field) |
void |
setFieldNumber(java.lang.Integer fieldNumber) |
void |
setFieldPart(java.lang.String fieldPart) |
void |
setForm(Form form) |
void |
setFormFieldId(java.lang.Integer formFieldId) |
void |
setId(java.lang.Integer id) |
void |
setMaxOccurs(java.lang.Integer maxOccurs) |
void |
setMinOccurs(java.lang.Integer minOccurs) |
void |
setPageNumber(java.lang.Integer pageNumber) |
void |
setParent(FormField parent) |
void |
setRequired(java.lang.Boolean required) |
void |
setSortWeight(java.lang.Float sortWeight) |
java.lang.String |
toString()
Returns a string consisting of the name of the class of which the object is an instance and
the
uuid field surrounded by [ and ] . |
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateRetired, getDescription, getName, getRetired, getRetiredBy, getRetireReason, isRetired, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateRetired, setDescription, setName, setRetired, setRetiredBy, setRetireReason
equals, getUuid, hashCode, setUuid
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getUuid, setUuid
public static final long serialVersionUID
protected java.lang.Integer formFieldId
protected FormField parent
protected Form form
protected Field field
protected java.lang.Integer fieldNumber
protected java.lang.String fieldPart
protected java.lang.Integer pageNumber
protected java.lang.Integer minOccurs
protected java.lang.Integer maxOccurs
protected java.lang.Boolean required
protected java.lang.Float sortWeight
public FormField()
public FormField(java.lang.Integer formFieldId)
public int compareTo(FormField f)
compareTo
in interface java.lang.Comparable<FormField>
f
- FormField to compare this object topublic java.lang.Integer getFormFieldId()
public void setFormFieldId(java.lang.Integer formFieldId)
formFieldId
- The formFieldId to set.public FormField getParent()
public void setParent(FormField parent)
parent
- The formField to set as parent.public Form getForm()
public void setForm(Form form)
form
- The form to set.public Field getField()
public void setField(Field field)
field
- The field to set.public java.lang.Integer getFieldNumber()
public void setFieldNumber(java.lang.Integer fieldNumber)
fieldNumber
- The fieldNumber to set.public java.lang.String getFieldPart()
public void setFieldPart(java.lang.String fieldPart)
fieldPart
- The fieldPart to set.public java.lang.Integer getPageNumber()
public void setPageNumber(java.lang.Integer pageNumber)
pageNumber
- The pageNumber to set.public java.lang.Integer getMinOccurs()
public void setMinOccurs(java.lang.Integer minOccurs)
minOccurs
- The minOccurs to set.public java.lang.Integer getMaxOccurs()
public void setMaxOccurs(java.lang.Integer maxOccurs)
maxOccurs
- The maxOccurs to set.public java.lang.Boolean isRequired()
public java.lang.Boolean getRequired()
public void setRequired(java.lang.Boolean required)
required
- The required status to set.public java.lang.Float getSortWeight()
public void setSortWeight(java.lang.Float sortWeight)
sortWeight
- The weight to order the formFields on.public java.lang.String toString()
BaseOpenmrsObject
uuid
field surrounded by [
and ]
. In other words,
this method returns a string equal to the value of: getClass().getName() + '[' + uuid + ']'
If the uuid
field is null
, it delegates to
Object.toString()
toString
in class BaseOpenmrsObject
Object.toString()
public java.lang.Integer getId()
getId
in interface OpenmrsObject
OpenmrsObject.getId()
public void setId(java.lang.Integer id)
setId
in interface OpenmrsObject
id
- - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.