public class TimestampField extends Field
Modifier and Type | Field and Description |
---|---|
static int |
INDEXTYPE_NONE |
static int |
INDEXTYPE_RAWINDEX |
Constructor and Description |
---|
TimestampField(java.lang.String name,
java.lang.String displayname,
java.lang.String tooltip,
int indextype)
Creates a timestamp field with no time edit and no search index and default priority
|
TimestampField(java.lang.String name,
java.lang.String displayname,
java.lang.String tooltip,
int indextype,
int displaypriority)
creates a timestamp field with no time edit
|
TimestampField(java.lang.String name,
java.lang.String displayname,
java.lang.String tooltip,
int indextype,
int displaypriority,
boolean timeedit)
creates a timestamp 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
|
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 int INDEXTYPE_NONE
public static int INDEXTYPE_RAWINDEX
public TimestampField(java.lang.String name, java.lang.String displayname, java.lang.String tooltip, int indextype)
name
- unique name for the data object (should be a valid java
and sql field namedisplayname
- name in the default language for display in the GUItooltip
- mouse roll-over tooltip. Can be longerindextype
- a type of index as declared in a static integer on this
classpublic TimestampField(java.lang.String name, java.lang.String displayname, java.lang.String tooltip, int indextype, int displaypriority)
name
- unique name for the data object (should be a valid
java and sql field namedisplayname
- name in the default language for display in the GUItooltip
- mouse roll-over tooltip. Can be longerindextype
- a type of index as declared in a static integer on
this classdisplaypriority
- priority of the field between -1000 (low) and 1000
(excluded)public TimestampField(java.lang.String name, java.lang.String displayname, java.lang.String tooltip, int indextype, int displaypriority, boolean timeedit)
name
- unique name for the data object (should be a valid
java and sql field namedisplayname
- name in the default language for display in the GUItooltip
- mouse roll-over tooltip. Can be longerindextype
- a type of index as declared in a static integer on
this classdisplaypriority
- priority of the field between -1000 (low) and 1000
(excluded)timeedit
- if true, edition of time value is authorized on the
pagespublic 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