Package org.bedework.eventreg.db
Class FieldDef
- All Implemented Interfaces:
Serializable,Comparable<FieldDef>
Fields that exists in a form.
By field in the daa model we mean almost any element that makes up a form, We distinguish them by type and group using the group property.
A drop down has the type select, radio buttons have type radio, and each has a set of options associated with them
For example, a select with name "fldname2" might have 2 options, named "fldname3" and "fldname4". Each of those options will have a group name of "fldname2"
Deleting field "fldname4" deletes an option only. Deleting field "fldname2" deletes the field and all the associated options.
- Author:
- douglm
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final StringThese are effectively sub-fields of another field.static final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.bedework.eventreg.db.SerializableProperties
vals -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleangetGroup()getLabel()booleangetName()intgetOrder()getOwner()booleangetType()getValue()getWidth()inthashCode()voidsetDefaultValue(boolean val) voidsetDescription(String val) voidsetFormName(String val) voidvoidvoidvoidsetMultivalued(boolean val) voidField names are unique within a form.voidsetOrder(int val) voidvoidsetRequired(boolean val) voidvoidvoidtoString()protected voidtoStringSegment(org.bedework.util.misc.ToString ts) Add our stuff to the ToStringMethods inherited from class org.bedework.eventreg.db.DbItem
clone, equals, getId, getSeq, setId, setSeq, unsavedMethods inherited from class org.bedework.eventreg.db.SerializableProperties
asMap, asString, getMap, getProperties, getVals, init, may, mayBool, mayInt, mayList, mayList, must, mustList, setBoolean, setInt, setObject, setProperties, setString
-
Field Details
-
fieldTypeTextArea
- See Also:
-
fieldTypeTextInput
- See Also:
-
fieldTypeCheckbox
- See Also:
-
fieldTypeRadio
- See Also:
-
fieldTypeSelect
- See Also:
-
fieldTypeOption
These are effectively sub-fields of another field.- See Also:
-
validTypes
-
-
Constructor Details
-
FieldDef
public FieldDef()
-
-
Method Details
-
setFormName
- Parameters:
val- name
-
getFormName
- Returns:
- name
-
setOwner
- Parameters:
val- the owner
-
getOwner
- Returns:
- owner
-
setName
Field names are unique within a form.- Parameters:
val- name
-
getName
- Returns:
- name
-
setType
- Parameters:
val- type
-
getType
- Returns:
- type
-
setLabel
- Parameters:
val- name
-
getLabel
- Returns:
- name
-
setValue
- Parameters:
val- name
-
getValue
- Returns:
- name
-
setDescription
- Parameters:
val- name
-
getDescription
- Returns:
- name
-
setGroup
- Parameters:
val- name
-
getGroup
- Returns:
- name
-
setRequired
public void setRequired(boolean val) - Parameters:
val- name
-
getRequired
public boolean getRequired()- Returns:
- name
-
setOrder
public void setOrder(int val) - Parameters:
val- name
-
getOrder
public int getOrder()- Returns:
- order
-
setDefaultValue
public void setDefaultValue(boolean val) - Parameters:
val- name
-
getDefaultValue
public boolean getDefaultValue()- Returns:
- name
-
setMultivalued
public void setMultivalued(boolean val) - Parameters:
val- name
-
getMultivalued
public boolean getMultivalued()- Returns:
- name
-
setWidth
- Parameters:
val- name
-
getWidth
- Returns:
- name
-
setHeight
- Parameters:
val- name
-
getHeight
- Returns:
- name
-
toStringSegment
protected void toStringSegment(org.bedework.util.misc.ToString ts) Add our stuff to the ToString- Overrides:
toStringSegmentin classDbItem<FieldDef>- Parameters:
ts- for result
-
compareTo
-
hashCode
public int hashCode() -
toString
-