public class FieldDef extends DbItem<FieldDef>
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.
| Modifier and Type | Field and Description |
|---|---|
static String |
fieldTypeCheckbox |
static String |
fieldTypeOption
These are effectively sub-fields of another field.
|
static String |
fieldTypeRadio |
static String |
fieldTypeSelect |
static String |
fieldTypeTextArea |
static String |
fieldTypeTextInput |
static Set<String> |
validTypes |
vals| Constructor and Description |
|---|
FieldDef() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(FieldDef that) |
boolean |
getDefaultValue() |
String |
getDescription() |
String |
getFormName() |
String |
getGroup() |
String |
getHeight() |
String |
getLabel() |
boolean |
getMultivalued() |
String |
getName() |
int |
getOrder() |
String |
getOwner() |
boolean |
getRequired() |
String |
getType() |
String |
getValue() |
String |
getWidth() |
int |
hashCode() |
void |
setDefaultValue(boolean val) |
void |
setDescription(String val) |
void |
setFormName(String val) |
void |
setGroup(String val) |
void |
setHeight(String val) |
void |
setLabel(String val) |
void |
setMultivalued(boolean val) |
void |
setName(String val)
Field names are unique within a form.
|
void |
setOrder(int val) |
void |
setOwner(String val) |
void |
setRequired(boolean val) |
void |
setType(String val) |
void |
setValue(String val) |
void |
setWidth(String val) |
String |
toString() |
protected void |
toStringSegment(org.bedework.util.misc.ToString ts)
Add our stuff to the ToString
|
clone, equals, getId, getSeq, setId, setSeq, unsavedasMap, asString, getMap, getProperties, getVals, init, may, mayBool, mayInt, mayList, mayList, must, mustList, setBoolean, setInt, setObject, setProperties, setStringpublic static final String fieldTypeTextArea
public static final String fieldTypeTextInput
public static final String fieldTypeCheckbox
public static final String fieldTypeRadio
public static final String fieldTypeSelect
public static final String fieldTypeOption
public void setFormName(String val)
val - namepublic String getFormName()
public void setOwner(String val)
val - the ownerpublic String getOwner()
public void setName(String val)
val - namepublic String getName()
public void setType(String val)
val - typepublic String getType()
public void setLabel(String val)
val - namepublic String getLabel()
public void setValue(String val)
val - namepublic String getValue()
public void setDescription(String val)
val - namepublic String getDescription()
public void setGroup(String val)
val - namepublic String getGroup()
public void setRequired(boolean val)
val - namepublic boolean getRequired()
public void setOrder(int val)
val - namepublic int getOrder()
public void setDefaultValue(boolean val)
val - namepublic boolean getDefaultValue()
public void setMultivalued(boolean val)
val - namepublic boolean getMultivalued()
public void setWidth(String val)
val - namepublic String getWidth()
public void setHeight(String val)
val - namepublic String getHeight()
protected void toStringSegment(org.bedework.util.misc.ToString ts)
toStringSegment in class DbItem<FieldDef>ts - for resultpublic int compareTo(FieldDef that)
Copyright © 2019 Bedework. All rights reserved.