public class FormField extends BaseOpenmrsMetadata implements Serializable, 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 Integer |
fieldNumber |
protected String |
fieldPart |
protected Form |
form |
protected Integer |
formFieldId |
protected Integer |
maxOccurs |
protected Integer |
minOccurs |
protected Integer |
pageNumber |
protected FormField |
parent |
protected Boolean |
required |
static long |
serialVersionUID |
protected Float |
sortWeight |
Constructor and Description |
---|
FormField()
default constructor
|
FormField(Integer formFieldId)
constructor with id
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(FormField f)
Sort order for the form fields in the schema.
|
boolean |
equals(Object obj)
Compares two objects for similarity
|
Field |
getField() |
Integer |
getFieldNumber() |
String |
getFieldPart() |
Form |
getForm() |
Integer |
getFormFieldId() |
Integer |
getId() |
Integer |
getMaxOccurs() |
Integer |
getMinOccurs() |
Integer |
getPageNumber() |
FormField |
getParent() |
Boolean |
getRequired() |
Float |
getSortWeight() |
int |
hashCode() |
Boolean |
isRequired() |
void |
setField(Field field) |
void |
setFieldNumber(Integer fieldNumber) |
void |
setFieldPart(String fieldPart) |
void |
setForm(Form form) |
void |
setFormFieldId(Integer formFieldId) |
void |
setId(Integer id) |
void |
setMaxOccurs(Integer maxOccurs) |
void |
setMinOccurs(Integer minOccurs) |
void |
setPageNumber(Integer pageNumber) |
void |
setParent(FormField parent) |
void |
setRequired(Boolean required) |
void |
setSortWeight(Float sortWeight) |
String |
toString() |
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateRetired, getDescription, getName, getRetired, getRetiredBy, getRetireReason, isRetired, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateRetired, setDescription, setName, setRetired, setRetiredBy, setRetireReason
getUuid, setUuid
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getUuid, setUuid
public static final long serialVersionUID
protected Integer formFieldId
protected FormField parent
protected Form form
protected Field field
protected Integer fieldNumber
protected String fieldPart
protected Integer pageNumber
protected Integer minOccurs
protected Integer maxOccurs
protected Boolean required
protected Float sortWeight
public FormField()
public FormField(Integer formFieldId)
public boolean equals(Object obj)
equals
in class Object
obj
- Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public int compareTo(FormField f)
compareTo
in interface Comparable<FormField>
f
- FormField to compare this object topublic Integer getFormFieldId()
public void setFormFieldId(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 Integer getFieldNumber()
public void setFieldNumber(Integer fieldNumber)
fieldNumber
- The fieldNumber to set.public String getFieldPart()
public void setFieldPart(String fieldPart)
fieldPart
- The fieldPart to set.public Integer getPageNumber()
public void setPageNumber(Integer pageNumber)
pageNumber
- The pageNumber to set.public Integer getMinOccurs()
public void setMinOccurs(Integer minOccurs)
minOccurs
- The minOccurs to set.public Integer getMaxOccurs()
public void setMaxOccurs(Integer maxOccurs)
maxOccurs
- The maxOccurs to set.public Boolean isRequired()
public Boolean getRequired()
public void setRequired(Boolean required)
required
- The required status to set.public Float getSortWeight()
public void setSortWeight(Float sortWeight)
sortWeight
- The weight to order the formFields on.public String toString()
toString
in class Object
Object.toString()
public Integer getId()
getId
in interface OpenmrsObject
OpenmrsObject.getId()
public void setId(Integer id)
setId
in interface OpenmrsObject
id
- - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.