public class MultipleChoiceField extends Field
Constructor and Description |
---|
MultipleChoiceField(java.lang.String name,
java.lang.String displayname,
java.lang.String tooltip,
ChoiceCategory choice,
int storagelength)
create a multiple choice field with default priority
|
MultipleChoiceField(java.lang.String name,
java.lang.String displayname,
java.lang.String tooltip,
ChoiceCategory choice,
int storagelength,
int displaypriority)
create a multiple choice field
|
Modifier and Type | Method and Description |
---|---|
Field |
copy(java.lang.String newname,
java.lang.String newdisplaylabel)
performs a copy of the field with new name and new display label
|
ChoiceCategory |
getChoice() |
java.lang.String |
getDataObjectConstructorAttributes() |
java.lang.String |
getDataObjectFieldName() |
java.lang.String |
getJavaType() |
StoredElement |
getMainStoredElementForCompositeIndex()
Returns the main stored element of a field to be used in composite index
|
void |
writeDependentClass(SourceGenerator sg,
Module module)
only send here classes that are NOT data objects.
|
copy, getDisplayPriority, getParentObject, isNoUserEdition, isShowinbottomnotes, isShowintitle, setDataObjectDefinition, setDisplayPriority, setNoUserEdition, setShowinbottomnotes, setShowInTitle
addElement, AddElementWithSearch, addIndex, getDisplayname, getElements, getIndex, getSearchWidgetList, getTooltip
changeName, cleanName, equals, getName
public MultipleChoiceField(java.lang.String name, java.lang.String displayname, java.lang.String tooltip, ChoiceCategory choice, int storagelength)
name
- unique name of the field, should be a valid java field
name and a valid database column namedisplayname
- description of the field in the default language of the
applicationtooltip
- roll-over tooltipchoice
- choice categorystoragelength
- length of storage. Should be enough to accomodate the
storage code of the expected number of elementspublic MultipleChoiceField(java.lang.String name, java.lang.String displayname, java.lang.String tooltip, ChoiceCategory choice, int storagelength, int displaypriority)
name
- unique name of the field, should be a valid java field
name and a valid database column namedisplayname
- description of the field in the default language of
the applicationtooltip
- roll-over tooltipchoice
- choice categorystoragelength
- length of storage. Should be enough to accomodate the
storage code of the expected number of elementsdisplaypriority
- priority of the field, with a priority between -1000
and 1000public ChoiceCategory getChoice()
public java.lang.String getDataObjectFieldName()
getDataObjectFieldName
in class ObjectElement
public java.lang.String getDataObjectConstructorAttributes()
getDataObjectConstructorAttributes
in class ObjectElement
public java.lang.String getJavaType()
getJavaType
in class ObjectElement
public void writeDependentClass(SourceGenerator sg, Module module) throws java.io.IOException
ObjectElement
writeDependentClass
in class ObjectElement
java.io.IOException
public StoredElement getMainStoredElementForCompositeIndex()
Field
getMainStoredElementForCompositeIndex
in class Field