public class ChoiceField extends Field
Modifier and Type | Field and Description |
---|---|
static int |
INDEXTYPE_NONE |
static int |
INDEXTYPE_RAWINDEX |
static int |
INDEXTYPE_SEARCHWITHNOINDEX |
Constructor and Description |
---|
ChoiceField(java.lang.String name,
java.lang.String displayname,
java.lang.String tooltip,
ChoiceCategory choice)
creates a choice field to be added to a data object, with default priority
and no index
|
ChoiceField(java.lang.String name,
java.lang.String displayname,
java.lang.String tooltip,
ChoiceCategory choice,
int displaypriority)
creates a choice field to be added to a data object, with given priority and
no index
|
ChoiceField(java.lang.String name,
java.lang.String displayname,
java.lang.String tooltip,
ChoiceCategory choice,
int displaypriority,
int indextype)
creates a choice field to be added to a data object, with given priority and
index
|
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 static final int INDEXTYPE_NONE
public static final int INDEXTYPE_SEARCHWITHNOINDEX
public static final int INDEXTYPE_RAWINDEX
public ChoiceField(java.lang.String name, java.lang.String displayname, java.lang.String tooltip, ChoiceCategory choice)
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 categorypublic ChoiceField(java.lang.String name, java.lang.String displayname, java.lang.String tooltip, ChoiceCategory choice, 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 categorydisplaypriority
- length of storage. Should be enough to accomodate the
storage code of the expected number of elementspublic ChoiceField(java.lang.String name, java.lang.String displayname, java.lang.String tooltip, ChoiceCategory choice, int displaypriority, int indextype)
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 categorydisplaypriority
- length of storage. Should be enough to accomodate the
storage code of the expected number of elementsindextype
- type of index as defined in a constant integer on this
classpublic 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